Select to view content in your preferred language

Transparency Label w/ Add Map Service function in Sample Viewer

603
1
06-16-2010 01:48 PM
JonFisher
Emerging Contributor
Hi,

I'm using the Live Maps widget in the esa directory of the sample map viewer which allows a user to add map services. However, I have two issues with it:

1. while the user-entered name is used in the table of contents, in the transparency pane any added services get generic names like ArcGISDynamicMapServiceLayer1482. Is there an easy way to use the user-entered name instead?

2. I can't get any WMS links to work. If someone has had success adding a WMS link can you please post the link so I can see it?

thanks!

Jon
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Jon,

1. Just add this line under line 164 of the LiveMapsWidget.mxml
dynlayer.name = NameTxt.text;


2. The issue you are likely having is that the WMS portion of code is try to use the proxy url and you do not have you development environment configured properly to work with the proxy page. Easy solution comment out this line @ line 186

wmslayer.proxyURL = configData.proxy
0 Kudos