mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

Getting both the road labels and the road geometry #1884

Closed Joo918 closed 2 years ago

Joo918 commented 2 years ago

Hi, I am trying to retrieve road data from Mapbox.

Using your abstract map's Features and mesh modifiers I am able to get the geometry of the road and the road names. However, I'm having trouble trying to pair these two information together. I'm getting each of the geometry and the road names from two different Data layers: road and road_label.

Is there some kind of id that I can match the two types of data to? I've tried looking at feature.Data.Id, but they all seem to be coming in as 0.

Thank you in advance.

Joo918 commented 2 years ago

Well, silly me. Apparently geometry points are included in the road_labels layer as well.