I have implemented the sample flex viewer and am using local state plane data and address locator service. When I use locator to find address, it finds the addresses and lists matches, but put the locations off in space somewhere. Is there a place where I need to change the WKID so the the service will put pins in proper place?
Here is what my locatewidget.xml looks like (I have commented out the state list):
I believe I am having the same problem with version 2.0 of the Flex Viewer that was just released. Is this fix still applicable? I am trying it and having no luck... Thanks! Melissa
No the issue you are having with the FlexViewer2.0 locator widget like has to do with line 365 of the LocateWidget.mxml where they are saying that if the WKID of your map is not 4326 than reproject the results of the locator to webmercator. So if your map wkid is anything other than 4326 or 102100 (webmercator) than you will have issues.
Yes I am using Missouri State Plane spatial reference 102697. so it sounds like I am just out of luck using my own locator with this widget. Thanks for the quick reply!!
Not exactly. Are you using all of your own mapservice and base maps or are you using some of esri's? So your locator returning results in 102697 right? Are you using ArcGIS Server 10?
I am using all of my own map services, no esri services. The address locator finds the address and zooms in, just not to the correct spot. We have not upgraded ArcGIS Server to 10 yet (it is going to be soon though) and I know some of the functionality of the 2.0 Flex viewer won't work with 9.3.1. Is that address locator something that I can't use in 2.0 unless I am at 10?
The reasoning behind this is your map and your locator are using WKID 102697 and the default esri code is saying that if the WKID of the map is not 4326 than reproject the locator point to web mercator. They did not account for people using their own locators and map services when they developed this code.:(
I will say it again, you are AWESOME!!! It works perfectly now... Thank you for your help! You are a great resource on this forum and are much appreciated by those of us starting out with Flex!