Hi,
Using a VectorMBTilesAsyncLayer, which was working just fine in TG14.1, now updated to TG14.3 and it’s stopped working!
An error is thrown on RefreshAsync():
System.InvalidOperationException: The requested operation requires an element of type ‘Number’, but the target element has type ‘String’
The source MBTiles data is the same and in the same location, the code has not changed, the only thing that has changed is ThinkGeo updated to 14.3…
I have recreated the exact same issue with a new, clean app that houses nothing but the ThinkGeo map control and the simple code I’ve posted below.
Any ideas?
Thanks,
Jason.
code used:
private async void MapView_Loaded(object sender, RoutedEventArgs e)
{
thinkgeoMap.MapUnit = GeographyUnit.Meter;
LayerOverlay vectortileOverlay = new LayerOverlay();
vectortileOverlay.TileType = TileType.SingleTile;
thinkgeoMap.Overlays.Add(vectortileOverlay);
var layer = new VectorMbTilesAsyncLayer(@"C:\Mapping\MBTiles\Zoomstack\OS_Open_Zoomstack.mbtiles", @"C:\Mapping\MBTiles\Zoomstack\OS Open Zoomstack - Roads.json");
vectortileOverlay.Layers.Add(layer);
await thinkgeoMap.RefreshAsync();
}