How to Connect to Local Map Server

838
3
Jump to solution
08-27-2019 04:38 AM
JeffKing3
New Contributor

Greetings,

We are using the esri 4.11 javascript library for our mapping solution.  For our development environment, we have been using the default configuration which connects to the remote tile server (https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer).  Now we need to point to our local in-house server.  How and where is that configured?

Thanks,

Jeff

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Jeff,

  Have you seen this sample?

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=basemap-custom 

Basically you would use that sample but replace web tile layer with 

  var layer = new TileLayer({
    url: "https://your server url/arcgis/rest/services/your tile service/MapServer"
  });‍‍‍‍‍‍

View solution in original post

0 Kudos
3 Replies
JeffKing3
New Contributor

Nobody?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jeff,

  Have you seen this sample?

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=basemap-custom 

Basically you would use that sample but replace web tile layer with 

  var layer = new TileLayer({
    url: "https://your server url/arcgis/rest/services/your tile service/MapServer"
  });‍‍‍‍‍‍
0 Kudos
JeffKing3
New Contributor

OK, we were using ArcGISDynamicMapServiceLayer and that didn't work.  The one you are suggesting works. I see now it's a version thing.

Thank you for your help.

0 Kudos