Select to view content in your preferred language

Geolocation API with Near Me Widget

932
2
05-08-2017 11:43 AM
Sung-JunKim1
Emerging Contributor

Is anybody working on implementing geolocation API on Near Me Widget?  Geolocation will be a great tool when people use mobile devices to locate nearby facilities.

0 Kudos
2 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi City of Columbia GIS,

Technically you can take a reference from My Location Widget .js file to implement this Class: 

"esri/dijit/LocateButton"

LocateButton | API Reference | ArcGIS API for JavaScript 3.20 into Near Me widget 

The LocateButton has already implement the HTML5 Geolocation API

Hope this can help.

Sung-JunKim1
Emerging Contributor

Is there any near future plan that you will include Geolocation on Near Me Widget?  I am not a programmer to customize the existing widget.

Thanks,

0 Kudos