I have created a simple map using API3. However, the zoom controls on the top left look "Squashed" - a they are not displaying properly. The rest of the map is fine. The weird thing is that I have used the same method as for previous sites, where things work well.
Here's some code:
var directionDisplay; var directionsService = new google.maps.DirectionsService(); var map; var marker; var markersArray=[]; var html; //to create urls var directionsVisible = new Boolean(); directionsVisible = false; function initialize() { directionsDisplay = new google.maps.DirectionsRenderer(); var orchards = new google.maps.LatLng(52.512805,-2.76007); var myOptions = { zoom:14, mapTypeId: google.maps.MapTypeId.ROADMAP, center: orchards, panControl: false } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); addMarker(orchards); }
To fix Google maps zooming problems, for Google maps default zoom you want to know how to change the zoom level on Google Maps. You can change the zoom level by going to the Edit map page and then selecting 'default zoom level' in the map information section and then clicking save map.
Zoom in the mapDouble tap a spot on the map, and then: Drag down to zoom in. Drag up to zoom out.
Setting up the minimum or maximum Zoom value for Google Maps can be done by adding the shortcode attribute with Store Locator Shortcode. Furthermore, the maximum value of Google Maps Zoom level is 22. Therefore, the defined maximum value must be below or equal to 22, which is the default.
The issue should be because of universal img { max-width: 100%; }
Try this one in to your css
.gmnoprint img { max-width: none; }
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