public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); MapView.ConfigureNamedVectorLayers("tpl_69f3eebe_33b6_11e6_8634_0e5db1731f59", delegate { foreach (VectorTileLayer layer in VectorLayers) { layer.InitializeVectorTileListener(MapView); } }); }
protected override void OnCreate(Android.OS.Bundle savedInstanceState) { base.OnCreate(savedInstanceState); MapView.ConfigureNamedVectorLayers("tpl_69f3eebe_33b6_11e6_8634_0e5db1731f59"); Projection projection = MapView.Options.BaseProjection; // Coordinates are available in the viz.json we download MapPos position = projection.FromLatLong(37.32549682016584, -121.94595158100128); MapView.FocusPos = position; MapView.SetZoom(19, 1); }
public override void ViewDidLoad() { base.ViewDidLoad(); MapView.ConfigureNamedVectorLayers("tpl_69f3eebe_33b6_11e6_8634_0e5db1731f59"); Projection projection = MapView.Options.BaseProjection; // Coordinates are available in the viz.json we download MapPos position = projection.FromLatLong(37.32549682016584, -121.94595158100128); MapView.FocusPos = position; MapView.SetZoom(19, 1); }
public void QueryPoints(Action complete) { if (pointLayer != null) { pointLayer.VectorTileEventListener = null; MapView.Layers.Remove(pointLayer); } var username = Conf.Username; var mapname = Conf.MapName; MapView.ConfigureNamedVectorLayers(username, mapname, (VectorTileLayer obj) => { complete(); pointLayer = obj; MapView.Layers.Add(pointLayer); pointLayer.VectorTileEventListener = PointListener; }); }