I am using ArcGIS API for JavaScript for map.
i want show an popup info window when mouse hover on kml layer.
I am trying this code for and using mouse-over event , But this is not working on kml layer.
my code is:
var kmlUrl = "http://www.arcgis.com/sharing/rest/content/items/a7c2aaaa083741f58825cc3f39c53a22/data"; var kml = new KMLLayer(kmlUrl); map.addLayer(kml); kml.on("load", function() { domStyle.set("loading", "display", "none"); }); kml.on("mouse-over",function (event) { alert('test'); });
أكثر...
i want show an popup info window when mouse hover on kml layer.
I am trying this code for and using mouse-over event , But this is not working on kml layer.
my code is:
var kmlUrl = "http://www.arcgis.com/sharing/rest/content/items/a7c2aaaa083741f58825cc3f39c53a22/data"; var kml = new KMLLayer(kmlUrl); map.addLayer(kml); kml.on("load", function() { domStyle.set("loading", "display", "none"); }); kml.on("mouse-over",function (event) { alert('test'); });
أكثر...