LocalLayer Issue Labeling a Point

974
7
09-01-2016 09:18 AM
AnthonyDaniels
New Contributor II

I am having an issue with a point feature layer not showing a label using the LocalLayer widget?

0 Kudos
7 Replies
RickeyFight
MVP Regular Contributor

Do you have any errors in your console log? 

Can you share the layer so we can try it? 

0 Kudos
AnthonyDaniels
New Contributor II

No errors in the log that I can tell.

Here is the link to the service:

http://maps.co.forsyth.nc.us/arcgis/rest/services/TEST/TaxPointsLabels/MapServer/0 

Thanks

0 Kudos
RickeyFight
MVP Regular Contributor

In the Readme it says that you may need to add the showLabels option

```javascript
 "map": {
 ...
 "mapOptions": {
 "showLabels":true,
 "extent": {
 ...
 }
 }
 }
```
0 Kudos
AnthonyDaniels
New Contributor II

It is setup that way just like the instructions, but still not showing labels for the point

0 Kudos
RickeyFight
MVP Regular Contributor

Are the points showing up? Just not the labels? 

0 Kudos
AnthonyDaniels
New Contributor II

No problem with the points, just the labels

0 Kudos
AdamDrackley
Occasional Contributor III

Just a note that I was able to get labels to display on a Feature Layer made from your service via the LocalLayer widget, Anthony.  Note that I did have to add that "showLabels":true value in the config.json file of the completed app as so:

"mapOptions": {
"showLabels":true,
"extent": {
"xmin": -8923741.74197918,
"ymin": 4324631.992240296,
"xmax": -8923478.98969453,
"ymax": 4324889.370046397,
"spatialReference": {
"wkid": 102100
}
}

Note that showLabels belongs within the mapOptions segment.  Also note that hitting 'Save' on the app in the builder appears to blow away the value if you haven't set it in your stemapp config.json file, so always make sure to re-add this showLabels value whenever you hit 'Save'.