Topic: GPS Location

Hi
does this script(Marker_GPS_Example.cs) display my device location and do an update every 10m for my device location ?
if yes !!
i cant find the function that can i specify or change the icon of my location prefap"icon" !!

Re: GPS Location

Hello.

Yes, this example can show your location if you have already added the Online Maps Location Service component.
Create a public texture field, and pass that to OnlineMapsMarkerManager.CreateItem.
But it’s much easier to use the Location Service’s built-in features to create a marker.
This example is created for a situation when you cannot use Location Service’s features.

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 tamim.ali.zoabi 2019-09-17 06:54:10)

Re: GPS Location

Thanks .. I ll try it
But ... Is there any example about using Location Service’s if it's more easy to use it ?

Re: GPS Location

Just add Online Maps Location Service component, Create Marker - ON, and specify the desired texture or prefab.

Kind Regards,
Infinity Code Team.

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

5 (edited by tamim.ali.zoabi 2019-09-18 02:29:26)

Re: GPS Location

Thanks for you
Solved .. but there is a one Question
My device did not recognized change location untel I configure in my phone setup Location Service .
Why my device did not recognized that there is a need for this permission and asked me to enable it automaticly ?

Re: GPS Location

Unity Editor had this setting before, but in recent versions, detection of this permission occurs automatically.
https://docs.unity3d.com/ScriptReferenc … Start.html

You can manually configure Android Manifest.
https://developer.android.com/guide/top … ntro?hl=en
Or request this permission yourself:
https://docs.unity3d.com/Manual/android … sions.html

Kind Regards,
Infinity Code Team.

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

Re: GPS Location

When i start my application i would like to take my device gps location and having me in the center of the map (sthng like google maps) instead of showing a "saved location". Adding Online Maps Location Service component can i succeed or i need to do something more? Thank you!

Re: GPS Location

Please read post #6 to solve the problem.

P.S. Online Maps v3.7 will automatically request permission at runtime if this does not happen automatically.

Kind Regards,
Infinity Code Team.

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