Topic: how to scripting marker position by GPS position?

i want  marker position by GPS position.

this my code

OnlineMapsMarker3DInstance playerMarkerInstance;
void Update(){
playerMarkerInstance.marker.position = new Vector2(Input.loaction.lastData.longitude ,Input.loaction.latitude);
}


As I work well under the updated version it does not work.

Re: how to scripting marker position by GPS position?

Hello

1. You have a typo in «Input.location».
2. You do not check the status.
http://docs.unity3d.com/ScriptReference … tatus.html
3. The best way to do this:
http://infinity-code.com/atlas/online-m … ample.html

Kind Regards,
Infinity Code Team.

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