Is it possible to add GeoReferenced Videos/Gif files as layers on the map?

3385
1
Jump to solution
07-20-2015 10:39 PM
HumzaAkhtar
Occasional Contributor II

so that when user clicks on a layer name the georeferenced video loads like normal layer and  starts playing .

0 Kudos
1 Solution

Accepted Solutions
HumzaAkhtar
Occasional Contributor II

Found out the this can be done using MapImageLayer  ,,, Just convert the video into a gif and give its url in a MapImage Constructor... Sample code:

map.on("load", function() {

// create and add the layer

var mil = new esri.layers.MapImageLayer();

map.addLayer(mil);

// create an add the actual image

var mi = new esri.layers.MapImage({

  'extent': { 'xmin': -80, 'ymin': 33, 'xmax': -85, 'ymax': 37},

  'href': 'http://www.aoaophoto.com/video-to-gif-converter/imgs/sample-iceage4.gif'

});

mil.addImage(mi);

});

View solution in original post

1 Reply
HumzaAkhtar
Occasional Contributor II

Found out the this can be done using MapImageLayer  ,,, Just convert the video into a gif and give its url in a MapImage Constructor... Sample code:

map.on("load", function() {

// create and add the layer

var mil = new esri.layers.MapImageLayer();

map.addLayer(mil);

// create an add the actual image

var mi = new esri.layers.MapImage({

  'extent': { 'xmin': -80, 'ymin': 33, 'xmax': -85, 'ymax': 37},

  'href': 'http://www.aoaophoto.com/video-to-gif-converter/imgs/sample-iceage4.gif'

});

mil.addImage(mi);

});