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

`Point` Layers are always placed on tile center

Open jim-martin opened this issue 8 years ago • 3 comments

Layer visualizers with primitive type point always appear at tile center, rather than the feature's location. Feature placement options don't seem to have an effect.

Reproduction steps:

  1. Create a new abstract map in a new scene
  2. Add a new Vector Layer Visualizer
  3. Setup the layer visualizer like this: screenshot 2018-03-26 17 36 43 *Primitive Type: Point *Feature Position: First Vertex
  4. Play the scene and select any poi_label generated on the map, it should appear at tile center.
  5. Exit play mode and adjust the Feature Position option, every setting produces the same result.

The feature position options supplied seem focused on polygons, could more clear Point Position and Tile Center options be provided?

  • Unity version: 2017.3
  • Mapbox SDK version: 1.4

jim-martin avatar Mar 27 '18 00:03 jim-martin

@jim-martin You need to add a GameObject modifier with point features. We don't do any mesh generation for point features by default. Add a PrefabModifier and it should work as expected.

abhishektrip avatar Mar 28 '18 20:03 abhishektrip

@jim-martin We should document this 😄

abhishektrip avatar Mar 28 '18 20:03 abhishektrip

@jordy-isaac @morgane see above - we should document this.

MiroMuse avatar Mar 28 '18 22:03 MiroMuse