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" !!
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → 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" !!
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.
Thanks .. I ll try it
But ... Is there any example about using Location Service’s if it's more easy to use it ?
Just add Online Maps Location Service component, Create Marker - ON, and specify the desired texture or prefab.
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 ?
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
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!
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.
Infinity Code Forum → Online Maps Help → GPS Location
Powered by PunBB, supported by Informer Technologies, Inc.