Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Map zoom controls not displaying correctly [duplicate]

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); } 
like image 738
maxelcat Avatar asked Mar 28 '12 09:03

maxelcat


People also ask

How do I fix Google Maps zoom?

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.

How do you zoom all the way on a map?

Zoom in the mapDouble tap a spot on the map, and then: Drag down to zoom in. Drag up to zoom out.

How do I change the max zoom level in Google Maps?

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.


1 Answers

The issue should be because of universal img { max-width: 100%; }

Try this one in to your css

.gmnoprint img {     max-width: none;  } 
like image 195
Mo. Avatar answered Sep 19 '22 22:09

Mo.