Topic: How to get world position of location on my tileset

So I have a new unity project and have upgraded to using the new Online Maps 4 asset.  Years ago, using online maps 3 I was able to execute this line:

// get the world (vector3) pos corresponding to this lat/lon
Vector3 customMarkerPos = OnlineMapsTileSetControl.instance.GetWorldPosition(someObject.Long, someObject.Lat);

I looked through the atlas of examples and searched here on the forum, but I only came up with:

Vector3 customMarkerPos = OnlineMapsControlBaseDynamicMesh.instance.GetWorldPosition(locationMarker.location);

Unfortunately I get:  The name 'OnlineMapsControlBaseDynamicMesh' does not exist in the current context

I think I'm in over my head here Alex.  Any suggestions?  Thanks!

Re: How to get world position of location on my tileset

Hi.

// get the world (vector3) pos corresponding to this lat/lon
Vector3 customMarkerPos = TileSetControl.instance.LocationToWorld(someObject.Long, someObject.Lat);

https://infinity-code.com/documentation … ionToWorld

Upgrade From Online Maps v3:
https://infinity-code.com/documentation … de-from-v3

Kind Regards,
Infinity Code Team.

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

Re: How to get world position of location on my tileset

Thanks!!  Awesome Alex smile