Select to view content in your preferred language

layers

920
4
08-12-2013 01:30 AM
Dianede_lanfranchi
Emerging Contributor
Hi,

I'd like to enable/disable layers on my application but i'm having some problems with that.

I found a sample which does exactly what I want, here.

I also saw that to make it work I need to put my layers on my MapServer using this but there is no any "share as" in my arcmap since i'm running the v10.0.
All I want at the moment would be to generate such link to get my layers.
layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer");
0 Kudos
4 Replies
VinayBansal
Frequent Contributor
Publishing a mapservice is different in ArcGIS Server 10.0 than ArcGIS Server 10.1.
Follow this link
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00sq00000018000000.htm
0 Kudos
Dianede_lanfranchi
Emerging Contributor
According to the help I have to up it into arcgisOnline
0 Kudos
VinayBansal
Frequent Contributor
According to the help I have to up it into arcgisOnline


No you have to up it into your ArcGIS Server. When you publish your service using the wizard given in the link, it asks for your arcgis server location and the service name. Once you do that service is published in your ArcGIS server
0 Kudos
JohnGravois
Deactivated User
i think what Diane is saying is that she is using ArcGIS Online to publish her data.  since AGOL only supports publishing hosted cached map services and feature services, so you are not able to create an ArcGISDynamicMapServiceLayer object pointing at AGOL content.
0 Kudos