I am using ArcGIS Runtime and i want to change the basemap to use Nearmap maps. What API can i use?
Thank you!
Thank you.
I have tried the 3 suggestions in order to use Nearmap as the basemap for ArcGIS Runtime, however, none of them worked. Please see example of my code below.
WMS way:
mapView = new MapView(); myMap = new Map(Basemap.CreateImagery());overlay = new GraphicsOverlay();mapView.GraphicsOverlays.Add(overlay);mapView.Map = myMap;//add WMS Layer for Nearmap mapUri wmsUrl = new Uri(@"https://wmsus.nearmap.com/wms?REQUEST=GetCapabilities&httpauth=false&apikey=MyAPIKey");List<String> wmsLayerNames = new List<string> { "1" };WmsLayer myWmsLayer = new WmsLayer(wmsUrl, wmsLayerNames);myMap.OperationalLayers.Add(myWmsLayer);
WMTS way:mapView = new MapView(); myMap = new Map(Basemap.CreateImagery());overlay = new GraphicsOverlay();mapView.GraphicsOverlays.Add(overlay);//add WMTS Layer for Nearmap mapBasemap myBasemap = myMap.Basemap;LayerCollection myLayerCollection = myBasemap.BaseLayers;WmtsLayer myWmtsLayer;Uri wmtsUri = new Uri("https://us0.nearmap.com/maps/api/wmts/v1/apikey/MyAPIKey");myWmtsLayer = new WmtsLayer(wmtsUri, "WorldTimeZones");myLayerCollection.Add(myWmtsLayer);mapView.Map = myMap;
WebTile way:mapView = new MapView(); myMap = new Map(Basemap.CreateImagery());overlay = new GraphicsOverlay();mapView.GraphicsOverlays.Add(overlay);//add WebTile Layer for Nearmap mapWebTiledLayer myBaseLayer = new WebTiledLayer("https://api.nearmap.com/tiles/v3/Vert/z/y/x".jpg?apikey=MyAPIKey", new List<string> { "a", "b", "c", "d" });Basemap layerBasemap = new Basemap(myBaseLayer);myMap = new Map(layerBasemap);mapView.Map = myMap;
Please advise what i can do to use Nearmap.
Hi,
It looks like Nearmap content is available in a few formats. Their documentation indicates that you can use WMTS or WMS, or web tiles to access their content.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.