Select to view content in your preferred language

Pop ups on the wrong point

2349
2
05-24-2012 05:57 AM
jessebelcher
Deactivated User
Not sure how to explain this.. I have a layer called "Subs" (black) it is our Substation locations. I have pop ups to display the name and a link to a webpage that has a live camera into the Station. This works great!

I have another layer (different service) called Outages (yellow tag) it displays outages that are called in...

The problem is the pop-ups will not display for "outages" unless i click on a "sub" first... Then the popup for "outage" will only display on the last "Sub" i have picked...

i can click on a any sub on the screen then click on the outage and the pop up will be at the last sub that was picked..

Here is the config file
<?xml version="1.0" ?>
<configuration>
    <title>TVEC Outages</title>
    <logo>assets/images/logo.png</logo>
    <style>
        <colors>0xffffff,0x660033,0x101010,0x0,0xffd700</colors>
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" useproxy="false"/>
    
  
    <widgetcontainer layout="float">
        <widgetgroup label="Truck Locations" icon="assets/images/IBigTruck.png">
        <widget url="widgets/Query/QueryWidget.swf" config="widgets/Query/Ath_Linemen.xml" label="Ath" icon="assets/images/IBigTruck.png"/>
        <widget url="widgets/Query/QueryWidget.swf" config="widgets/Query/Kauf_Linemen.xml" label="Kauf" icon="assets/images/IBigTruck.png"/>
    </widgetgroup>
    <widgetgroup/>
        <widget url="widgets/Query/QueryWidget.swf" config="widgets/Query/SubstationCams.xml" label="SubCams" icon="assets/images/i_camera.png"/>
        <widget icon="assets/images/i_bookmark.png" label="Bookmarks" config="widgets/Bookmark/BookmarkWidget.xml" url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget icon="assets/images/i_target.png" label="Find an address" config="widgets/Locate/LocateWidget_World.xml" url="widgets/Locate/LocateWidget.swf"/>
        <widget icon="assets/images/i_draw2.png" label="Draw and Measure" config="widgets/Draw/DrawWidget.xml" url="widgets/Draw/DrawWidget.swf"/>
        <widget icon="assets/images/i_print.png" label="Print" config="widgets/Print/PrintWidget.xml" url="widgets/Print/PrintWidget.swf"/>
        <widget label="Enhanced Search" left="60" top="400" icon="assets/images/i_search.png" config="widgets/eSearch/SearchWidget.xml" url="widgets/eSearch/SearchWidget.swf"/>
        <widget label="Selection" left="100" top="50" icon="widgets/Selection/assets/images/i_pin3.png" config="widgets/Selection/SelectionWidget.xml" url="widgets/Selection/SelectionWidget.swf"/>
        <widget label="Map Contents" left="100" top="100" icon="assets/images/i_legend.png" config="widgets/TOC/TOCWidget.xml" url="widgets/TOC/TOCWidget.swf"/>
    </widgetcontainer>
    <subtitle>Live Data</subtitle>
    <bing key="Aoyyi_8gFKCGz3MYRx7Xx_KK-zIqiz1VB7zTgdkLMTdyKGQqWsDzyYVNJMX-2md7"/>
    <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
    <widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="-2" bottom="-2"/>
    <widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55"/>
    <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
    <widget url="widgets/Coordinate/CoordinateWidget.swf" config="widgets/Coordinate/CoordinateWidget.xml" label="Coordinate" icon="assets/images/i_globe.png" left="3;" bottom="3"/>
    <map esrilogovisible="true" openhandcursorvisible="true" scalebarvisible="true" zoomslidervisible="false" wraparound180="true" initialextent="-10804918.70234488 3721157.833534844 -10537236.22929009 3870974.4089738466" wkid="102100" top="40" arcgissharingurl="http://arcgis.com/sharing/content/items/">
        <basemaps>
            <layer type="bing" label="Bing Maps Road" icon="http://arcgis.com/sharing/content/items/ba0e576b7c4f48b1af61eed10f111c18/info/thumbnail/tempbing_road_manchester2.png" style="road" culture="en-US" visible="true"/>
            <layer type="tiled" label="Imagery" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="false"/>
        </basemaps>
        <operationallayers>
            <layer type="dynamic" label="TVECDATA" url="http://engr_svr/ArcGIS/rest/services/Maps/TVECDATA/MapServer" visible="true"/>
            <layer type="dynamic" label="Outages" autorefresh="60" url="http://engr_svr/arcgis/rest/services/Maps/Outages/MapServer" visible="true"/>
            <layer type="dynamic" label="Trucks" autorefresh="60" url="http://engr_svr/arcgis/rest/services/Maps/Trucks/MapServer" visible="true"/>
          <layer   type="dynamic" label ="Subs" visible="true" alpha="0.8"  url="http://engr_svr/ArcGIS/rest/services/Maps/TVECDATA/MapServer/">
            <sublayer id="0" popupconfig="popups/PopUp_Subs.xml" />
            <sublayer id="1" popupconfig="popups/PopUp_meters.xml" />
          </layer>  
           <layer type="dynamic" label="Outages"  visible="true" alpha="0.8"  url="http://engr_svr/ArcGIS/rest/services/Maps/Outages/MapServer">
            <sublayer id="1" popupconfig="popups/PopUp_Outages.xml" />
            <sublayer id="2" popupconfig="popups/PopUp_Meters_Outs.xml" />
           </layer>
         </operationallayers>   
         </map>
