[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).

...
METADATA
  "exported_values" "foo,bar"
  "foo" "test foo"
  "bar" "test bar"
...
END

Then you have to retrieve an array or LayerBase objects (the layers)
$this->cartoclient->getMapInfo()->layersinit

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



More information about the Cartoweb-users mailing list