[OpenLayers-Trac] [OpenLayers] #1411: WMC: hidden is not always correctly interpreted
OpenLayers
trac at openlayers.org
Thu Mar 6 00:10:59 EST 2008
#1411: WMC: hidden is not always correctly interpreted
-------------------------+--------------------------------------------------
Reporter: bartvde | Owner: tschaub
Type: bug | Status: new
Priority: minor | Milestone: 2.6 Release
Component: Format.WMC | Version: 2.5
Resolution: | Keywords:
State: |
-------------------------+--------------------------------------------------
Comment (by tschaub):
I'm confused. What does this have to do with "hidden"?
Sounds like you're proposing different defaults for layers when the come
from WMC (as opposed to being created with an init script for example).
How does it make sense for singleTile to default to true when reading WMC
but to default to false when constructing a layer in the traditional way?
Same for isBaseLayer, buffer, and ratio.
Sorry if I'm missing the obvious.
If you'd like to be able to have non-default properties set on the layers
when you read WMC (that may not have been generated with ol specific
tags), then I'd suggest having a layerOptions property for the read
method.
{{{
wmc.read(doc, {
layerOptions: {
isBaseLayer: false,
singleTile: true,
buffer: 0,
ratio: 1 // etc.
}
);
}}}
This would allow the library to be used by people who have different
assumptions about what is sensible.
--
Ticket URL: <http://trac.openlayers.org/ticket/1411#comment:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list