Thank u
How to avoid popup/infotemplate from the polyline graphic???
graphicsLayer.on("mouse-over", function (event) {var graphic = event.graphic;map.infoWindow.highlight = false;map.infoWindow.setFeatures([graphic]);map.infoWindow.show(event.screenPoint);});
graphicsLayer.on("mouse-over", function (event) {
var graphic = event.graphic;
map.infoWindow.highlight = false;
map.infoWindow.setFeatures([graphic]);
map.infoWindow.show(event.screenPoint);
});
Julie,
Just check is the geometry is a point or not.
graphicsLayer.on("mouse-over", function (event) { var graphic = event.graphic; if(event.graphic.geometry.type === 'point'){ map.infoWindow.highlight = false; map.infoWindow.setFeatures([graphic]); map.infoWindow.show(event.screenPoint); } });
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.