<commit_before><%--
  Created by IntelliJ IDEA.
  User: sbortman
  Date: Jan 21, 2010
  Time: 9:54:28 AM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <title>Layout Test</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main3"/>

  <openlayers:loadMapToolBar/>
  <openlayers:loadTheme theme="default"/>
  <openlayers:loadJavascript/>

  <g:javascript src="mapping-widget.js"/>
  <g:javascript>
  // your own js code is here
  var lon = ${centerLon};
  var lat = ${centerLat};
  var zoom = ${zoomLevel};

  var baseLayers = new Array();
  var overlayLayers = new Array();

  var mapWidget;

  // define your init function
  var init = function()
  {
    <g:each in="${baseLayers}">
      baseLayers.push({title: '${it.title}', url: '${it.url}', name: '${it.name}'});
    </g:each>

    <g:each in="${overlayLayers}">
      overlayLayers.push( {title: '${it.title}', url: '${it.url}', name: '${it.name}'} );
    </g:each>

    mapWidget = new MappingWidget(lat, lon, zoom, baseLayers, overlayLayers);
  };


  var setView = function( e )
  {
  /*
  var bounds = map.getExtent();

  $("viewMinLon").value = bounds.left;
  $("viewMaxLat").value = bounds.top;
  $("viewMaxLon").value = bounds.right;
  $("viewMinLat").value = bounds.bottom;
  */
  };

  var setCenterText = function( e )
  {
  /*
  var center = map.getCenter();

  $("centerLon").value = center.lon;
  $("centerLat").value = center.lat;
  */
  };

  var resized = function( mapWidth, mapHeight )
  {
    //alert( "B: " + mapWidth + " " + mapHeight );

    //Dom.get( "map" ).style.width = mapWidth + "px";
    //Dom.get( "map" ).style.height = mapHeight + "px";

    //mapWidget.updateSize();  
  };


  var clearAOI = function ( e )
  {
  //    aoiLayer.destroyFeatures();

  // HACK - Need a better way to this
  /*
    $("aoiMinLon").value = ""
    $("aoiMaxLat").value = ""
    $("aoiMaxLon").value = ""
    $("aoiMinLat").value = ""
  */
  };

  var setAOI = function ( e )
  {
  /*
  var geom = e.feature.geometry;
  var bounds = geom.getBounds();
  var feature = new OpenLayers.Feature.Vector(geom);

  // HACK - Need a better way to this
  $("aoiMinLon").value = bounds.left
  $("aoiMaxLat").value = bounds.top
  $("aoiMaxLon").value = bounds.right
  $("aoiMinLat").value = bounds.bottom

  aoiLayer.destroyFeatures();
  aoiLayer.addFeatures(feature, {silent: true});
  */
  };
  </g:javascript>
</head>
<!-- define your page content -->
<body class="yui-skin-sam">

<content tag="layout1.top.content">
  <div id="panel2" class="olControlPanel"></div>
</content>

<content tag="layout1.bottom.content">
</content>

<content tag="layout1.right.content">
</content>

<content tag="layout1.left.content">
</content>

<content tag="layout1.center.content">
  <div id="map"></div>
</content>

</body>
</html><commit_msg>Starting to add controls for filter criteria<commit_after><%--
  Created by IntelliJ IDEA.
  User: sbortman
  Date: Jan 21, 2010
  Time: 9:54:28 AM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <title>Layout Test</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main3"/>

  <openlayers:loadMapToolBar/>
  <openlayers:loadTheme theme="default"/>
  <openlayers:loadJavascript/>

  <gui:resources components="['datePicker', 'expandablePanel']"/>


  <g:javascript src="mapping-widget.js"/>
  <g:javascript>
  // your own js code is here
  var lon = ${centerLon};
  var lat = ${centerLat};
  var zoom = ${zoomLevel};


  var mapWidget;

  // define your init function
  var init = function()
  {
    var baseLayers = new Array();
    var overlayLayers = new Array();

    <g:each in="${baseLayers}">
      baseLayers.push({title: '${it.title}', url: '${it.url}', name: '${it.name}'});
    </g:each>

    <g:each in="${overlayLayers}">
      overlayLayers.push( {title: '${it.title}', url: '${it.url}', name: '${it.name}'} );
    </g:each>

    mapWidget = new MappingWidget(lat, lon, zoom, baseLayers, overlayLayers);
  };


  var setView = function( e )
  {
  /*
  var bounds = map.getExtent();

  $("viewMinLon").value = bounds.left;
  $("viewMaxLat").value = bounds.top;
  $("viewMaxLon").value = bounds.right;
  $("viewMinLat").value = bounds.bottom;
  */
  };

  var setCenterText = function( e )
  {
  /*
  var center = map.getCenter();

  $("centerLon").value = center.lon;
  $("centerLat").value = center.lat;
  */
  };

  var resized = function( mapWidth, mapHeight )
  {
    //alert( "B: " + mapWidth + " " + mapHeight );

    Dom.get( "map" ).style.width = mapWidth + "px";
    Dom.get( "map" ).style.height = mapHeight + "px";

    mapWidget.updateSize();
  };


  var clearAOI = function ( e )
  {
  //    aoiLayer.destroyFeatures();

  // HACK - Need a better way to this
  /*
    $("aoiMinLon").value = ""
    $("aoiMaxLat").value = ""
    $("aoiMaxLon").value = ""
    $("aoiMinLat").value = ""
  */
  };

  var setAOI = function ( e )
  {
  /*
  var geom = e.feature.geometry;
  var bounds = geom.getBounds();
  var feature = new OpenLayers.Feature.Vector(geom);

  // HACK - Need a better way to this
  $("aoiMinLon").value = bounds.left
  $("aoiMaxLat").value = bounds.top
  $("aoiMaxLon").value = bounds.right
  $("aoiMinLat").value = bounds.bottom

  aoiLayer.destroyFeatures();
  aoiLayer.addFeatures(feature, {silent: true});
  */
  };
  </g:javascript>
</head>
<!-- define your page content -->
<body class="yui-skin-sam">

<content tag="layout1.top.content">
  <div id="panel2" class="olControlPanel"></div>
</content>

<content tag="layout1.bottom.content">
</content>

<content tag="layout1.right.content">
</content>

<content tag="layout1.left.content">
  <gui:expandablePanel title="Geospatial" expanded="true" bounce="false">
    I am expanded.  Close me.
  </gui:expandablePanel>
  <gui:expandablePanel title="Temporal" expanded="true" bounce="false">    
    <gui:datePicker id='startDate' includeTime="true"/>
    <gui:datePicker id='endDate' includeTime="true"/>
  </gui:expandablePanel>
  <gui:expandablePanel title="Metadata" expanded="true" bounce="false">
    I am expanded.  Close me.
  </gui:expandablePanel>
</content>

<content tag="layout1.center.content">
  <div id="map"></div>
</content>

</body>
</html>
{'fraction_non_alphanumeric': 0.19275610135240168, 'fraction_numerical': 0.00621793875330328, 'mean_word_length': 3.4680555555555554, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 86, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6267517', 'n_tokens_mistral': 2384, 'n_tokens_neox': 2276, 'n_words': 491}