Monday, February 9, 2009

Ground Overlays On Maps


Found a historic map of Boston collected by David Rumsey, and thought it would be nice to be able to put this map on a current map. As the image needs to be scaled, rotated and translated, I wrote a custom symbol (OverlaySymbol) to enable the scaling, rotation and translation when the map extent changes. So all that is cool, but the problem was coming up with OverlaySymbol properties. So I wrote the OverlayEditor application that enables you to load the image and using a instance of Flex Object Handles, you can stretch, move and rotate the image. Once you are satisfied with the parameters, you can view the source code of a sample application that you can save and compile with a reference to the OverlaySymbol.as code. You can check out the application here. You can load an image of Mount Etna in Sicily. And like usual you can download the source code from here.

7 comments:

Greg said...

Mansour, You never cease to amaze. Thank you.

Henry said...

Very cool, Ive been playing around with importing images with world files into flex, this sheds some light on the subject.

No Name Is Unique said...

Truly outstanding. I'm standing up and clapping loud.

ThunderHead said...

Glad u like it :-)

No Name Is Unique said...

I just noticed that the image used is the same image that is used as a ground overlay in the KML. Do you know of any resources for loading a KML Ground Overlay into an ArcGIS Flex Map? Or a KML with placemarks? Thanks

ThunderHead said...

Kinda funny that u asked - working on KML as we speak - will keep u posted !

Josh Marcus said...

Any updates on KML? I'm about to start working on loading a KML GroundOverlay into an ArcGIS Flex Map ... but is there progress or code you can share?