I'm writing a p.mapper application where I need to dynamically
add some layers on user input.
I'm looking at the dynlayersample plugin, but I cannot understand
how it is supposed to work. I initialize dynlayers with the given
example text file:
jsonFile = dynlayer_def.txt;
$dynLayers =
Hi,
I don't know for dynlayersample plugin. But you can also use
clientdynamiclayers base plugin. For real working example, try to have
a look on drawing and measure2 plugins (short doc here:
http://svn.pmapper.net/trac/wiki/PluginsDynamicData).
Thomas
Le 25/05/2010 18:53, Niccolo Rigacci
Niccolo
I think there is a bug in the code as left over from some earlier
version. You could try changing the line in dynlayer.php-createDynLayers()
from
foreach ($dObj-layerlist as $dl) {
to
foreach ($dObj as $dl) {
But it might still not work. I got strange and practically not