Can we get a .navigationVectorDarkMode AGSBasemap up in here?

330
1
Jump to solution
10-01-2019 05:04 PM
MichaelDavis3
Occasional Contributor III

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!

0 Kudos
1 Solution

Accepted Solutions
Nicholas-Furness
Esri Regular Contributor

I'll put in a request, but in the meantime you could just add an extension to AGSBasemap if you wanted…

extension AGSBasemap {
    public class func darkNavigationVectorBasemap() -> AGSBasemap {
        let darkNavigationURL = URL(string: "https://www.arcgis.com/home/item.html?id=b69e76a446ac479998ff31de839ba323")!
        return AGSBasemap(baseLayer: AGSArcGISVectorTiledLayer(url: darkNavigationURL))
    }
}
‍‍‍‍‍‍

View solution in original post

1 Reply
Nicholas-Furness
Esri Regular Contributor

I'll put in a request, but in the meantime you could just add an extension to AGSBasemap if you wanted…

extension AGSBasemap {
    public class func darkNavigationVectorBasemap() -> AGSBasemap {
        let darkNavigationURL = URL(string: "https://www.arcgis.com/home/item.html?id=b69e76a446ac479998ff31de839ba323")!
        return AGSBasemap(baseLayer: AGSArcGISVectorTiledLayer(url: darkNavigationURL))
    }
}
‍‍‍‍‍‍