Labeled feature layer with popups: label blocks selectable space in polygons

987
2
01-24-2017 09:34 AM
brianmoran_usfs
New Contributor II

I have a pretty simple map showing a feature layer of polygons with labels.  The features can be clicked to display a popup with some formatted info.  However, the labels are not selectable, and they cause a blind spot in the clickable area of the polygon.  Is it possible to give the labels themselves the same popup functionality as their associated features?  It is a problem for me because the labels take up a fairly large portion of the polygons, making it difficult to click in the right place to display the popup.

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

Which version of the API are you using? 3.x or 4.x? Are the labels a part of the feature layer or are those being added separately?

0 Kudos
brianmoran_usfs
New Contributor II

Version 3.19.  The labels are part of the feature layer, added with the setLabelingInfo method.

The map can be viewed here-- note the rollover is blocked out by the polygon labels-

https://www.fs.fed.us/r5/webmaps/VisitorMapFootprints/

0 Kudos