On Thu, Jan 24, 2013 at 10:40 AM, Martin Dobias <[email protected]> wrote: > On Thu, Jan 24, 2013 at 1:32 PM, Alexander Bruy > <[email protected]> wrote: >> Hi Pirmin, >> >> as I can see in API docs (using your link) there is a note: >> >> Note: >> This method is deprecated since QGIS 1.8, you should use >> addMapLayers rather. > > A bit off-topic, but I find it weird that addMapLayer() method has > been marked as deprecated: even if now we have the possibility to > specify more layers at once, it is always good to have a convenience > call that accepts just one layer (as that's what most users will do).
I also think that this method should be brought back to the api, see all the errors that are popping up in both mailing list about QgsMapRegistry::addMapLayer(). Why break things like this when there is no real gain? Unless someone objects, I will restore QgsMapRegistry::addMapLayer() Etienne > > Martin > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
