AnsweredAssumed Answered

How to enable the locate widget.

Question asked by mprindiville_gis on Jan 26, 2017
Latest reply on Apr 17, 2017 by mprindiville_gis

I'm using the Shortlist Story Map latest version and I want to enable the locate widget.

 

I've added this:

 

var geoLocate = new LocateButton({
map: app.map,
highlightLocation: false
}, "LocateButton");

geoLocate.startup();

 

to the custom-scripts.js

and added a div to the index

<div id="LocateButton"></div>

Using the following as reference.  Locate Button | ArcGIS API for JavaScript 3.19 

However I still don't see it appearing in the app.

Outcomes