Topic: Creating game objects on maps

Hi - I am new to online maps and wondered if you could help.
I would like to create geo located gameobjects (markers and lines) which I can attach scripts to, to govern their behaviour (repositioning markers and colouring lines according to changing properties). Is this possible? If so how can I implement this?
Thanks in advance

Re: Creating game objects on maps

Hello.

Please see here:
http://infinity-code.com/atlas/online-m … tml#Marker
http://infinity-code.com/atlas/online-m … wing%20API
We have a lot examples of the markers and Drawing API.

Kind Regards,
Infinity Code Team.

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

Re: Creating game objects on maps

Thanks for the quick reply.
I managed to draw lines (representing roads) successfully on the maps so thank you. A few additional questions I have:

- Are these lines seen as individual gameobjects?
- Can I raycast them or click on them so I can programmatically change attributes such as colour?
- Can I stored user defined attributes for these lines (such as an id, and as they represent roads in my application, things like lanes)?
- Finally, my application renders more than 10,000 lines and I'm hitting performance issues. Is there a way of only rendering lines within view. I realise level of detail (LOD) settings may help here but these are associated with camera position and not zoom level on the maps

Any pointers would be greatly appreciated - thank you in advance

Re: Creating game objects on maps

Hello.

1. This depends on the control. For tileset control it will be a separate GameObjects.

2. OnlineMapsDrawingElement.OnClick.
http://infinity-code.com/doxygen/online … 7c3bd5d9b1
Yes, you can change the color of the lines (OnlineMapsDrawingLine.color).
http://infinity-code.com/doxygen/online … 2f1c3f2526

3. Drawing API is not designed for such a large number of elements, and most likely you will need to implement your own Drawing API, to achieve this.

Kind Regards,
Infinity Code Team.

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

Re: Creating game objects on maps

Thanks for your post and reply, I'm also new to online maps. I had same questions and i have get answer form here.