-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map display issues: controls and infowindow #15
Comments
Well first thing, the map controls are likely due to responsive images. It's almost always CSS that causes this. Add Custom infowindows are possible, but not using the default Google Maps windows, as those are harder to style and don't allow many customization options. I will need to look into how I can make the Infobox.js library work for Google Maps for Craft. |
|
Can you post the code that you are using to add markers to the map? |
Strangly enough, if you click on one of the default google landmarks to display infowindow (it show fine; no scrollbars), then click the custom marker (displays with scrollbars), then click the landmark again it displays with scrollbars.
|
And here is the 'content' from the marker in the CP (nothing unusual):
|
Ok thanks. I have see a lot of quirks with Google Maps and their infowindows lately. From everything I can tell, this is going all the way back to the scripts in the Google Maps API's, as there aren't anything special hacks I am doing or anything that is officially supported by the docs. I am going to have to take some time to get this scenario setup and tested so I can hopefully trigger the same error and implement a fix for it. Thanks for checkout Google Maps for Craft. I will post back here once I have a fix. Not sure if I will have time to do it today though. |
No worries; no rush. Controls was the bigger issue of the two. Thanks for your time and for looking into this. Much appreciated. |
Noticing the same problem on angular Google maps as well. |
This might be fixed with the latest master branch. Another user submitted a potential fix for this. Seems to be working in my tests now. If you guys get a chance sometime, download the master branch and see if you are still having this issue with the infowindows. |
I'm finding that many of the default controls (zoom controls, etc.) are being squished horizontally (maybe 50%) on all rendered maps. I am also seeing that InfoWindows seem to have a set height and width displayed which creates unnecessary scroll bars. Here is the rendered infoWindow html:
I have looked through all the code to see where this is set but can't find the source, and there is nothing in my page css that would affect the map (other than the generic eric reset.css).
As a side-note, it would also be nice if the plugin allowed you to create your own custom infoWindows (i.e. background and all). Perhaps this functionality is there, but I haven't discovered it.
The text was updated successfully, but these errors were encountered: