[Cartoweb-users] user defined metadata

Ramses Verbrugge - TiDi Graphics ramses at tidi.nl
Fri Sep 8 10:08:22 EDT 2006

Well, I have found the answer:

if you want a variable in the metadata to be available, you have to add the name to the exported_values variable (also in the metadata of the mapfile).

  "exported_values" "foo,bar"
  "foo" "test foo"
  "bar" "test bar"

Then you have to retrieve an array or LayerBase objects (the layers)

You can get the metadata with the LayerBase::getMetadata function (see coreplugins/layers/common/Layers.php)

More information about the Cartoweb-users mailing list