[mapserver-users] setlayersdrawingorder()
Paul Spencer
pagameba at magma.ca
Tue Apr 9 06:44:07 PDT 2002
It seems to me that your php_mapscript is missing the function
setlayersdrawingorder ... we are using this function in php_mapscript
(with both PHP 4.0.6 and PHP 4.1.2), it was added to cvs around
October/November last year so make sure that you have a recent
mapscript/mapserver. Check the output of phpinfo(); after
dl("php_mapscript.so"); to see what the date and version numbers are
Paul Spencer
Project Management & Application Development
DM Solutions Group Inc
http://www2.dmsolutions.ca
-----Original Message-----
From: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Pushkar
Pradhan
Sent: Monday, April 08, 2002 4:46 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] setlayersdrawingorder()
hi,
The above is a function name for map object, there is also
getlayersdrawingorder(). I used getlayers... successfully but when I use
setlayers.... I get the foll. error: Fatal error: Call to undefined
function: setlayersdrawingorder() in
/rstc/user1/erc/pushkar/gis/mcrgdl/view3.php on line 75
Here is my code:
$layerOrder = array ();
$layerOrder = $map->getlayersdrawingorder();
$noOfLayers = count($layerOrder);
$tmp = $layerOrder[$noOfLayers-1];
$layerOrder[1] = $tmp;
$layerOrder[$noOfLayers-1] = 1;
/* to debug
foreach($layerOrder as $val) {
echo "$val ";
}
echo " and ";
echo is_array($layerOrder);
*/
$r = $map->setlayersdrawingorder($layerOrder);
These functions were not documented under mapscript I found them in the
mailing list archive What I am trying to do is change the order of
layers being drawn, can anybody give me the algorithm to do this and the
related functions, I am new to mapscript. Thanks,
------------------------------------------------------------------------
------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.
Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------
------
More information about the MapServer-users
mailing list