[Mapbender-commits] r5144 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Dec 11 08:58:11 EST 2009


Author: verenadiewald
Date: 2009-12-11 08:58:11 -0500 (Fri, 11 Dec 2009)
New Revision: 5144

Removed:
   trunk/mapbender/http/plugins/mod_selectMapsize.js
Log:
wrong file name

Deleted: trunk/mapbender/http/plugins/mod_selectMapsize.js
===================================================================
--- trunk/mapbender/http/plugins/mod_selectMapsize.js	2009-12-11 13:57:08 UTC (rev 5143)
+++ trunk/mapbender/http/plugins/mod_selectMapsize.js	2009-12-11 13:58:11 UTC (rev 5144)
@@ -1,36 +0,0 @@
-var mod_selectMapsize_target = options.target[0];
-
-$this = $(this).change(function () {
-	mod_selectMapsize(this);
-});
-
-function mod_selectMapsize(obj){
-	var map = Mapbender.modules[mod_selectMapsize_target];     
-	var p = obj.value.split(",");
-	var w = parseInt(p[0], 10) ;
-	var h = parseInt(p[1], 10);
-	var pos = map.convertPixelToReal(new Mapbender.Point(w,h));
-	var coords = map.getExtent().split(",");
-	map.setExtent(new Mapbender.Extent(
-		coords[0],
-		pos[1],
-		pos[0],
-		coords[3]
-	)); 
-	map.setWidth(w);
-	map.setHeight(h);
-	map.setMapRequest();
-}
-
-Mapbender.events.init.register(function () {
-	var map = Mapbender.modules[mod_selectMapsize_target];     
-	map.events.dimensionsChanged.register(function (obj) {
-		$this.children("option").each(function () {
-			var value = this.value.split(",");
-			if (obj.width === value[0] && obj.height === value[1]) {
-				console.log("select: " + value);
-			}
-		});
-	});
-	
-});



More information about the Mapbender_commits mailing list