[Mapbender-commits] r2056 - in branches/2.5/http: css javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Feb 1 11:24:00 EST 2008
Author: christoph
Date: 2008-02-01 11:24:00 -0500 (Fri, 01 Feb 2008)
New Revision: 2056
Added:
branches/2.5/http/css/sldEditor.css
branches/2.5/http/javascripts/mod_add_SLD.php
Log:
merged w/ SLD branch
Added: branches/2.5/http/css/sldEditor.css
===================================================================
--- branches/2.5/http/css/sldEditor.css (rev 0)
+++ branches/2.5/http/css/sldEditor.css 2008-02-01 16:24:00 UTC (rev 2056)
@@ -0,0 +1,218 @@
+.inputfield{
+ border : 1px solid #1C5284;
+}
+.head{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:16px;
+ color:#1C5284;
+ text-align:left;
+ font-weight: bold;
+}
+.sub{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:13px;
+ color:#1C5284;
+ text-align:left;
+ left-margin:10px;
+}
+.text{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:12px;
+ color:black;
+ text-align:left;
+}
+.text1{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:12px;
+ color:#6699CC;
+}
+.text2{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:12px;
+ color:white;
+ text-align:left;
+ left-margin:10px;
+}
+.text3{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:12px;
+ color:white;
+}
+.text4{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:12px;
+ color:#6699CC;
+ text-align:left;
+}
+.edit_text{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:12px;
+ color:#6699CC;
+ margin: 2px;
+}
+.smalltext{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:11px;
+ color:black;
+ text-align:left;
+ left-margin:10px;
+}
+.line_ {
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:13px;
+ color:#1C5284;
+ text-align:left;
+ text-decoration: none ;
+}
+.imp {
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:11px;
+
+}
+.button{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:12px;
+ color:#1C5284;
+ text-align:center;
+ border: 1px solid #1C5284;
+ background-color:#EAF2FA;
+}
+body{
+ scrollbar-3dlight-color:#1C5284;
+ scrollbar-darkshadow-color:#1C5284;
+ scrollbar-highlight-color:white;
+ scrollbar-shadow-color:white;
+ scrollbar-arrow-color:#1C5284;
+ scrollbar-track-color:white;
+ scrollbar-face-color:#BEC1C4;
+}
+.space{
+ leftmargin: 10px;
+}
+.edit{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:11px;
+ color:black;
+ text-decoration:none;
+ background-color:#86A6C5;
+ border:1px solid #143365;
+ padding-left:4px;
+ padding-right:4px;
+}
+a.edit{
+ font-family: Arial, Helvetica, sans-serif;
+ font:Verdana, Arial, Helvetica, sans-serif;
+ font-size:11px;
+ color:black;
+ text-decoration:none;
+ background-color:#86A6C5;
+ border:1px solid #143365;
+ padding-left:4px;
+ padding-right:4px;
+}
+a.edit:hover {
+ color:white ;
+}
+.line{
+border: 1px solid #B2D1F0;
+}
+.line2{
+border: 3px solid #B2D1F0;
+}
+.line_up{
+border-top: 1px solid #B2D1F0;
+}
+.line_down{
+border-bottom: 1px solid #B2D1F0;
+}
+.line_left{
+border-left: 1px solid #B2D1F0;
+}
+.line_right{
+border-right: 1px solid #B2D1F0;
+}
+.line_up2{
+border-top: 3px solid #B2D1F0;
+}
+.line_down2{
+border-bottom: 3px solid #B2D1F0;
+}
+.line_left2{
+border-left: 3px solid #B2D1F0;
+}
+.line_right2{
+border-right: 3px solid #B2D1F0;
+}
+
+.line_dash{
+border-bottom:1px dashed #B2D1F0;
+}
+.bg{
+background-color:#EAF2FA;
+}
+.bg1{
+background-color:#EAEBEB;
+}
+.bg2{
+background-color:#B2D1F0;
+}
+
+
+.edit_bg_menu{
+ background-color:#EAF2FA;
+ border:1px solid #B2D1F0;
+ border-bottom: 1px solid #EAF2FA;
+}
+.edit_label_bg{
+background-color:#EAF2FA;
+border:1px solid #B2D1F0;
+}
+.edit_label_bg2{
+background-color:#EAF2FA;
+border:3px solid #B2D1F0;
+}
+.edit_label_text{
+ font-family: Arial, Helvetica, sans-serif;
+ font: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 13px;
+ color: #6699CC;
+ text-align: left;
+ padding-left:3px;
+ padding-top:4px;
+ padding-bottom:4px;
+}
+.edit_label_text_head{
+ font-family: Arial, Helvetica, sans-serif;
+ font: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 15px;
+ color: #4E769D;
+ text-align: left;
+}
+.hand{
+ cursor:hand;
+}
+.edit_label_width{
+ width:180px;
+}
+hr.sep {
+ color: #f00;
+ background-color: #ccc;
+ height: 1px;
+}
+
+
+
+
Property changes on: branches/2.5/http/css/sldEditor.css
___________________________________________________________________
Name: svn:keywords
+ HeadURL Id LastChangedBy LastChangedDate LastChangedRevision
Added: branches/2.5/http/javascripts/mod_add_SLD.php
===================================================================
--- branches/2.5/http/javascripts/mod_add_SLD.php (rev 0)
+++ branches/2.5/http/javascripts/mod_add_SLD.php 2008-02-01 16:24:00 UTC (rev 2056)
@@ -0,0 +1,64 @@
+<?php
+# $Id$
+# add SLD-Parameter parameters to MapRequest
+# http://www.mapbender.org/index.php/mod_add_vendorspecific.php
+# Copyright (C) 2002 CCGIS
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+?>
+var sldURL = "";
+var mod_remove_layer_and_styles = "";
+var removeLayerAndStylesAffectedWMSTitle = "deegree wms";
+//var addSldAffectedWMSTitle = "deegree wms";
+//var sldLocationUrl = "http://wms1.ccgis.de/mapbender_dev/tmp/";
+
+var addSldAffectedWMSTitle = "Bonn Ergebnisse";
+var sldLocationUrl = "http://localhost/bonn_orlando_svn/http/tmp/";
+
+mod_remove_layer_and_styles += "if (sldURL != '' && (functionName == 'setMapRequest' || functionName == 'setSingleMapRequest') && mb_mapObj[i].wms[ii].wms_title == removeLayerAndStylesAffectedWMSTitle){";
+mod_remove_layer_and_styles += "newMapURL = newMapURL.replace(/LAYERS=[^&]*&/, '');";
+mod_remove_layer_and_styles += "newMapURL = newMapURL.replace(/STYLES=[^&]*&/, '');";
+mod_remove_layer_and_styles += "}";
+
+function mod_sld_init(wmsTitle, functionName) {
+ //alert(sldURL + ' ' + functionName );
+ if (sldURL != ''){
+ if (functionName == 'setMapRequest' || functionName == 'setSingleMapRequest') {
+ //Stadt Bonn: if (wmsTitle == 'deegree wms'){
+
+ if (wmsTitle == addSldAffectedWMSTitle){
+ return 'SLD=' + sldURL;
+ }
+ }
+ }
+
+ return "";
+}
+
+
+mb_registerVendorSpecific(mod_remove_layer_and_styles);
+mb_registerVendorSpecific("mod_sld_init(mb_mapObj[i].wms[ii].wms_title, functionName);");
+
+
+function mod_set_sld(sldString){
+ //console.debug("%s",sldString);
+ mb_ajax_post("../orlando/saveSLD.php", {'sld':sldString}, function (json, status) {
+ var result = eval('('+json+')');
+ sldURL = sldLocationUrl + result.filename;
+ zoom("mapframe1", true,0.9999);
+ });
+
+}
Property changes on: branches/2.5/http/javascripts/mod_add_SLD.php
___________________________________________________________________
Name: svn:keywords
+ HeadURL Id LastChangedBy LastChangedDate LastChangedRevision
More information about the Mapbender_commits
mailing list