[OpenLayers-Dev] proposal: map.addLayer(object) as well as instance

Jachym Cepicky jachym.cepicky at gmail.com
Mon Oct 10 01:12:41 EDT 2011


Hi,


On 9.10.2011 23:04, Eric Lemoine wrote:
> On Wednesday, October 5, 2011, Jachym Cepicky<jachym.cepicky at gmail.com>

>
> The problem is that our layer constructors don't have the same signature.
> E.g. Layer.WMS receives four args, while Layer.WMTS receives one arg only.
> Until we generalize 1-arg constructors I would personally not bother adding
> lazy instantiation. Just my current viewport.
>
thanks for the answer. I do not see there any problem. Names of the args 
for each CLASS_NAME are described in the documentation, this method 
could relay on it.

One reason for this: easier deserialization of various stored map 
objects (in JSON format).

Jachym


More information about the Dev mailing list