<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>StraGIS Web - Westland</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <META HTTP-EQUIV="imagetoolbar" CONTENT="no">

<cwc2 type="SharedResource" name="LegendExcludeLayers">
  <excludeLayer name="StraGISWebSelection" />
  <excludeLayer name="acn" />
  <excludeLayer name="hnrlabel" />
  <excludeLayer name="huisnummer" />
  <excludeLayer name="strtekst" />
  <excludeLayer name="achtergrond" />
  <excludeLayer name="tekst" />
  <excludeLayer name="groen_shapes"/>
  <excludeLayer name="groen_points"/>
  <excludeLayer name="groen_ellipses"/>
  <excludeLayer name="groen_text"/>
  <excludeLayer name="groen_textgrp"/>
  <excludeLayer name="groen_arcs"/>
  <excludeLayer name="groen_lines"/>
  <excludeLayer name="groen_solids"/>
  <excludeLayer name="riool_shapes"/>
  <excludeLayer name="riool_points"/>
  <excludeLayer name="riool_ellipses"/>
  <excludeLayer name="riool_text"/>
  <excludeLayer name="riool_textgrp"/>
  <excludeLayer name="riool_arcs"/>
  <excludeLayer name="riool_lines"/>
  <excludeLayer name="riool_solids"/>
  <excludeLayer name="wegvak_shapes"/>
  <excludeLayer name="wegvak_points"/>
  <excludeLayer name="wegvak_ellipses"/>
  <excludeLayer name="wegvak_text"/>
  <excludeLayer name="wegvak_textgrp"/>
  <excludeLayer name="wegvak_arcs"/>
  <excludeLayer name="wegvak_lines"/>
  <excludeLayer name="wegvak_solids"/>
  <excludeLayer name="bruggen_shapes"/>
  <excludeLayer name="bruggen_points"/>
  <excludeLayer name="bruggen_ellipses"/>
  <excludeLayer name="bruggen_text"/>
  <excludeLayer name="bruggen_textgrp"/>
  <excludeLayer name="bruggen_arcs"/>
  <excludeLayer name="bruggen_lines"/>
  <excludeLayer name="bruggen_solids"/>
  <excludeLayer name="wegvak_textnode"/>
</cwc2>

<script>
  iMaxFeatures = 50;
  // color syntax: R,G,B
  gSelectionColor = '255,255,0';
  // width in pixels
  gSelectionWidth = 8;

function PrintAdmin()
{
  // eventueel nieuw window openen met de iframe src en dan printen
  frames['InfoFrame'].focus();
  frames['InfoFrame'].print();
}

function stragiswebquery( nX, nY )
{
  // determine the site name from the URL
  loc = document.location.href;
  pos = loc.indexOf("sites/");
  endpos = loc.indexOf("index.phtml");
  if (endpos >= 0)
  {
    var site = loc.substring(pos+6, endpos);
  }
  else
  {
    var site = loc.substring(pos+6, loc.length);
  }
  if (site.indexOf("/") >= 0)
  {
    site = site.substring(0, site.length-1);
  }
  if ((document.forms[0].RADIUS) && (document.forms[0].RADIUS.value != ""))
  {
    iRadiusGeo = document.forms[0].RADIUS.value;
    iRadiusPix = (iRadiusGeo/(goCWCJSAPI.oMap.maxx-goCWCJSAPI.oMap.minx))*gMapWiWidth;
    if ((parseInt(document.forms[0].RADIUS.value) >= 0) )
    {
      ROICircleToolInitObjects();
      ROICircleToolStartZoomBox();
      goROICircleObj.centerX = nX;
      goROICircleObj.centerY = nY;
      goROICircleObj.radius = iRadiusPix;
      goROICircleObj.edgeColor = '0000FF';
      goROICircleObj.edgeWidth = 5;
      goROICircleObj.fillOpacity = 1;
      goCWCROIManager.Add(goROICircleObj);

      document.getElementById('TreeFrame').src = '/stragisweb/common/stragisquery.phtml?x='+ nX + '&y=' + nY + '&sid=' + document.forms[0].sid.value + '&radius=' + iRadiusGeo + '&site='+site+'&maxfeatures='+iMaxFeatures;
      ShowTreeLayer();
    }
  }
}

  function myOnLoad()
  {
    CWC2OnLoadFunction();
    goEventManager.registerForEvent('ON_QUERY', 'stragiswebquery');
  }
