I suspect part of my problem is that I'm having a mental freeze on what the technical name for this is: But you see on http://maps.google.co.uk/ the bottom left has a small ruler indicating how big x Miles is at the current zoom level?
If I'm using google Maps API version 2, how do I add such a wonderful do-hickery widget thing to my website maps?
Thanks, James
Actually this is how you really get the scale to show:
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 10,
scaleControl: true,
center: new google.maps.LatLng(-33.92, 151.25),
mapTypeId: google.maps.MapTypeId.ROADMAP
});
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