[Mapbender-commits] r3856 - branches/2.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Apr 7 11:49:31 EDT 2009
Author: christoph
Date: 2009-04-07 11:49:31 -0400 (Tue, 07 Apr 2009)
New Revision: 3856
Modified:
branches/2.5/http/javascripts/mod_selArea1.php
Log:
http://trac.osgeo.org/mapbender/ticket/145
Modified: branches/2.5/http/javascripts/mod_selArea1.php
===================================================================
--- branches/2.5/http/javascripts/mod_selArea1.php 2009-04-07 15:42:53 UTC (rev 3855)
+++ branches/2.5/http/javascripts/mod_selArea1.php 2009-04-07 15:49:31 UTC (rev 3856)
@@ -64,11 +64,13 @@
mb_zF = mod_selArea_target;
}
function mod_selArea_setValidClipping(coords){
- if(coords.length > 2){
- mb_calculateExtent(mb_zF,coords[0],coords[1],coords[2],coords[3]);
- setMapRequest(mb_zF);
+ if (typeof(coords) !== "undefined") {
+ if(coords.length > 2){
+ mb_calculateExtent(mb_zF,coords[0],coords[1],coords[2],coords[3]);
+ setMapRequest(mb_zF);
+ }
+ else{
+ zoom(mb_zF,true,1.0,coords[0], coords[1]);
+ }
}
- else{
- zoom(mb_zF,true,1.0,coords[0], coords[1]);
- }
}
More information about the Mapbender_commits
mailing list