Marie,
Yes you should always use your own geometry service as esris gets a lot of traffic. Changing the spatialreference will depend on what spatialreference your basemaps are in. If you are using esris basemaps then NO. If you are using all of your own basemaps and they are in WKID 3418 then yes.
<layer> <token/> <definitionexpression/> <enableexport>true</enableexport> <name>Sanitary Main</name> <url>http://GIS01.lebanon.local:6080/arcgis/rest/services/OperationalLayers/Utilities/MapServer/3</url> <expressions> <expression alias="Facility ID" textsearchlabel="Search Specific Main:" isvaluerequired="false"> <values> <value prompt="Example: 1032" isvaluerequired="false">FACILITYID = [value]</value> </values> </expression> <expression alias="Attributes" textsearchlabel="Search Mains:" isvaluerequired="false"> <values> <value prompt="Type:" isvaluerequired="false" uniquevalsfromfield="TYPE" autosubmit="false" operator="AND">TYPE = '[value]'</value> <value prompt="Diameter:" isvaluerequired="false" uniquevalsfromfield="DIAMETER" autosubmit="false" operator="AND">DIAMETER = [value]</value> <value prompt="Material:" isvaluerequired="false" uniquevalsfromfield="MATERIAL" autosubmit="false" operator="AND">MATERIAL = '[value]'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Main</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>Sanitary Main</titlefield> <fields all="false"> <field name="FACILITYID" gridfield="true"/> <field name="TYPE" gridfield="true"/> <field name="DIAMETER" gridfield="true"/> <field name="MATERIAL" gridfield="true"/> <field name="YEARBUILT" gridfield="true"/> <field name="EDITDATE" gridfield="true"/> <field name="INSPECTIONDATE" gridfield="true"/> </fields> <links/> <zoomscale usegeometry="true" zoompercent="2"/> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates> <relate id="0" label="Asbuilts" enableprintgrid="false"> <fields all="false"> <field name="ASBUILTID" gridfieldonly="true"/> <field name="FILEPATH" alias="View Asbuilt" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View Asbuilt" linkprefix="http://GIS01/Asbuilts/" linksuffix=".pdf"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> <relate id="1" label="TV Projects" enableprintgrid="false"> <fields all="false"> <field name="TVPROJECT" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="View TV Project" linkprefix="http://GIS01/TVProjects/"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> </relates> <symbology> <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/> </symbology> </layer>
Casey,
I was able to debug using the data you provided and narrow it down to the two main issues I told you about in my last post. The zoom scale I provided in red and removing the polygon symbology tags or better yet changing them to the proper polyline symbology:<symbology> <simplelinesymbol color="0x00ff00" alpha="0.8" width="2" /> </symbology>
Fixed the issues for me. Can you try publishing the same data you sent me and configure it and see if you can get the same positive results I am getting? That way we can narrow things down more.