</configuration>


here is the file for sub


<?xml version="1.0" ?>
<configuration>
  <title>{ElementName}</title>
  <description>
    <![CDATA[<a href='{CamLink}'><u>Link To Camera</u></a> ]]>
  </description>
  <fields>
    <field name="ElementName" visible="true"/>
    <field name="CamLink" alias="Click for Camera" visible="true"/>
  </fields>

  <medias>
    <!-- <media type="image" caption="link" imagesource="{CamLink}" imagelink="{CamLink}"/> -->
  </medias>

</configuration>


    <!--Pop-up configuration file for:
    http://engr_svr/ArcGIS/rest/services/Maps/TVECDATA/MapServer/0-->



and outages

<?xml version="1.0" ?>
<configuration>
  <title>{OutageName}</title>
  <fields>
        <field name="OutageName" alias="Outage ID" visible="true"/>
        <field name="CrewResponsible" alias="Crew on Call" visible="true"/>
        <field name="MapLocation" alias="Location" visible="true"/>
  </fields>
  <medias>
    <!-- <media type="image" caption="link" imagesource="{CamLink}" imagelink="{CamLink}"/> -->
  </medias>
  

  
</configuration>

<!--
    Pop-up configuration file for:
  http://engr_svr/ArcGIS/rest/services/Maps/Outages/MapServer
-->


all pop ups are working just not as expected...

Thanks in advance.

Oh and see attachment.
Tags (2)
0 Kudos
2 Replies
RhettZufelt
MVP Notable Contributor
Just a stab as I don't have the setup to test it right now, but it looks like maybe an issue with terminating the parent tag before the child as I have fallen into so many times myself.

Getting rid of the ending slash for the layer Subs might change it's behaviour.

R_

  
         <layer   type="dynamic" label ="Subs" visible="true" alpha="0.8"  url="http://engr_svr/ArcGIS/rest/services/Maps/TVECDATA/MapServer/">
            <sublayer id="0" popupconfig="popups/PopUp_Subs.xml" />
            <sublayer id="1" popupconfig="popups/PopUp_meters.xml" />
          </layer>  
           <layer type="dynamic" label="Outages"  visible="true" alpha="0.8"  url="http://engr_svr/ArcGIS/rest/services/Maps/Outages/MapServer">
            <sublayer id="1" popupconfig="popups/PopUp_Outages.xml" />
            <sublayer id="2" popupconfig="popups/PopUp_Meters_Outs.xml" />
           </layer>
0 Kudos
jessebelcher
Deactivated User
Thanks for the reply... That was not the fix... I think i will try to remove some things one at a time until i get the results i am looking for..
0 Kudos