</script>

[#buttonizer.html#]
[#shared.html#]

    <link href="stragisweb.css" rel="stylesheet" type="text/css">
  </head>

  <body onLoad="myOnLoad()">
    <form method="post" action="index.phtml">

      <input type="hidden" name="TopTabsLayerActive" value="[$TopTabsLayerActive$]">
      <input type="hidden" name="SideTabsLayerActive" value="[$SideTabsLayerActive$]">

      <div id="TitleLayer" name="TitleLayer">
        <!-- new header graphic -->
        <img src="./images/logo_gwe.gif" border="0">
      </div>

      <!-- New Container to hold the entire application -->

      <div id="ContentLayer" name="ContentLayer">

      <div id="SideTabsLayer" name="SideTabsLayer">[#side_tabs.html#]</div>

      <div id="LegendLayer" name="LegendLayer">
        <div id="LegendView" name="LegendView">[#themelegend.html#]</div>
        <div id="LegendUpdate" name="LegendUpdate"><cwc2 type="UpdateMap" styleresource="TextButtons" Label="Doorvoeren wijzigingen" visible="true" image="icons/icon_update.png" imagetip="Doorvoeren in kaart">
              <image state="normal"/>
              <image state="selected"/>
              <image state="hover"/>
          </cwc2></div>
      </div>

      <div id="TreeLayer" name="TreeLayer"><iframe id="TreeFrame" name="TreeFrame" frameborder="0" scrolling="auto" marginwidth="0" marginheight="0" src="/stragisweb/common/stragisquery.phtml?mode=empty&site=[$gszSiteName$]&[$SID$]"></iframe></div>

      <div id="DynamicLayer" name="DynamicLayer"><iframe id="DynamicFrame" name="DynamicFrame" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0"></iframe></div>
      <div id="HelpLayer" name="HelpLayer"><iframe id="HelpFrame" name="HelpFrame" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0"></iframe></div>
      <div id="OverViewLayer" name="OverViewLayer"><cwc2 type="KeyMap" color="-1 -1 -1" outlinecolor="255 0 0" /></div>

      <div id="NavToolsLayer" name="NavToolsLayer">[#tools.html#]</div>

      <div id="PanArrowsLayer" name="PanArrowsLayer">[#panarrows.html#]</div>

      <div id="MainMapLayer" name="MainMapLayer"><cwc2 type="MapDHTML" visible="true" width="650" height="400" allowresize="false" marqueecolor="#FF3333" marqueewidth="2" minscale="1"/></div>

      <div id="ReferenceLayer" name="ReferenceLayer">[#reference.html#]</div>

      <div id="AdminModulesLayer" name="AdminModuleLayer">
        <div id="AdminModTab" name="AdminModTab"><div id="AdminLink" name="AdminLink"><a href="#" onclick="return ExpandAdminLayer()">+/-</a></div><div id="AdminLabel" name="AdminLabel">Administratieve data</div>
          <div id="AdminModPrint" name="AdminModPrint">
          <cwc2 type="Link" linktype="javascript" jsfunction="PrintAdmin" styleresource="TabButtons" Image="icons/icon_print.png" ImageTip="Print administratieve informatie" toolset="" div="">
                    <image state="normal"/>
                    <image state="hover"/>
          </cwc2>
          </div>
        </div>
        <div id="InfoLayer" name="InfoLayer"><iframe id="InfoFrame" name="InfoFrame" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0" src="../../common/module.php?mode=empty&site=[$gszSiteName$]&[$SID$]"></iframe></div>
      </div>

      </div>
    </form>
    <script language="JavaScript" type="text/javascript" src="stragisweb.js"></script>
        <script type="text/javascript" src="../../common/utils.js"></script>
  </body>
</html>