emenendez / cell-gps

Cellular device geolocation web app
http://login.cellgps.org
4 stars 3 forks source link

Alternate map - ArcGIS Online #38

Open pjdohertygis opened 10 years ago

pjdohertygis commented 10 years ago

@emenendez http://www.arcgis.com/home/webmap/viewer.html?useExisting=1 image

emenendez commented 10 years ago

That would be great. See also #23; it would be nice to include a ring on the map to indicate location accuracy and maybe even embed the map right in the app.

pjdohertygis commented 10 years ago

The embed is pretty easy - we use an iframe right in the web map via the share button.


View larger map ![image](https://cloud.githubusercontent.com/assets/4256979/4014405/50426212-2a20-11e4-99d2-8b4dc207c6a0.png) The buffer will take some thought - there is a Create Buffer tool in the Analysis Tools. However, this requires you generate a feature first (and an ArcGIS Online account). http://doc.arcgis.com/en/arcgis-online/use-maps/perform-analysis.htm There may be another approach but we will get the point on the map first : )
pjdohertygis commented 10 years ago

@archermaps

Sounds like we can tinker with the "Find clause" in the web map URL http://www.arcgis.com/home/webmap/viewer.html?find=-105.117075,39.919797

Basically after any web map html ?find=long,lat

This is not ideal because I'd like to show a pin and immediately be able to kick off other tasks like buffer and edit a feature service, also we would want the default zoom level to be much larger scale (1:50,000?).

But it is a start : )

dferguso commented 10 years ago

Maybe you guys have already solved the accuracy ring issue but if not here is a javascript example:

https://developers.arcgis.com/javascript/jssamples/util_buffer.html

Just replace the params.distances = [ 5, 10 ] with params.distances = [ "accuracy"]

pjdohertygis commented 8 years ago

So this is the general approach a developer could take... A really simple way to start is just use the URL parameters within ArcGIS Online....notice the lat / long are inverse.

For example -

Use: http://www.arcgis.com/home/webmap/viewer.html?find=174.77604468118105,-41.295869870758

For more details see https://doc.arcgis.com/en/arcgis-online/reference/use-url-parameters.htm