OneMap + Xamarin + ArcGIS

Hi,

Is OneMap able to serve basemap with ArcGIS?

Are we able to load OneMap with Xamarin (using ArcGIS Runtime SDK for .NET)? We trying to build a cross-platform mobile app. I’ve tried to load a new ArcGISTiledLayer with uri “http://www.onemap.sg/ArcGIS/rest/services/BASEMAP/MapServer”, however the map is not loading.

Ref: https://developers.arcgis.com/net/latest/android/guide/develop-your-first-map-app.htm

Thanks!

ok, I load it this way.

var myUri = new Uri(“https://mapservices.onemap.sg/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS”);
WmtsService myWmtsService = new WmtsService(myUri);
await myWmtsService.LoadAsync();

WmtsServiceInfo myWMTSServiceInfo = myWmtsService.ServiceInfo;
IReadOnlyList myWmtsLayerInfos = myWMTSServiceInfo.LayerInfos;
WmtsLayer myWmtsLayer = new WmtsLayer(myWmtsLayerInfos[0]);
_map = new Map();

Basemap myBasemap = _map.Basemap;
LayerCollection myLayerCollection = myBasemap.BaseLayers;
myLayerCollection.Add(myWmtsLayer);

The URI you have specified in your starter thread: http://www.onemap.sg/ArcGIS/rest/services/BASEMAP/MapServer isn’t working anymore since we have switched to OneMap 2 (New OneMap) API Services.

You have found the correct URI for WMTS service for ArcGIS support: https://mapservices.onemap.sg/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS

The WMTS looks blurry compared to the TileJson loaded by Mapbox. Any idea why?

Hi @loy,

This is a known issue for having blurry tiles loaded from ArcGIS/ArcMap stack when using WMS/WMTS tiles as the ArcGIS/ArcMap modules re-render the resolution (compressed png/jpeg) for quick tiles viewing/browsing.