protected override void OnCreate(Android.OS.Bundle savedInstanceState) { base.OnCreate(savedInstanceState); /// Set online base layer var styleAsset = AssetUtils.LoadAsset("nutibright-v2a.zip"); var baseLayer = new CartoOnlineVectorTileLayer("nutiteq.osm", new ZippedAssetPackage(styleAsset)); MapView.Layers.Add(baseLayer); MapSetup.AddMapOverlays(MapView); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Set online base layer var styleAsset = AssetUtils.LoadAsset("nutibright-v2a.zip"); var baseLayer = new CartoOnlineVectorTileLayer("nutiteq.osm", new ZippedAssetPackage(styleAsset)); MapView.Layers.Add(baseLayer); MapSetup.AddMapOverlays(MapView); }