Avoid Information window -Mouse Over Polyline

2078
1
Jump to solution
10-14-2015 05:18 PM
JulieBiju
Occasional Contributor

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);

});

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

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);

    }

});

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

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);

    }

});

View solution in original post

0 Kudos