Topic: Access Markers in runtime to collect info and expand the class

Hello,

Thank you very much for your help so far. I have a question regarding Markers in runtime and how I can access to their info(label, coordinates, game object prefab...maybe also expand the class if possible).

At the moment,  have a bunch of POI/Markers that I have placed and now I want to access them in runtime to collect information.

When my GPS Marker (the player) goes within a certain range to a specific marker I would like to use the marker information to create an interaction (for instance, I could use the label or a string field to load a specific scene)

So far I have used colliders to trigger the event, but I am not able to access the marker info. The alternative would be to create  hundreds of different prefabs for each single marker, but thats not scalable or efficient.

Tried >OnlineMapsMarker class but it doesnt seem to do anything for me.

Thanks
Yuri

Re: Access Markers in runtime to collect info and expand the class

Hello.

Markers are stored in OnlineMapsMarkerManager.
https://infinity-code.com/doxygen/onlin … nager.html
You can create / delete / modify this runtime.

If you need to store some information in a marker instance, you can do so using customFields.
How to use it:
https://infinity-code.com/atlas/online- … ample.html
You can store any type of value in customFields.

If necessary, you can extend the OnlineMapsMarker class, but to be honest, I don't know why this might be necessary.

Kind Regards,
Infinity Code Team.

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