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
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
<SPAN class="keyword token">var</SPAN> layer <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">TileLayer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN> url<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"https://your server url/arcgis/rest/services/your tile service/MapServer"</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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.
Nobody?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.