AnsweredAssumed Answered

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

Question asked by mattdiamond on Sep 9, 2016

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?