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);
});
Solved! Go to Solution.
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);
}
});
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);
}
});