[MapQuery] layer.options

Christian Wygoda arsgeografica at googlemail.com
Wed Jun 29 15:48:19 EDT 2011


Go ahead, my clone used for Mapbender 3 has already has this. Two folks,
same idea - indicator of a good idea? :)

On Tue, Jun 28, 2011 at 5:13 PM, Steven M. Ottens <steven at minst.net> wrote:

> **
> Hi all,
>
> I noticed in mapquery.core the options of the Layer are not saved with the
> layer object. Eg you cannot do layer.options to find the options of the
> layer object. Also there is this bit starting at line 225:
>     // create the actual layer based on the options
>     // Returns layer and final options for the layer (for later re-use,
>     // e.g. zoomToMaxExtent).
>     var res = $.MapQuery.Layer.types[options.type.toLowerCase()].call(
>         this, options);
>     this.olLayer = res.layer;
>     options = res.options;
>
> I've got the feeling that this should be:
>     // create the actual layer based on the options
>     // Returns layer and final options for the layer (for later re-use,
>     // e.g. zoomToMaxExtent).
>     var res = $.MapQuery.Layer.types[options.type.toLowerCase()].call(
>         this, options);
>     this.olLayer = res.layer;
>     *this.*options = res.options;
>
> So if no-one has an objection I'll push this change later this week to git.
>
> Steven
>
>
> _______________________________________________
> MapQuery mailing list
> MapQuery at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapquery
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapquery/attachments/20110629/dc8f0b57/attachment.html


More information about the MapQuery mailing list