2

I want to know how to keep a layer always on top of other layers!
After adding a vector layer ( QgisInterface->addVectorLayer ), I want that layer to always be displayed on top of layers added later. Can anybody help me with this ?

1

try addMapLayer

vlayer = QgsVectorLayer( path, name, "ogr" )
QgsMapLayerRegistry.instance().addMapLayer(vlayer)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.