this is not currently possible. here's the associated enhancement request.[NIM079605: Add support to LayerDrawingOptions for labelingInfo property in JavaScript API]
{ "labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal", "labelExpression": "[TAG]", "useCodedValues": false, "symbol": { "type": "esriTS", "color": [78,78,78,255], "backgroundColor": null, "borderLineColor": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "font": { "family": "Arial", "size": 12, "style": "normal", "weight": "bold", "decoration": "none" } }, "minScale": 1999, "maxScale": 0, "where": "" }
for 10.1 dynamic layers you can decide whether or not you'd like to show labels by setting the showLabels property of the LayerDrawingOptions class
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.