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

Does anyone know how to change the extents on the overview map in Flex Viewer 2.5? I have a basemap of a single country and my overview map still wants to show me the world. Thanks

share|improve this question
up vote 0 down vote accepted

The extent of the overview map is set in the updateOverviewExtentFromMap() function in OverviewMapComponent.mxml . By default it is always 3 times the extent of your main map.

private function updateOverviewExtentFromMap():void
    overviewMap.extent = map.extent.expand(3);
    overviewGraphic.geometry = map.extent;

You could either hardcode this to your country, or make sure that it never goes outside the extent of that country.

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.