Web App builder Search Widget Not projecting correctly

2629
5
06-04-2016 08:40 AM
AnjithaSenarath4
New Contributor

My base map and my all layers use WKID :4326 (WGS84) projection. Everything is normal but when I search record from search widget using a feature layer... It project to wrong place.  I think it is bug and how to correct it?

ErrorProjecting.png

0 Kudos
5 Replies
ShaharBukra
New Contributor III
Were you able to find out what is the reason? ..
0 Kudos
HillaryBjorstrom
Occasional Contributor

Any answers on this

0 Kudos
ShaharBukra
New Contributor III

Hi, Hillary Bjorstrom Anjitha Senarath

So i kind of debug ESRI js api code and saw that the param maxAllowableOffset do all the damage inside the file Search.js

WorkingNot Working
Working

The value of maxAllowableOffset was 'n' so i changed it to be 0, and only then it zoomed correctly

I've download the JS API to our IIS server and modify the Search.js [The path is [SERVER_NAME]\js_api\3.18\esri\dijit\]

 file now look like this

The edit i did

It worked for us.

hope it will help you as well.

Shahar.

HillaryBjorstrom
Occasional Contributor

i have also found that i had this issue specifically on features with joins. i had to remove the join.

0 Kudos
Anish_Adhikari
Occasional Contributor

I sort of ran into similar problem. My layer was published with Feature access capabilities. The feature layer's projection was off slightly compared to the default mapping layer although they used same mxd's and had same projection. I was going to try Shahar's solution, but found out an easier way to suit my needs. So the simple solution that worked for me was to publish the mxd as mapping(default) and WFS enabled instead of mapping and Feature access. The search widget will work with the layer.  

0 Kudos