Select to view content in your preferred language

Image overlays

964
2
10-06-2011 06:07 AM
AndreSmit
Emerging Contributor
I'd like to overlay a geo-referenced  image on a map but don't want to use the image, kml, wms or other services available. Something along the lines of the google maps groundoverlay function. I remember someone hacking a symbol overlay for the flex api - anything similar for javascript?
0 Kudos
2 Replies
derekswingley1
Deactivated User
Here's a thread talking about how to do it:  http://forums.arcgis.com/threads/41009

Relevant code:

// create and add the layer
var mil = new esri.layers.MapImageLayer({
  'id': 'usgs_screen_overlay'
});
map.addLayer(mil);

// create an add the actual image
var mi = new esri.layers.MapImage({
  'extent': { 'xmin': -8864908, 'ymin': 3885443, 'xmax': -8762763, 'ymax': 3976997, 'spatialReference': { 'wkid': 3857 }},
  'href': 'http://hdds.usgs.gov/hdds2/view/overlay_file/AM01N33_269827W079_1773002011082800000000MS00'
});
mil.addImage(mi);
0 Kudos
AndreSmit
Emerging Contributor
Thanks Derek!
0 Kudos