WAB:Map context not working on Label

509
3
01-01-2018 09:52 PM
Naveen_KumarKairamkonda
Occasional Contributor

Hi,

I have created a context menu on FeatureLayer Load event. It is working as expected. While right click on label, shown for the feature layer, it is not showing context menu. PFB image for the same.

Context Menu not working

Its working, when clicked apart from label. PFB image

Context Menu working

Is there any solution for this?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Naveen,

  Sure just add this css rule to your app. I would place it in your apps theme common.css file:

#_internal_LabelLayer_layer {
  pointer-events: none;
}
ShaikhRizuan
New Contributor III

Thnx Robert!!! its working....

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

0 Kudos