I've been looking for a way to insert (i.e. not append) a new layer created in Python code. The usual some_map_object.layers.append(...) obviously appends the layer, but that would place the layer above e.g. text labels. Most layers are created through an XML file, but some layers need to be created in code (unless I have the Python code copy the configuration XML file and patch the temporary copy to insert the styles and layers in the right place, but that would be rather painful).
I even tried copying the current layer objects, emptying the instance of the Layers class, and re-adding the saved layers back, but I didn't get that to work either. -- Magnus Bäck [email protected] _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

