Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How do we set zoom level in Google Maps?

We can set zoom level to 15 but how can we set zoom level to more than 15?

share|improve this question
add comment

2 Answers 2

Please try following code. It might help you

When you instantiate a google maps object using: new google.maps.Map(domElement, options)

You can can use options to set (among other things) the zoom level.

The default zoom level can be set using { zoom: 14 } for example.

After you create you google maps object, you can change the zoom level using setZoom()

var myMap = new google.maps.Map(
document.getElementById('map-canvas'), 
{ zoom : 14 } 
);
myMap.setZoom(12);

Detail please click here

share|improve this answer
    
@user15284 if you think above answer was helpful for you then please accept the answer (small green color sign)..thanks –  Sunil Feb 20 '13 at 11:11
add comment

I think it depends on which map is currently set as base layer, because satellite and street map layers go deeper than terrain map.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.