Permalink
Browse files

Remove junk that should not have gotten into git.

  • Loading branch information...
1 parent c23aabd commit 1a5d59d7c602c61348d0a8481c4350adb2775482 @nickpalmer nickpalmer committed Aug 15, 2010
Showing with 0 additions and 234 deletions.
  1. +0 −41 admin/csvstyler/googletest.html~
  2. +0 −193 admin/csvstyler/index.html~
@@ -1,41 +0,0 @@
-<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
- <title>Google Maps with GeoWebCache</title>
-
- <style>
- body {
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 10pt
- }
- </style>
-
- <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA0CG8rV5Lkr_jNKdhuF2gLRSRDD4uGs4FcOGl1U5QSBKeQAPKXBQIVEr-Kx3sfnr5mQXl0Ek7D3Y5Gg'></script> <script type="text/javascript">
-
- function initialize() {
- if (GBrowserIsCompatible()) {
- var map = new GMap2(document.getElementById("map_canvas"));
- map.setCenter(new GLatLng(37.27183723449705, -119.2720069885255), 5);
-
- var tilelayer = new GTileLayer(null, null, null, {
- tileUrlTemplate: location.search.substr(1),
- isPng:true,
- opacity:0.7 }
- );
-
- var myTileLayer = new GTileLayerOverlay(tilelayer);
- map.addOverlay(myTileLayer);
-
- document.getElementById("url").innerHTML = location.search.substr(1);
- }
- }
-
- </script>
- </head>
- <body onload="initialize()" onunload="GUnload()">
- <div id="map_canvas" style="width: 500px; height: 300px"></div>
- <p><b>Paste the url below into your application to use this overlay:</b><br/>
- <span id="url"/></span>
- </body>
-</html>
View
@@ -1,193 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title>Thematic Styler</title>
- <link rel="stylesheet" type="text/css" href="externals/ext/resources/css/ext-all.css" />
- <link rel="stylesheet" type="text/css" href="externals/colorpicker/color-picker.ux.css" />
- <link rel="stylesheet" type="text/css" href="externals/openlayers/theme/default/style.css" />
-
- <!-- this gmaps key generated for http://www.tekimaki.com/geoserver/www/ -->
- <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAArZNEy-sItMIvT2lsVSp_ABSAZAP4BIUc_-P7GNV1pF8kz7iUoBTGMpo6oEupWe3dr3UNCfXoO6mxOg" type="text/javascript"></script>
-
- <!-- this gmaps key generated for http://www.tekimaki.com/csvstyler/ -->
- <!-- script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAArZNEy-sItMIvT2lsVSp_ABR21xaoj5haVQZAJZpHBoUTGWxiKxR6hzB13sDOSNN3kiFEinXD9uMc1A" type="text/javascript"></script -->
-
- <script type="text/javascript" src="externals/ext/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src="externals/ext/ext-all.js"></script>
- <script type="text/javascript" src="externals/colorpicker/color-picker.ux.js"></script>
- <script type="text/javascript" src="OpenLayers.js"></script>
- <script type="text/javascript" src="ThematicStyler.js"></script>
- <style type="text/css">
- #tools {
- z-index: 5000;
- position: absolute;
- top: 5px;
- right: 5px;
- float: right;
- }
- #legend {
- z-index: 5000;
- position: absolute;
- bottom: 5px;
- right: 5px;
- }
- html, body, #map {
- overflow: hidden;
- width: 100%;
- height: 100%;
- }
- </style>
- <script type="text/javascript">
- var map, legend;
-
- var queryString = window.location.search;
- var params = Ext.urlDecode(
- queryString.substring(queryString.lastIndexOf("?") + 1)
- );
-
- //var url = params.server || "../..";
- var url = '/geoserver';
-
- var proxy = url;
-
- ThematicStyler.GeoServer = proxy;
- ThematicStyler.GeoServerWithoutProxy = url;
-
- Ext.onReady(login);
-
- function login() {
- // Just do a rest call to trigger browser to do basic auth
- Ext.Ajax.request({
- url: ThematicStyler.GeoServer + "/rest/csv/geometryLayers",
- success: init,
- failure: function(){
- Ext.Msg.alert("Not authorized",
- "Could not log in using your username and password.");
- },
- scope: this
- });
- }
-
- function init() {
- OpenLayers.ImgPath = "externals/openlayers/img/";
- map = new OpenLayers.Map('map', {
- projection: new OpenLayers.Projection("EPSG:900913"),
- displayProjection: new OpenLayers.Projection("EPSG:4326"),
- units: 'm',
- maxResolution: 156543.0339,
- maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
- 20037508, 20037508.34)
- });
- map.addControl(new OpenLayers.Control.LayerSwitcher());
-
- var gphy = new OpenLayers.Layer.Google(
- "Google Physical",
- {sphericalMercator: true, type: G_PHYSICAL_MAP}
- );
- var gmap = new OpenLayers.Layer.Google(
- "Google Streets", // the default
- {sphericalMercator: true}
- );
- var ghyb = new OpenLayers.Layer.Google(
- "Google Hybrid",
- {sphericalMercator: true, type: G_HYBRID_MAP}
- );
- var gsat = new OpenLayers.Layer.Google(
- "Google Satellite",
- {sphericalMercator: true, type: G_SATELLITE_MAP}
- );
- var thematic = new OpenLayers.Layer.WMS("Thematic layer", url + "/wms", {
- transparent: true,
- format: "image/gif"
- }, {
- visibility: false,
- isBaseLayer: false,
- opacity: 0.7,
- buffer: 0
- });
-
-
- map.addLayers([gphy, gmap, ghyb, gsat, thematic]);
-
- var center = new OpenLayers.LonLat(-119.2720069885255, 37.27183723449705);
- map.setCenter(center.transform(map.displayProjection,
- map.getProjectionObject()), 6);
-
- var toolbar = new Ext.Toolbar({autoWidth: true});
- toolbar.render("tools");
- toolbar.add({
- text: "Upload CSV",
- handler: function() {
- ThematicStyler.showUpload();
- }
- }, "-", {
- text: "Edit Styles",
- handler: function() {
- ThematicStyler.showCombo();
- }
- }, "-", {
- text: "Publish",
- handler: function() {
- ThematicStyler.publish();
- },
- disabled: true
- }, "-", {
- text: "Show SLD links",
- handler: function() {
- ThematicStyler.showSlds();
- },
- disabled: true
- }, "-", {
- text: "Metadata XML",
- handler: function() {
- window.open(ThematicStyler.GeoServer + "/rest/csv/tileLayers");
- }
- });
-
- legend = new Ext.Panel({
- title: "Legend",
- width: 220,
- collapsible: true
- });
- legend.render("legend");
-
- ThematicStyler.onPublish = function() {
- if(ThematicStyler.dirtyLayers.length > 0) {
- toolbar.items.item(4).enable();
- toolbar.items.item(6).enable();
- } else {
- toolbar.items.item(4).disable();
- toolbar.items.item(6).disable();
- }
- }
-
- ThematicStyler.onLayerSelect = function(layer) {
- thematic.mergeNewParams({
- layers: layer.name,
- "_olSalt": Math.random()
- });
- thematic.setVisibility(true);
-
- legend.body.update("<img style='opacity: 0.7' src='" +
- ThematicStyler.GeoServerWithoutProxy +
- "/wms/GetLegendGraphic?FORMAT=image/png&LAYER=" +
- layer.name + "&" + Math.random() + "'/>");
-
- ThematicStyler.onPublish();
- }
-
- ThematicStyler.onLayerChange = function(layer) {
- ThematicStyler.onLayerSelect(layer);
- }
-
- ThematicStyler.showUpload();
- }
- </script>
- </head>
- <body>
- <div id="tools"></div>
- <div id="legend"></div>
- <div id="map"></div>
- </body>
-</html>

0 comments on commit 1a5d59d

Please sign in to comment.