ArcGIS Server » Web Applications » Flex API
 
 

Code Gallery

Overview Map

This sample provides an overview map Flex component that displays a smaller scale view of the area surrounding the main map.
Author tomhill80
Date Submitted 10-27-2008
Date Last Updated 03-30-2009
Language Flex
Product/Version ArcGIS Server 9.3
Views 4193
Downloads 1430
License Type ESRI Attribution and License Agreement
(4 ratings)

Report Inappropriate Content: This Code Gallery is intended for the free exchange of code related to ESRI software products. Let us know if this entry is inappropriate (e.g., a download for a commercial product).

 

Well done !   posted by gknight on Oct 27, 2008 6:24 PM

Very well done. Thank you!

This is awesome   posted by itsmeprash on Oct 30, 2008 8:22 PM

Thanks a lot. Overview is a nice to have feature in any map. I was struggling to keep the size of the drag box the same size no matter the extent. You saved me a lot of time.

cool   posted by EJAY_L on Nov 25, 2008 1:05 PM

it's great. we need more code samples.

Getting error after upgrading to version 1.1   posted by rastrauch on Jan 23, 2009 1:22 PM

Just updated to Flex API v1.1. Getting an error on the OvervewiMap now. "In initializer for 'layers': type com.esri.maplib.OverviewMap is not assignable to target Array element type" I'm still learning Flex so not sure how to fix this (yet). Does anyone know how? Otherwise, the sample is great (and worked in 1.0 just fine). Thanks

disregard last post re: not working in v1.1   posted by rastrauch on Jan 23, 2009 6:20 PM

I haven't tracked the error yet, but I belive that although it is showing the overlay line in error, that it is cause by something else that I have tweaked.

How to disable pan   posted by kangdon on Mar 12, 2009 3:12 PM

Tom, thanks for the great example. It is working really good. I have a question... How do you disable pan capability of the overview map? I wish users not be able to drag the red box and move the map. I've tried panEnabled="false" and mouseEnabled="false" but none of these seems to work. thanks ahead for your help. Don Kang dongk@mccarran.com

Re: How to disable pan   posted by tomhill80 on Mar 12, 2009 3:56 PM

Don, it is really easy to disable mouse interaction with the overview map. Please see my post on the user forum: http://forums.esri.com/Thread.asp?c=158&f=2421&t=276767

Updated overview map with bug fix   posted by tomhill80 on Mar 30, 2009 3:43 PM

I have posted a new version of the Overview Map component. Please download the latest zip file if you are using it in your applications. Specifically, I fixed a bug reported by Don (see http://forums.esri.com/Thread.asp?c=158&f=2421&t=276767), so that now the hand cursor is not shown when the overviewDragExtentBoxEnabled property is changed to false.