Any chance we can get the most excellent Navigation (Dark Mode) vector basemap added to AGSBasemap as .navigationVectorDarkMode or similar? I know .streetsNightVectorBasemap exists but I think I like Navigation (Dark Mode) (https://www.arcgis.com/home/webmap/viewer.html?webmap=459cc334740944d38580455a0a777a24) a little bit more 🙂
Hadn't really planned to spend my fall updating all our apps to support Dark Mode... but here we are!
I'll put in a request, but in the meantime you could just add an extension to AGSBasemap if you wanted…
extension AGSBasemap <SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">public</SPAN> <SPAN class="keyword token">class</SPAN> <SPAN class="token class-name">func</SPAN> <SPAN class="token function">darkNavigationVectorBasemap</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> AGSBasemap <SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">let</SPAN> darkNavigationURL <SPAN class="operator token">=</SPAN> <SPAN class="token function">URL</SPAN><SPAN class="punctuation token">(</SPAN>string<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"https://www.arcgis.com/home/item.html?id=b69e76a446ac479998ff31de839ba323"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="operator token">!</SPAN> <SPAN class="keyword token">return</SPAN> <SPAN class="token function">AGSBasemap</SPAN><SPAN class="punctuation token">(</SPAN>baseLayer<SPAN class="punctuation token">:</SPAN> <SPAN class="token function">AGSArcGISVectorTiledLayer</SPAN><SPAN class="punctuation token">(</SPAN>url<SPAN class="punctuation token">:</SPAN> darkNavigationURL<SPAN class="punctuation token">)</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>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.