Opened 20 years ago

Last modified 16 years ago

#762 closed defect

[PHP MapScript] Add mapObj::insertLayer and mapObj::removeLayer — at Version 4

Reported by: dmorissette Owned by: mapserverbugs
Priority: high Milestone: 5.4 release
Component: MapScript-PHP Version: 4.3
Severity: normal Keywords:
Cc: jmckenna, dmorissette

Description (last modified by dmorissette)

In bug 759, mapObj::insertLayer and mapObj::removeLayer were added to SWIG
MapScript.

They need to be added to PHP MapScript as well.

Change History (4)

comment:1 by dmorissette, 20 years ago

Milestone: 4.4 release

comment:2 by sgillies@…, 20 years ago

Cc: sgillies@… removed

comment:3 by dmorissette, 20 years ago

Milestone: 4.4 releaseFUTURE
We've got ms_newLayerObj() already to add layers, and status MS_DELETE to remove
them, so this is low priority. Setting FUTURE target milestone.

comment:4 by dmorissette, 16 years ago

Description: modified (diff)

A question about the missing removeLayer() came up on the -users list today. Here is an exceprt from my reply explaining why we never addressed this ticket:

"... then I started to wonder why we never implemented removeLayer(), and it came back to me that removeLayer() returns a standalone layerObj that's decoupled from the mapObj and can even be reinserted into the map at another location later on with insertLayer(). Without looking into this in any detail, it sounds like adding this may be more involved than just adding a new method since PHP MapScript doesn't allow decoupling objects like this at the moment. That and the fact that there are simpler alternatives to do the same thing (i.e. setting status MS_DELETE) probably explains why we never did it."

Note: See TracTickets for help on using tickets.