ThinkGeo.com    |     Documentation    |     Premium Support

TG14.3 - MBTiles - Error?

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();
}

just let you know it’s recreated and we are working on it.

Jason, can you send me the OS Open Zoomstack - Roads.json you are using?

Jason,

We’ve made some improvements on the vector mbtiles, can you pull the latest beta v14.4.0-beta029 and have another try? It should be working with the OpenStack data and you should also see performance improvements.

VectorTile is one of the high priorities on our list and we will be keep working on it.

Thanks,
Ben

Sorry Ben, was on leave - do you still need the json file?
Thanks

Please send it over to us if your json doesn’t work.

Just FYI, we just made some improvements in the latest version beta030, to support the uris starting with “mapbox://”.