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

Eric Lemoine eric.lemoine at camptocamp.com
Mon Oct 10 03:20:09 EDT 2011


On Mon, Oct 10, 2011 at 7:12 AM, Jachym Cepicky
<jachym.cepicky at gmail.com> wrote:
> 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.

Read "viewpoint" here :)

>>
> 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.


Please show how the addLayer fonction would create the layer instance.



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Dev mailing list