[fusion-commits] r1420 - trunk/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Jun 25 06:40:23 EDT 2008


Author: pagameba
Date: 2008-06-25 06:40:23 -0400 (Wed, 25 Jun 2008)
New Revision: 1420

Modified:
   trunk/MapServer/php/LoadMap.php
Log:
Add separate type for annotation layers.

Modified: trunk/MapServer/php/LoadMap.php
===================================================================
--- trunk/MapServer/php/LoadMap.php	2008-06-23 16:07:34 UTC (rev 1419)
+++ trunk/MapServer/php/LoadMap.php	2008-06-25 10:40:23 UTC (rev 1420)
@@ -155,7 +155,7 @@
             }
         }
 
-        $extent = $layer->getExtent();
+        //$extent = $layer->getExtent();
         $layerObj->extent = NULL;
         $layerObj->extent->minx = NULL;
         $layerObj->extent->maxx = NULL;
@@ -176,7 +176,6 @@
          $layerObj->layerName = $layer->name;
          switch($layer->type) {
              case MS_LAYER_POINT:
-             case MS_LAYER_ANNOTATION:
                 $type = 0;
                 break;
              case MS_LAYER_LINE:
@@ -188,6 +187,9 @@
              case MS_LAYER_RASTER:
                 $type = 4;
                 break;
+             case MS_LAYER_ANNOTATION:
+                $type = 8;
+                break;
              default:
                 $type = 0;
          }



More information about the fusion-commits mailing list