Select to view content in your preferred language

Change LayerList Description from REST Endpoint to Layer Info

4339
26
Jump to solution
01-22-2016 02:41 AM
EoghanMcCarthy1
Emerging Contributor

Hi,

I want to supply some basic layer information under the LayerList Description instead to the default redirect to the REST endpoint.

Previously when using Flex I would edit the eLayerList config <usenewesridescription>false</usenewesridescription>

This would then provide the layer description included with the published layer.

Is this function possible in WAB or is there another method to providing  background info for your layers?

Thanks

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Eoghan,

  OK I found the issue and updated the code.

View solution in original post

26 Replies
RobertScheitlin__GISP
MVP Emeritus

Eoghan,

  There is nothing in place for this currently but a simple replacement of the [instal dir]\server\apps\[app #]\widgets\LayerList\PopupMenuInfo.js with the on attached here will give you the same result you had in Flex minus the ability to configure if the rest endpoint is used or the desc info. This file will show the description and copyright in a message dialog instead of the rest endpoint for that layer.

0 Kudos
EoghanMcCarthy1
Emerging Contributor

Robert,

Thanks, that is exactly what I was trying to achieve. I have the layer info window in operation but the values are being returned "undefined".

I have descriptions and copyright text in place, for example:

Layer: Natural Heritage Areas (ID: 6)

Is there an additional step required?

Many thanks again for your assistance.

Eoghan

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Eoghan,

   Hmm.. Let me do more testing. Is all your layers coming from the web map or are you also using the local layer widget?

0 Kudos
EoghanMcCarthy1
Emerging Contributor

Yes they are, all coming from this webmap:

http://arcg.is/1SC4NV2

I haven't used the local layer widget yet. .

Any other info that can assist let me know.

Thanks,

Eoghan

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Eoghan,

  OK I found the issue and updated the code.

EoghanMcCarthy1
Emerging Contributor

Brilliant,

Thanks for that Robert.

Much appreciated.

Eoghan

0 Kudos
BillSpiking__GISP
Frequent Contributor

Hi Robert,

Do you know if this will work for an implementation using the LocalLayer widget?

Thank you,

Bill

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Bill,

   I believe my testing involved LL widget.

BillSpiking__GISP
Frequent Contributor

Thank you Robert.

0 Kudos