Why does NearMe widget require me to make my server online in my enterprise in order to run? when offline the widget only shows the search result but doesn't make a proximity search and shows me no result is found message
For my knowledge it makes buffer so it doesn't need a network service or any services from ArcOnline server
Need help in that please
Thanks in advance
I believe this is because the widget is designed to use the geometry service from your portal.
In the widget.js around line 204 I see this code that indicates that is what it is doing.
//get portal info to fetch geometry service Url
portalUtils.getPortalSelfInfo(this.appConfig.portalUrl).then(lang.hitch(
this,
function (portalInfo) {
// get helper-services from portal object
this.config.helperServices = portalInfo && portalInfo.helperServices;
if (this.config.helperServices && this.config.helperServices.geometry) {
Thanks alot,
It makes a lot of sense. Also do you recommend any workarounds in order to use the widget without the need into going online?
If you are using the developer edition of webapp builder you can customize the widgets. In this case I would try to modify this widget to utilize the ArcGIS Online geometry service. https://tasks.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer