[fusion-commits] r1415 - in trunk/MapServer: . php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Jun 3 13:23:42 EDT 2008
Author: pagameba
Date: 2008-06-03 13:23:42 -0400 (Tue, 03 Jun 2008)
New Revision: 1415
Modified:
trunk/MapServer/MapServer.js
trunk/MapServer/php/LoadMap.php
Log:
initial attempt to return extent with layer obj from mapserver
Modified: trunk/MapServer/MapServer.js
===================================================================
--- trunk/MapServer/MapServer.js 2008-05-30 20:17:23 UTC (rev 1414)
+++ trunk/MapServer/MapServer.js 2008-06-03 17:23:42 UTC (rev 1415)
@@ -823,6 +823,7 @@
this.editable = o.editable;
this.parentGroup = o.parentGroup;
this.metadata = o.metadata;
+ this.extent = o.extent;
this.scaleRanges = [];
this.minScale = 1.0e10;
this.maxScale = 0;
Modified: trunk/MapServer/php/LoadMap.php
===================================================================
--- trunk/MapServer/php/LoadMap.php 2008-05-30 20:17:23 UTC (rev 1414)
+++ trunk/MapServer/php/LoadMap.php 2008-06-03 17:23:42 UTC (rev 1415)
@@ -154,7 +154,12 @@
$layerObj->metadata->$key = $layer->getMetadata($key);
}
}
-
+ $extent = $layer->getExtent();
+ $layerObj->extent = NULL;
+ $layerObj->extent->minx = $extent->minx;
+ $layerObj->extent->maxx = $extent->maxx;
+ $layerObj->extent->miny = $extent->miny;
+ $layerObj->extent->maxy = $extent->maxy;
$layerObj->propertyMappings = '';
$layerObj->uniqueId = $i;
$layerObj->layerName = $layer->name;
More information about the fusion-commits
mailing list