Hi, I can manage to render maps using the python mapnik bindings, or using an XML file.
What I would like to do is combine the two - have the main map definition in an XML file, but then tweak it using python before rendering (ie switching layers on and off, changing datasources etc.). I was hoping that I would be able to do something like "map.Layers['Contours'].visible=False", but can't see how to do it. I have managed to add an extra layer using python using layers.append(), but would like to specify whereabouts in the layer stack the new layer goes, bud can't see how to do it. If anyone could confirm if this is supposed to be possible it would be appreciated, as would any pointers to examples or documentation? Thanks Graham. from my phone
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

