Closed GoogleCodeExporter closed 9 years ago
Work done:
- global component data/OWSCapabilitiesCache.js for fetching and caching OWS
Capabilities added. Also handy for other components
- updated LayerLegendPanel now loads from capabilities for preconfigured URL
patterns (e.g. ['dino', 'arcgis'])
tested ok with
http://lib.heron-mc.org/heron/latest/examples/defaultnl (enable TNO layers and
see that Legend fetched form WMS Capabilities appears!)
Some more testing but close to Ready...
COnfig for LayerLegendPanel update:
/** api: config[legendFromCapabilities]
* Always get legend URL from Capabilities document i.s.o. via WMS GetLegendGraphic.
* default value is false.
*/
legendFromCapabilities: false,
/** api: config[legendFromCapabilities]
* Get legend URL from Capabilities document i.s.o. via WMS GetLegendGraphic
* for these server URL substrings. Some WMS's do not support GetLegendGraphic or have
* pre-configured elaborate Legend images. In those cases the Capabilities document
* provides a legend URL in the Style section for a Layer.
* Type is String array.
* default value is ['dino'].
*/
legendFromCapabilitiesPatterns: ['dino'],
so even can be enabled unconditionally via legendFromCapabilities: true, but
use with care!.
Original comment by jus...@gmail.com
on 1 May 2014 at 5:20
Done, bugs/enhancements in new issues...
Original comment by jus...@gmail.com
on 8 May 2014 at 11:21
Original issue reported on code.google.com by
jus...@gmail.com
on 28 Apr 2014 at 11:18