[MapServer-users] PHP Mapscript: how to clone layers
Jan Hartmann
j.l.h.hartmann at gmail.com
Sun Nov 26 10:38:44 PST 2023
Hi,
In previous versions of PHP MapScript a new layer was defined as:
$l2 = new layerObj($oMap,$l1);
$l1 is the base layer from which $l2 is copied.
In MapScript SWIG the second parameter has disappeared. $l2 has to be
cloned from $l1, and then inserted into the map. With PHP-MapScript this
should be:
$l2 = $l1->clone();
$oMap->insertLayer($l2);
But there is no PHP-MapScript function layerObj::clone. What do I miss?
Jan
More information about the MapServer-users
mailing list