Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some data that I would like to display in greater detail as the user zooms into the interactive Gooogle map. Does google support dynamically turning layers on and off depending on the scale?

share|improve this question

This is how it can be done: (taken from

google.maps.event.addListener(map, 'zoom_changed', function() {
zoomLevel = map.getZoom();
  if (zoomLevel >= minZoomLevel) {
  } else {
share|improve this answer

You may use the Region and LoD KML elements:

Lod Lod is an abbreviation for Level of Detail. describes the size of the projected region on the screen that is required in order for the region to be considered "active."

You need to convert the zoom level value into screen pixel size.

I know it works in G-Earth - I suppose it works in G-Map...

share|improve this answer

Your Answer


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.