Go ahead, my clone used for Mapbender 3 has already has this. Two folks, same idea - indicator of a good idea? :)<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 5:13 PM, Steven M. Ottens <span dir="ltr"><<a href="mailto:steven@minst.net">steven@minst.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>
<div bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
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:<br>
// create the actual layer based on the options<br>
// Returns layer and final options for the layer (for later
re-use,<br>
// e.g. zoomToMaxExtent).<br>
var res =
$.MapQuery.Layer.types[options.type.toLowerCase()].call(<br>
this, options);<br>
this.olLayer = res.layer;<br>
options = res.options;<br>
<br>
I've got the feeling that this should be:<br>
// create the actual layer based on the options<br>
// Returns layer and final options for the layer (for later
re-use,<br>
// e.g. zoomToMaxExtent).<br>
var res =
$.MapQuery.Layer.types[options.type.toLowerCase()].call(<br>
this, options);<br>
this.olLayer = res.layer;<br>
<b>this.</b>options = res.options;<br>
<br>
So if no-one has an objection I'll push this change later this week
to git.<br>
<br>
Steven<br>
<br>
</div>
<br>_______________________________________________<br>
MapQuery mailing list<br>
<a href="mailto:MapQuery@lists.osgeo.org">MapQuery@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapquery" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapquery</a><br>
<br></blockquote></div><br>