Select to view content in your preferred language

Load image onto map

475
1
05-28-2011 07:46 AM
Hwee_KiangSim
Emerging Contributor
Hi, I'm trying to load an image (from local disk) onto a specific location on the map, some sort like placing a geotag image onto a map.
I have defined my own layer, inherited from DynamicLayer and tried to override the GetSource method. My bitmap image is able to load, but my question is how do I set / calculate the extent, width and height ( as per GetSource parameters) such that the image extent and size changes proportionaly in size when zoom in / out?

thanks!
0 Kudos
1 Reply
wangzhifang
Frequent Contributor
Hi, I'm trying to load an image (from local disk) onto a specific location on the map, some sort like placing a geotag image onto a map.
I have defined my own layer, inherited from DynamicLayer and tried to override the GetSource method. My bitmap image is able to load, but my question is how do I set / calculate the extent, width and height ( as per GetSource parameters) such that the image extent and size changes proportionaly in size when zoom in / out?

thanks!

You don't need to do this by yourself. All you need is just an ElementLayer which is ready for use in Silverlight API:)
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ElementLayer
Or you can use MapTip to show your picture on a specific mappoint.
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip
0 Kudos