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.

I want to display an Overview map - I know how to do it using a separate PageLayout or MapControl - but I noticed ESRI has an OverviewClass - how do I make use of this with the AxMapControl?

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

Instead of using the Overview class, I would just use two mapcontrols: a main map and an overview map.

The overview map would listen to ITransformationEvents on the main map's displaytransformation. When VisibleBoundsUpdated fires, update the overview map (centering it on same point as main map, but not changing the scale). In the event handler for the overview map control's afterdraw event, draw a red rectangle on the map representing the extent of the main map.

share|improve this answer
add comment

You should be able to use it the same was you use for example a North Arrow, because it's implementing IMapSurround see: Concepts & Samples: Map surround

share|improve this answer
    
I reworded my question to be a little more clear - I am trying to use it with an AxMapControl, not an AxPageLayoutControl. –  Darren Sep 12 '11 at 18:20
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.