Topic: adding variables to 2D marker

Hi,

Is there an easy way to add variables to a 2D marker; i'd like to display an image and 2 textfields when clicked on a marker.. I looked into the onlineMaps.cs how the creation of the marker is constructed, but i guess i shouldn't be screwing around with that script(?)

Also i'd like to extract the Lon and Lat on a per marker basis, is there a way to access these values (like 'marker.label')?

ps. i'm a semi-noob scripter, so apologies for asking maybe obvious questions wink

thanx!
mike

Re: adding variables to 2D marker

Hello.

You can store any data in OnlineMapsMarkerBase.customData
http://infinity-code.com/doxygen/online … a199f29dc1
Example:
http://infinity-code.com/atlas/online-m … ample.html

To get the coordinates of the marker, use OnlineMapsMarkerBase.GetPosition or OnlineMapsMarkerBase.position.

Kind Regards,
Infinity Code Team.

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