Pull a layers name into a popup box

2528
1
10-20-2015 08:45 AM
NolanAlbarelli
New Contributor III

I have a simple flex viewer and I would like the popup to pull the layer name into the popup.  There are no fields within the layer than i can leverage and do not own the service so i cant just add one. 

Can flex pull in the layer name like it can any other field?

thanks

0 Kudos
1 Reply
AveKargaja
Occasional Contributor

Hmm...not sure about pulling the layer name dynamically from the service, but a mapservice layer name is usually static, right? Then why don't you just write the "layer name" into popup configuration? 

<title>layer name</title>

0 Kudos