mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

Accessing Dataset Properties via script

Open AzeExMachina opened this issue 8 years ago • 2 comments

Greetings everyone, I have a problem in trying to retrieve tilesets data at runtime.

I have a custom tileset I'm using on my AbstractMap in Unity, I've added a Map Feature I'm using to visualize some modified prefabs on buildings. What I wanted to know however is how to access the following properties from my tilesets. I've seen that I can filter on those keys in the inspector. So how can I access those? image

Thanks in advance!

AzeExMachina avatar Sep 27 '18 15:09 AzeExMachina

@AzeExMachina Currently, the best way to access these keys is via the inspector. We're looking into public APIs for these and are working on APIs for the rest of the AbstractMap as well for devs who want to do this via script.

jordy-isaac avatar Sep 28 '18 16:09 jordy-isaac

Hello, any updates on this? I have a polygon dataset with some property (key-value), exported it to tileset, and styled it as a new layer in a new basic style. When I publish and use that style in Unity3d, the polygon is inscribed in the map and there is nothing more to do about it. How can I get the position of such datasets and how to get properties associated with them?

Sailendrakc avatar Mar 21 '21 08:03 Sailendrakc