Topic: User Location
Hello Dears,
How can i get current User Location and zoom it?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → User Location
Hello Dears,
How can i get current User Location and zoom it?
Hello.
Add an Online Maps Location Service component.
If you want to get the user's location using a script, use OnlineMapsLocationServiceBase.position.
http://infinity-code.com/doxygen/online … 444f547053
Example:
http://infinity-code.com/atlas/online-m … ample.html
thanks for reply.
i have an another question. how to create a route to a location from user location?
thanks a lot.
Example of how to find a route:
http://infinity-code.com/atlas/online-m … ample.html
Use OnlineMapsLocationServiceBase.position as the starting position to find the route from the current user location.
Example of how to find a route:
http://infinity-code.com/atlas/online-m … ample.htmlUse OnlineMapsLocationServiceBase.position as the starting position to find the route from the current user location.
thanks a lot Alex Vertax,please give me a code that find a rout from user location,i can't do it!
Vector2 origin = OnlineMapsLocationService.instance.position;
var destination = new Vector2(longitude, latitude); // Vector2 or string (address of destination)
OnlineMapsGoogleDirections.Find(origin, destination).OnComplete += OnGoogleDirectionsComplete;
thanks for reply.
how can i access to 2d Markers longitude and latitude ?
OnlineMapsMarkerBase.GetPosition
http://infinity-code.com/doxygen/online … 20d4968b61
hello dear
my maps is very slow on change location or move on map with mouse,but my internet speed is high,how can i solve this problem?
There can be so many reasons why your application is slow.
What size of the map are you using?
Which tile provider do you use?
Any other information can also be useful.
size of map = 1024 * 1024
provider = google maps
and in the scene just have 2 button.
1024x1024 are slow?!
Very interesting.
What version of Online Maps do you use?
Please send screenshots of Online Maps, used control, Online Maps Location Service.
Infinity Code Forum → Online Maps Help → User Location
Powered by PunBB, supported by Informer Technologies, Inc.