Esri / crowdsource-reporter

An ArcGIS Online group application template authored by organization and made available to constituents to report a problem or observation.
http://solutions.arcgis.com/local-government/help/crowdsource-reporter/
Apache License 2.0
25 stars 32 forks source link

Initial search radius‎ #417

Closed KubaSzostak closed 5 years ago

KubaSzostak commented 5 years ago

If one leaves "Initial search radius" empty application hangs up with TypeError: Cannot read property 'getExtent' of null. It would be great to have ability to set "Initial search radius" empty which will have the same behavior as denying to share their location by user. It shouldn't even check location if this value is empty.

image

allisonmuise commented 5 years ago

@KubaSzostak I am unable to reproduce this TypeError. Where is your application hosted? On your own web server, in your Portal, or in ArcGIS Online?

In December we added a configurable option to the Search Radius section on the Reports tab that will allow you to load the application without asking for the user's location.

KubaSzostak commented 5 years ago

You have to enable Geolocation in your browser. Issue raised on ArcGIS Portal 10.6.1 and AGOL. My today's sample on AGOL still has this issue: https://umgdy.maps.arcgis.com/apps/CrowdsourceReporter/index.html?appid=db35ecd36baf45298d297eedaa45d06e

Steps to reproduce: https://youtu.be/LJjSAsJ-6Is

allisonmuise commented 5 years ago

@KubaSzostak I can reproduce it now. The trick is to configure the app with a value and then remove that value.

In the meantime, I suggest configuring a value and then using the option to 'Allow users to access the application without prompting for their location‎'.