I'm inserting a very basic Google map into my page and the zoom control and streetmap icon are not visible, however if I place my mouse over where they should be I can zoom the map and enter streetview. So the controls are there just not visible.
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=<apikey>&sensor=false®ion=IT"> </script> var myOptions = { zoom: 17, center: latlng, panControl: true, zoomControl: true, zoomControlOptions: { style: google.maps.ZoomControlStyle.LARGE }, scaleControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
Any ideas what the problem could be?
The Zoom control displays "+" and "-" buttons for changing the zoom level of the map. This control appears by default in the bottom right corner of the map.
Want to add zoom controls to Android MapView? We can achieve this by calling setBuiltInZoomControls(boolean) method. map. setBuiltInZoomControls(true);
To zoom in or out, scroll with your mouse or two-finger zoom with a touchpad. You can also use + and - below the compass. To position your Street View north, go to the bottom right and click the compass. To jump between streets, go to the "Back to Map" window in the bottom left and click the blue highlighted routes.
That is definitely a CSS issue that you have with your code. Look for CSS that is applying to all images like:
img { max-width: 100%; }
I had this problem, the fix was to include this CSS ...
.gmnoprint img { max-width: none; }
The CSS selector .gmnoprint img
gets to all images [img] on the Google Map [gm] controls that are non printing [noprint]. In my case max-width
had been set globally to 100%. Unsetting this fixed the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With