Example of Completed Layer Configuration

Below is an example of a completed XML text containing the layer configurations for the system. Keep in mind that all the objects referenced (queries, images, etc.) must be previously registered before being used in the XML file. For details on how to complete each parameter, please refer to the topics under Appendix -> Layers for the Integration Map.

 

<Layers>

 

 <!-- Icons -->

 

  <Icons>

 

    <!-- Office Building Icon -->

 

    <Icon id="office">

      <layerUrl>/Content/img/map-icons/resourceUnits/icon_0_office.png</layerUrl>

      <url>/Content/img/map-icons/resourceUnits/icon_{{StatusEnum}}_office.png</url>

      <retinaUrl>/Content/img/map-icons/resourceUnits/icon_{{StatusEnum}}_office-2x.png</retinaUrl>

      <clusterUrl>/Content/img/map-icons/resourceUnits/icon_office_cluster.png</clusterUrl>

      <clusterRetinaUrl>/Content/img/map-icons/resourceUnits/icon_office_cluster-2x.png</clusterRetinaUrl>

      <size>[26,38]</size>

      <clusterSize>[79,40]</clusterSize>

      <anchor>[4,38]</anchor>

      <popupAnchor>[10,-35]</popupAnchor>

    </Icon>

 

    <!—Store Icon -->

 

    <Icon id="store">

      <layerUrl>/Content/img/map-icons/resourceUnits/icon_0_store.png</layerUrl>

      <url>/Content/img/map-icons/resourceUnits/icon_{{StatusEnum}}_store.png</url>

      <retinaUrl>/Content/img/map-icons/resourceUnits/icon_{{StatusEnum}}_store-2x.png</retinaUrl>

      <clusterUrl>/Content/img/map-icons/resourceUnits/icon_store_cluster.png</clusterUrl>

      <clusterRetinaUrl>/Content/img/map-icons/resourceUnits/icon_store_cluster-2x.png</clusterRetinaUrl>

      <size>[26,38]</size>

      <clusterSize>[79,40]</clusterSize>

      <anchor>[4,38]</anchor>

      <popupAnchor>[10,-35]</popupAnchor>

    </Icon>

 

  </Icons>

 

 <!-- Templates -->

 

  <Templates>

 

    <Template id="officepopup">

      <table>

        <tr>

          <td style="white-space:nowrap; font-weight: bold; color:darkblue; padding-right:10px;">{{i18n 'Name'}}:</td>

          <td style="white-space:nowrap;">{{Name}}</td>

        </tr>

      </table>

    </Template>

 

    <Template id="storepopup">

      <table>

        <tr>

          <td style="white-space:nowrap; font-weight: bold; color:darkred; padding-right:10px;">{{i18n 'Name'}}:</td>

          <td style="white-space:nowrap;">{{Name}}</td>

        </tr>

      </table>

    </Template>

 

  </Templates>

 

<!-- Layers -->

 

 <LayerGroup Id="Offices" Name="Offices">

 

  <QueryLayer ShowRawDataInsteadOfTemplate="false">

    <Id>Offices</Id>

    <Name>Office Buildings</Name>

    <Type>Organization</Type>

    <Area>Integrator</Area>

    <Controller>Map</Controller>

    <Action>GetMarkers</Action>

    <Icon id="office_icon" />

    <Template id="officepopup" />

    <AutoRefresh>20</AutoRefresh>

  </QueryLayer>

 

 </LayerGroup>

 

 <LayerGroup Id="Stores" Name="Stores">

 

  <QueryLayer ShowRawDataInsteadOfTemplate="false">

    <Id>Stores</Id>

    <Name>Stores</Name>

    <Type>Organization</Type>

    <Area>Integrator</Area>

    <Controller>Map</Controller>

    <Action>GetMarkers</Action>

    <Icon id="store_icon" />

    <Template id="storepopup" />

    <AutoRefresh>20</AutoRefresh>

  </QueryLayer>

 

 </LayerGroup>

 

 <LayerGroup Id="RoutesToOfficesAndStores" Name="Routes">

  
  <KmlLayer>
    <id>RoutesPlottedinGoogleMaps</id>
    <Name>Routes</Name>
    <Local>True</Local>
    <Icon id="route_icon" />
    <Path>Routes.kml</Path>
    <AutoRefresh>15</AutoRefresh>
  </KmlLayer>

 

 </LayerGroup>

 

</Layers>