0

I am having a Map Service from a ArcGIS Server Manager which I would like to add to the .cshtml page of my MVC project is this possible like the way shown in here by ESRI

https://developers.arcgis.com/en/javascript/jssamples/index.html#latest_samples

I am able to use the samples but how do I use my Map.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Dec 12, 2013 at 21:18

1 Answer 1

2

After you have published a map service, you can access it from any other application or framework that can work with web services via REST or SOAP. Since you work with JS API, you can refer to your map services via such URL:

http://<yourservername>/<instance name>/rest/services/<mapservicename>/MapServer

You can see what URL your map serivce(s) have in a special application called Services Directory which you can access at the

http://<yourservername>/<instance name>/rest/services

where you can get a list of all services, their capabilities and URLs. Here is the sample that consumes a dynamic map service in JS API.

answered Dec 13, 2013 at 7:52
2
  • Thank you this is exactly what I wanted.But one issue is that when I use the Map service as an application I have tools around it which help in interaction with the map how do I get them as well? Commented Dec 13, 2013 at 17:07
  • 1
    If you refer to such tools as you would get in ArcMap (zoom in/out, pan, last extent icons) >> you need to code them yourself. Take a look at existing samples to get an idea - developers.arcgis.com/en/javascript/jssamples/…. Commented Dec 13, 2013 at 17:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.