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.

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
add comment

1 Answer

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
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.