Ticket #762 (new defect)

Opened 4 years ago

Last modified 3 months ago

[PHP MapScript] Add mapObj::insertLayer and mapObj::removeLayer

Reported by: dmorissette Assigned to: mapserverbugs
Priority: high Milestone: FUTURE
Component: MapScript-PHP Version: 4.3
Severity: normal Keywords:
Cc: jmckenna

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

07/08/04 13:38:32 changed by dmorissette

  • milestone set to 4.4 release.

08/20/04 18:08:45 changed by sgillies@frii.com

  • cc deleted.

11/19/04 13:46:57 changed by dmorissette

  • milestone changed from 4.4 release to FUTURE.
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.

03/10/08 17:02:58 changed by dmorissette

  • description changed.

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."

03/10/08 17:04:23 changed by dmorissette

  • description changed.

05/12/08 10:03:22 changed by assefa

  • cc set to jmckenna.

add insertLayer r7574. README and online php mapscript doc updated.