Topic: Best way to change lat/lng and zoom by own script

Seems to be a very basic question, but not obviously to me. I want to change the latitude, longitude and zoom via my own script. What is the easiest way to do that?

Thank you!

Re: Best way to change lat/lng and zoom by own script

Hello.

OnlineMaps.SetPosition
OnlineMaps.SetPositionAndZoom
OnlineMaps.position
OnlineMaps.zoom

http://infinity-code.com/doxygen/online … eMaps.html

Kind Regards,
Infinity Code Team.

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

3 (edited by schina 2017-02-26 16:24:34)

Re: Best way to change lat/lng and zoom by own script

Perfect, thank you!

Another question: There is a label which is shown at left button in my case. How can I change the position of the label for custom Vector2 position in VR?

Should I change the code from OnlineMaps.cs to show/hide a GameObject?

Re: Best way to change lat/lng and zoom by own script

Hello.

You can intercept the drawing of tooltips, and draw your own tooltips.
For example:
http://infinity-code.com/atlas/online-m … ample.html
http://infinity-code.com/atlas/online-m … ample.html

What GameObjects you want to show / hide?
Please explain this in more detail.

Kind Regards,
Infinity Code Team.

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