Select to view content in your preferred language

Flex mobile geolocation

2582
16
11-17-2011 04:56 AM
deleted-user-NnRwwd8ols89
Deactivated User
Hi, I've developed a mobile application using the flex api, but the geolocation doesn't seem to be working on iOS devices, but it does on android.

I've just taken the code from the ESRI mobile web map sample provided with the api for geolocation, but iOS devices do t seem to like it! I've checked the device settings, and tried it on a few devices, but no luck, whereas on android it works fine

Anyone know anything about this!?

Thanks
Ben
Tags (2)
0 Kudos
16 Replies
AaronNash
Deactivated User
Tom,

you have to have a geometry service available to reproject the point, this is the one I was using

  <esri:GeometryService id="geometryService"  concurrency="last" fault="onFaultGeo(event)" projectComplete="projectCompleteHandler(event)"  url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"/>
0 Kudos
AaronNash
Deactivated User
here is a sample project I posted, that has all the code for geolocation and also buffers the map point for horizontal accuracy.
0 Kudos
TomRauch
Emerging Contributor
Aaron, thanks!  I will give that a shot later this afternoon/evening!  Tom
0 Kudos
TomRauch
Emerging Contributor
Aaron, the script works - thank you!  I am now interested in using an httpservice call to load custom xml as markers on a map.  If you know where I can get guidance on that, please let me know!  Thanks again.
0 Kudos
AaronNash
Deactivated User
I have not personally done that within my app, here is a link to an Adobe video showing how to access an XML feed and process the data into a list. Here is another link to a GeoRSS feed sample, that will probably provide you with more information on how to process the data into map points. Maybe someone else will chime in, since this is a new question you will want to create a new thread. If i solved your original problem please rate my response.
0 Kudos
TomRauch
Emerging Contributor
Excellent response!
0 Kudos
AndyGup
Esri Regular Contributor
For anyone interested, attached is an ActionScript Class that let's you build the circle polygon in the client when using WGS84 or Web Mercator base maps. When you call the createMercatorBasedCircle() method you pass the radius value taken from the GPS. This eliminates the server round trip to a geometry service. to For a demonstration of how it works, the code is taken from this project: http://www.arcgis.com/home/item.html?id=5f3bf5febd9e4a1d8cf92b15c75b9e41

-Andy
0 Kudos