Hello, I'm new to arcgis. I need help/advise on how to update GPS lat, long coord to update my new location on my map. I can't find any example to update except using NMEA method. I'm using QML for this. Thanks for the help!
Solved! Go to Solution.
Aha! There are a number of samples that should help you with your goal of using external GPS coordinates to update your location on the map.
Display device location with autopan modes: Retrieve and show your current position on the map
Show device location using indoor positioning: Since you mentioned GPS you probably want the first suggestion. But FYI this sample retrieves and shows your real time position indoors using IPS from indoor positioning beacons. Intended for navigating indoors within buildings.
If your location is on the map display you can simply run Add XY Coordinates to get the coordinates with little effort.
To be clear, are you trying to set your viewpoint to a different x,y value? If yes, here's the Change viewpoint sample which showcases that workflow.
Otherwise, if you could share more details on what you are trying to accomplish or even a snippet of the code you're working on, I may be able to assist.
Sorry for the confusion, what I wanted to achieve is to use an external GPS coordinate to update my location on the map using locationDisplay method to display instead of using the NMEA method. I try to find examples for it but only have the NMEA method.
Aha! There are a number of samples that should help you with your goal of using external GPS coordinates to update your location on the map.
Display device location with autopan modes: Retrieve and show your current position on the map
Show device location using indoor positioning: Since you mentioned GPS you probably want the first suggestion. But FYI this sample retrieves and shows your real time position indoors using IPS from indoor positioning beacons. Intended for navigating indoors within buildings.
Thanks. I will take a look at it.