Select to view content in your preferred language

Blank Map After Using Locate Widget

1144
4
08-17-2010 12:22 PM
JimWelsh
Deactivated User
I apologize if this has been handled in another thread, but I was unable to locate any help.

I am running ArcServer 10 and have modified the Flex Sample Viewer for my use.  The sample page modified to use our local data seems to work great, as the basemap displays correctly.  I have also modified the address locator to point to a local locator.  Upon entry of an address the locator displays a grid of results (which appear correct) and zooms to a point.  The problem is the map is blank at this point.

Can anyone suggest why the map would be blank?  I assume it might have to do with caching, but I can't seem to figure it out.

Thank you in advance.
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
MichaelMatela
Deactivated User
Assuming you are using the Locator Widget from the Sample Flex Viewer, on line 368 you have to switch the Spatial Reference to mirror the Spatial Reference of your Locator.
0 Kudos
IanHamilton
Deactivated User
Assuming you are using the Locator Widget from the Sample Flex Viewer, on line 368 you have to switch the Spatial Reference to mirror the Spatial Reference of your Locator.


Flexviewer 2.0 ArGIS Server 10
I have a similar problem with the Locate Widget in ArcServer 10. I had it working under Server 9.3.1

Initially my locator is in GCS_GDA_1994 seemed to be finding locations but went to a blank map.
I projected the locator data to Web Mercator Aux and created a new locator.
This too appears to find places but goes to a blank map.
If I understand the code it will attempt to reproject if not in WGS84. Neither of mine were. Perhaps it is this projection that is going astray ...

I commented out the projection line and added the following replacement
locateResult.point = addrCandidate.location;
(which Robert posted for a previous locator problem.)
This solves the problem when the locator is in Web Mercator Aux

I then used the original locator in GCS_GDA_1994 and that worked too! but it shouldn't!!
GDA has a very similar datum to that of WGS84

Unless I have introduced some other glitch whilst doing this - it is all a bit strange.
I am presuming the geocode service is working in a different manner because I was not getting this type of result in 9,3,1 - see my post "Locate Widget Projection Problem"

On the good side its working for me now

Ian
0 Kudos
CarlAlexander
Regular Contributor
I am having this same issue with the ready-to-use compiled version of ArcGIS viewer for Flex 2.0.  All my data is in State Plane.  Is there a way to fix this in the compiled version or to I need to get the Source code for ArcGIS viewer?
0 Kudos