Hello!
I am trying to use the DrawingProgressChanged for WmtsLayer on Xamarin Forms, however it never seems to fire.
I want to know when my map has finished drawing, so that some code can be ran.
I use it like the code below. Is this the correct usage?
WmtsLayer wmtsLayer = new WmtsLayer(new[] { new Uri("http://opencache3.statkart.no/gatekeeper/gk/gk.open_wmts") }); //
wmtsLayer.ActiveLayerName = "topo2";
wmtsLayer.ActiveStyleName = "default";
wmtsLayer.WmtsSeverEncodingType = WmtsSeverEncodingType.Kvp;
wmtsLayer.TileMatrixSetName = "EPSG:32632";
wmtsLayer.OutputFormat = "image/jpeg";
wmtsLayer.DrawingProgressChanged += WmtsLayer_DrawingProgressChanged;
layerOverlay = new LayerOverlay();
layerOverlay.TransitionEffect = TransitionEffect.Stretch;
layerOverlay.TileCache = new FileBitmapTileCache(@"/mnt/sdcard/MapSuiteSampleData/TileCaches/", "topo2_cache_wmts");
layerOverlay.Layers.Add("wmtslayer", wmtsLayer);
}
private void WmtsLayer_DrawingProgressChanged(object sender, DrawingProgressChangedEventArgs e)
{
//Do something
}