Anyone have sample code that consumes a /z/x/y.png layer?
Hi Jeff,
Current 100.0.0 Runtime hasn't implement the capability of using WebTiledLayer including (OpenStreetMap,WMS, WMTS, etc), for more detail information please check this online documentation:
Runtime Choosing the right version | ArcGIS for Developers
Jeff,
For better visibility, it might be best to move this thread to the https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-ios?sr=search&searchId=7836d195-d168-4696-803c-11cde9368f58&searchIndex=0 place. Currently it's in the https://community.esri.com/community/help-and-feedback?sr=search&searchId=42de48eb-649d-4797-973e-acba893d7612&searchIndex=0 place which is for help with the GeoNet.
Thanks. My bad for not being more specific. ArcGIS iOS and Android SDKs - the previous 10.x versions had that method. I don't see it in the new 100 version but I'm guessing there's a new way to do it?
If you are using the 3.19 API, have a look at WebTiledLayer | API Reference | ArcGIS API for JavaScript 3.19
with a nice example here: ArcGIS API for JavaScript Sandbox
Which programming environment / language are you working in? I have seen similar examples to this in Leaflet.js:
Leaflet - a JavaScript library for interactive maps
Like:
<SPAN class="keyword token">var</SPAN> map <SPAN class="operator token">=</SPAN> L<SPAN class="punctuation token">.</SPAN><SPAN class="token function">map</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'map'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">setView</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">51.505</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">0.09</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">13</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> L<SPAN class="punctuation token">.</SPAN><SPAN class="token function">tileLayer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token"><SPAN>'</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" target="_blank">http://</A><SPAN>{s}.tile.osm.org/{z}/{x}/{y}.png'</SPAN></SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">{</SPAN> attribution<SPAN class="punctuation token">:</SPAN> <SPAN class="string token"><SPAN>'© <a href="</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fosm.org%2Fcopyright" target="_blank">http://osm.org/copyright</A><SPAN>">OpenStreetMap</a> contributors'</SPAN></SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">addTo</SPAN><SPAN class="punctuation token">(</SPAN>map<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> L<SPAN class="punctuation token">.</SPAN><SPAN class="token function">marker</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">51.5</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">0.09</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">addTo</SPAN><SPAN class="punctuation token">(</SPAN>map<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="token function">bindPopup</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'A pretty CSS3 popup.<br> Easily customizable.'</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="token function">openPopup</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></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.