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); } });
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.