so that when user clicks on a layer name the georeferenced video loads like normal layer and starts playing .
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);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.