Hi,
I've got a vector tile package that I'm trying to load into a MapView. The map control is definitely added to the page (building off Tuesday's lab), but I can't get the .vtpk to draw. Seems like something silly that I'm missing. I'm sure the vector tile package is valid (draws fine in pro, I've published it as a hosted service) and the initial viewpoint should be just within the data area. Appreciate any pointers.
Here is the code snipped I'm working with:
MapView {
id: mapView
anchors.fill: parent
Map {
id: map
Basemap {
ArcGISVectorTiledLayer {
id: vectorbasemap
url: AppFramework.userHomePath + "/ArcGIS/Runtime/Data/Basemap_Color_Complete_Vector.vtpk"
}
}
initialViewpoint: ViewpointCenter {
id: initialViewpoint
center: Point {
x: 13647642.0
y: 5703059.0
spatialReference: SpatialReference {wkid: 3857}
}
targetScale: 72224.0
}
}
}
which results in this:
The data location should be fine, I think:
This is what the same tile package looks like in pro:
Thanks for the workshop, it's been great and helping to give me the push I needed. AppStudio, AppStudio Player and Qt/QML are (for some reason) more attractive to me than Xamarin... and that's coming from a .NET developer.