[Mapbender-commits] r5241 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Dec 23 06:04:00 EST 2009
Author: christoph
Date: 2009-12-23 06:04:00 -0500 (Wed, 23 Dec 2009)
New Revision: 5241
Removed:
trunk/mapbender/http/javascripts/initOpenLayersWms.php
trunk/mapbender/http/javascripts/mod_openlayers.php
Log:
Deleted: trunk/mapbender/http/javascripts/initOpenLayersWms.php
===================================================================
--- trunk/mapbender/http/javascripts/initOpenLayersWms.php 2009-12-23 11:03:27 UTC (rev 5240)
+++ trunk/mapbender/http/javascripts/initOpenLayersWms.php 2009-12-23 11:04:00 UTC (rev 5241)
@@ -1,34 +0,0 @@
-<?php
-# $Id: mod_createJSObjFromDB.php 2144 2008-02-26 23:16:14Z christoph $
-# http://www.mapbender.org/index.php/mod_createJSObjectFromDB.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.
-
-require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-require_once(dirname(__FILE__)."/../classes/class_wms.php");
-
-$sql = "SELECT fkey_wms_id FROM gui_wms WHERE fkey_gui_id = $1 ORDER BY gui_wms_position";
-$v = array(Mapbender::session()->get("mb_user_gui"));
-$t = array('s');
-$res = db_prep_query($sql,$v,$t);
-
-$cnt=0;
-while($row = db_fetch_array($res)){
- $mywms = new wms();
- $mywms->createObjFromDB(Mapbender::session()->get("mb_user_gui"),$row["fkey_wms_id"]);
- $mywms->createOlObjFromWMS($cnt==0);
- $cnt++;
-}?>
\ No newline at end of file
Deleted: trunk/mapbender/http/javascripts/mod_openlayers.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_openlayers.php 2009-12-23 11:03:27 UTC (rev 5240)
+++ trunk/mapbender/http/javascripts/mod_openlayers.php 2009-12-23 11:04:00 UTC (rev 5241)
@@ -1,42 +0,0 @@
-<?php
-# $Id$
-# http://www.mapbender.org/index.php/Openlayers
-# 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 ol_options = { scales: [50000000, 30000000, 10000000, 5000000],
- resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125],
- minScale: 50000000,
- maxResolution: "auto",
- maxExtent: new OpenLayers.Bounds(-180, -90, 90, 180),
- maxResolution: 0.17578125,
- maxScale: 10000000,
- minResolution: "auto",
- minExtent: new OpenLayers.Bounds(-1, -1, 1, 1),
- minResolution: 0.0439453125,
- numZoomLevels: 5,
- units: "degrees"
- };
-
-
-var ol_map;
-OpenLayers.ImgPath = "../img/openlayers/";
-ol_map = new OpenLayers.Map('<?php echo $e_id;?>', {'maxResolution': 1.40625/2});
-
-eventAfterInit.register(function () {
- ol_map.zoomToMaxExtent();
-
-});
\ No newline at end of file
More information about the Mapbender_commits
mailing list