Activate tags in WebAppBuilder

532
5
07-06-2023 08:17 AM
Labels (2)
H__DanielRamos_Mendoza
New Contributor III

Activate tags in WebAppBuilder.

I've created a layer with new FeatureLayer. Also turn on the "showLabels: true" labels. It is not shown on the map.

In which WebAppBuilder file are the tags activated?

H__DanielRamos_Mendoza_0-1688656543280.png

 

Tags (2)
0 Kudos
5 Replies
DavidSolari
Occasional Contributor III

Labels are controlled by the web map's definition and are limited to whatever's supported by the "classic" map viewer, if they display there they should display in WAB. IF that doesn't work, you may have a widget that's inhibiting the labels, try making a new app from scratch to see if they appear. If all of that fails I'd take it up with support.

0 Kudos
H__DanielRamos_Mendoza
New Contributor III

I am creating a layer by code. According to the documentation, it tells me that I must create the property "showLabels: true" in the object new Map().

I am looking inside the WebAppBuilder code for the new Map() object to add the property "showLabels: true"

H__DanielRamos_Mendoza_0-1688659189985.png

 

0 Kudos
H__DanielRamos_Mendoza
New Contributor III

They ask me to add the in the MAP object showLabels : true

https://developers.arcgis.com/javascript/3/jssamples/layers_label.html

H__DanielRamos_Mendoza_1-1688659946859.png

 

0 Kudos
H__DanielRamos_Mendoza
New Contributor III

I re-created a new app and the label is not showing.

0 Kudos
H__DanielRamos_Mendoza
New Contributor III

Al crear asignar el valor a la geometría de puntos, se toma su tiempo de milisegundos pero se soluciona con un settimeout

H__DanielRamos_Mendoza_0-1689096331072.png

H__DanielRamos_Mendoza_1-1689096354010.png

H__DanielRamos_Mendoza_2-1689096366823.png

 

 

0 Kudos