Javascript API 4.0: Search Widget is unsetting source locator's outSpatialReference property

09-09-2016 10:35 AM
New Contributor

I am attempting to create a Search Widget with a locator source (no map). When I enter a query and check the Network activity of my browser tab, I can see that the widget is using the url of the locator, but it is not respecting the outSpatialReference property of the locator: it does not pass through an "OutSR" value so the server can provide correctly formatted coordinates. In fact, if I inspect the locator object after the query is performed, the outSpatialReference property is now undefined. So not only does the Search Widget ignore my source locator's outSR preference, it actively unsets it.

What's going on and how do I fix this?

0 Kudos
1 Reply
New Contributor III

Hi All,


I am also having the same issue. I am using 4.16. Please let know how can I set outSpatialReference  in search widget.

0 Kudos