rbtj
rbtj

Reputation: 331

Scale control (bottom left) in google maps

I am using google maps api (along with styles) to display poi.attraction of a particular place.

I need to diplay scale control to check the distance. I used the following code and got a smaller scale which is at the bottom right.

All i need is a larger scale on the left bottom side.

var mapProp = {
    center:new google.maps.LatLng(0,0),
    zoom:10,
    panControl:true,
    zoomControl:true,
    mapTypeControl:true,
    scaleControl:true,
    mapTypeId:google.maps.MapTypeId.ROADMAP,
    styles: styles
};

Upvotes: 1

Views: 1688

Answers (1)

geocodezip
geocodezip

Reputation: 161384

From version 3.14 on visual refresh is active. The below is from the documentation referenced.

When google.maps.visualRefresh is true the scale control will be fixed at the BOTTOM_RIGHT.

Upvotes: 1

Related Questions