Topic: Zoom to GPS location at start

How do I zoom to the user's GPS location at launch?

I want to zoom in from level 3 to level 18 from lat 0, longitude 0 tot the user's location in the world.

The smooth move example script won't work in start and doesn't allow for the elevation zoom.

Also, it's unclear how to use OnlineMapsLocationService.OnLocationInited. Can you give me an example of how to check if location has been received and how to achieve the above?

Thanks!

Re: Zoom to GPS location at start

Hello.

GPS position is not yet available in Start. Need some time to GPS initialization.

OnlineMapsLocationService.OnLocationInited used in the same way as OnlineMapsLocationService.OnLocationChanged.
Example:
http://infinity-code.com/atlas/online-m … ample.html

I'll make you an example of how to do what you describe. But it will take some time.

Kind Regards,
Infinity Code Team.

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

Re: Zoom to GPS location at start

Ok thanks!

Re: Zoom to GPS location at start

Hello.

As promised, I have made an example for you.
But I do not know, it is a success or fail, because at high zoom, tiles do not have time to load.

Post's attachments

Attachment icon SmoothMoveToGPSLocation.cs 2.88 kb, 339 downloads since 2016-09-18 

Kind Regards,
Infinity Code Team.

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