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); } });
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.