I'm trying to set a basemap using a url rather than one of the built in factory methods (so that the url can be user configurable), but if I replace:
mapView.Map = new Map(Basemap.CreateImagery());
with:
mapView.Map = new Map(new Basemap(new Uri("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/")));
then I get a blank map. On the other hand, I can use that url to add a BaseLayer, like so:
Basemap basemap = new Basemap();
basemap.BaseLayers.Add(new ArcGISMapImageLayer(new Uri("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/")));
mapView.Map = new Map(basemap);
and this appears to show exactly the same map as the first example, but doesn't perform as well when zooming in and out. Is there any way I can use the url to form the basemap?