<?xml version="1.0" ?> <configuration> <layers> <layer> <name>Parcels</name> <url>http://pacific/ArcGIS/rest/services/Planning/SLOCO_Parcels_CD_LU/MapServer/0</url> <titlefield>SLOCO.SDE.SLO_PARCEL_CD_LU.APN</titlefield> <linkfield>SLOCO.SDE.PLN_Tidemark_pmt.link</linkfield> <fields> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.APN"/> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.ASSESSEE" alias="Assessee"/> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.C_O"/> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.ADDRESS_1"/> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.CITY"/> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.STATE"/> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.ZIP"/> <field name="SLOCO.SDE.PLN_Tidemark_pmt.link"/> </fields> <infowindowfields> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.APN"/> <field name="SLOCO.SDE.SLO_PARCEL_CD_LU.ASSESSEE" alias="Assessee"/> <field name="SLOCO.SDE.PLN_Tidemark_pmt.link"/> </infowindowfields> </layer> </layers> <zoomscale>5000</zoomscale> <info>widgets/InfoTemplates/InfoPopupWidget.swf</info> </configuration>
Test out your layer without the link field and without the fully qualified names and see if that works.
Sertact(February 24, 2011)
Great widget. Many thanks for the great job. A small question. When make the selection and the results are returned. The results are not displayed at their correct locations on the map. When I double click from the grid it kind of centers the correct location for that record but again all the others are not displayed correctly. My map service and map are at the same datum which is WGS84. One other thing at your SelectionWidgetUtil.as I realized that you add/subtract 5000 to get the graphic extent of the records selected. I think this value is a bit high if one is using Decimal degrees with wgs84 datum. Any suggestions for these. Many thanks again.
Sertact,
The results are returned as a featurelayer which is a direct representation of the GIS data. If it is not in the correct place it sounds like some sort of projection issue?? If you put the base map that you are using with this widget into ArcGIS and overlay your data on top of it, does it line up correctly. Is your data available externally?
The zoom function in SelectionWidgetUtil.as is copied from one of my other projects which is using projected data. The 5000 was for metres (5 kilometres) So for decimal degrees it would be a bit high. I will update this at some stage (maybe use pan to point xy instead).