<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><span style="font-size: 12pt;">My environment is :window 7, Qgis2.8.2, standalone install.</span></div><div><br></div><div>I'm developing a qgis python plugin about mapcomposer.</div><div><br></div><div>My qgis project has some mapcomposer template, which contains some soild combination of base shp layers.For some reason, i have to choose the mapcomposer mapitem's "Lock layers for map item" and "Lock layer styles for map item" options, then i need add a shp layer to mainwindow's canvas and update that layer to the mapcomposer item. What makes me mad is, when i choose that two options, i can't add the layer to mapitem; when i cancle them, it will update all mainwindow's layer to the mapitem, which is useless. </div><div><br></div><div>Here is my question, how to add a layer to the locked map composer item.</div><div><br></div><div>If this is impossible, i have thought another way, that is add a new composer map item which contains the one layer i want, then make the item transparent and the same extent with the former item. Could anybody tell me if that is workable or not? If that works, may be you can tell me how to add a mapitem with a soild layer, not all layers in the main canvas. </div><div><br></div><div>Any help is grateful, thank you!!</div> </div></body>
</html>