Adding Label Layer to Parcels Java API 9.3

675
1
01-16-2013 10:32 AM
JeremySila
New Contributor
Complete noob to API and I've looked everywhere online in hopes to find a tutorial or sample on how to add my labels for my parcel
layer. Since I haven't found anything online, i'm assuming its a simple solution or I've totally overlooked something. I created a mask
from annotation and saved as a shapefile. When I add as a service and add to script, it's not showing at all. It does however show
"somewhat" in the preview. (assuming that's due to extent settings)Can anyone please tell me or point me in the right direction on
how to add these labels or parcel number annotation to my map?

Thanks in advance,
Noob
0 Kudos
1 Reply
JohnGravois
Frequent Contributor
are you currently working with a FeatureLayer?

if you have labels turned on in your map service and load the content as an ArcGISDynamicMapService or ArcGISTiledMapService in a JS API application, your labels will draw.

if you need to interact with the features on the client side, you can still draw an ArcGISDynamicMapService layer and work with a FeatureLayer in selection mode at the same time.  see this example for more info.
0 Kudos