Topic: Placing Marker Using Geo Coordinates

Hi, I'm researching Online Maps. I've used MapBox. Does Online Maps have a feature similar to MapBox's SpawnOnMap? This class allows you to pass a prefab and coordinates in the component's inspector. Then the game object would appear on the map.

Here is the MapBox SpawnOnMap feature -> https://docs.mapbox.com/unity/maps/over … d-markers/

Thank you.

Re: Placing Marker Using Geo Coordinates

Hello.

If you just want to add markers use Online Maps Marker Manager and Online Maps Marker 3D Manager components.
Or you can do it using the API (OnlineMapsMarkerManager.CreateItem / OnlineMapsMarker3DManager.CreateItem).
Examples:
https://infinity-code.com/atlas/online- … Click.html
https://infinity-code.com/atlas/online- … ample.html
When using markers, you do not need to update their position in the scene. The map does this automatically.

If you want to position regular GameObjects without creating markers, you convert the coordinates to Unity World Position using OnlineMapsControlBaseDynamicMesh.GetWorldPosition.
https://infinity-code.com/doxygen/onlin … 6316068362

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.