Skip to content

Commit bce4753

Browse files
committed
fix layer root objects to be place at local origin properly
1 parent 2b93e98 commit bce4753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/Mapbox/VectorModule/VectorLayerVisualizer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public VectorLayerVisualizer(string name, IMapInformation mapInformation, UnityC
4343
_stackList = new Dictionary<int, ModifierStack>();
4444
_results = new Dictionary<CanonicalTileId, List<VectorEntity>>();
4545
_layerRootObject = new GameObject(_vectorLayerName + " layer objects").transform;
46-
_layerRootObject.transform.position += _settings.Offset;
4746
_layerRootObject.SetParent(_unityContext.RuntimeGenerationRoot);
47+
_layerRootObject.transform.localPosition = Vector3.zero;
48+
_layerRootObject.transform.position += _settings.Offset;
4849
}
4950

5051
public void UpdateForView(CanonicalTileId canonicalTileId, IMapInformation information)

0 commit comments

Comments
 (0)