Matt Walker
627df10d98
WIP morph DOM instead of recreating
...
Improves usability and possibly accessibility as it improves keyboard
interaction with radio and checkboxes
2020-12-10 09:43:19 +00:00
Matt Walker
3b35c440ba
Load CSS from dist instead of src
2020-11-14 20:00:02 +00:00
Matt Walker
e910e18d77
Fixes after linting with @typescript-eslint & format with prettier
2020-10-31 20:30:08 +00:00
Matt Walker
98acb089f5
Add Event and Object.assign to polyfill list
2020-10-31 20:18:05 +00:00
Matt Walker
406f98a991
Define interfaces for options; type functions
2020-10-26 19:41:00 +00:00
Matt Walker
b0c97af7a9
Update activation mode example with tipLabel & collapseTipLabel options
2020-09-18 11:10:39 +01:00
Matt Walker
6003420f2a
Increase length of district layer title to demo wrapping
...
Allows us to visually check for any regressions in future related to
wrapping layer titles
2020-09-18 10:24:47 +01:00
Matt Walker
ad6a49b7ae
Use startActive option in groupSelectStyle example
...
Makes it much easier to review the groupSelectStyle options
2020-09-16 14:09:06 +01:00
Peter Goulborn
a31fcfde2f
Revert to 'water color'
...
Change to names obscure code changes
2020-09-15 17:02:56 +01:00
Peter Goulborn
5f103cc23e
Merge prettier changes
2020-09-14 09:14:02 +01:00
Peter Goulborn
27dca81212
Run prettier on all files
2020-09-14 08:59:26 +01:00
Peter Goulborn
9e624fead8
Add example for startActive setting
2020-09-08 18:46:31 +01:00
Peter Goulborn
d291ad0965
'Water color' -> 'Watercolor'
...
Former implies colour of water, latter is type of paint
2020-09-08 13:10:39 +01:00
Adrian Haarbach
4a891978fe
Added activationMode, collapseLabel and label options.
...
The activationMode defaults to 'mouseover' but can be changed to 'click'.
The collapseLabel and label options are consistent with other ol.control's like Attribution or OverviewMap.
This fixes #39 , fixes #99 , and fixes #123 .
It was extracted from #64 and also discussed in #32 .
2020-01-27 19:09:55 +01:00
Matt Walker
70b51447de
Update examples/ tests to use ol v6.1.1
...
No changes requried to ol-layerswitcher but note temporary fix for Turbo87/sidebar-v2
2019-11-17 07:19:08 +00:00
Matt Walker
0aa5c9c90c
Default groupSelectStyle in static renderPanel if not passed. Fixes #225
2019-09-20 12:14:10 +01:00
Matt Walker
cbc21e02d1
Improve example
2019-07-03 09:46:16 +01:00
Matt Walker
baec8ccaff
Support setting group visibility
2019-07-01 11:48:59 +01:00
ThomasG77
de1cafcf52
Upgrade OpenLayers demos URLs to Openlayers 5.3.0
2018-12-30 22:30:37 +01:00
Sebastian Walter
a1061301da
Added option to collapse groups
2018-11-17 19:47:42 +00:00
Matt Walker
8b20ad9bcd
Swap arg order for LayerSwitcher.renderPanel
...
The map is now the first argument which is consistent with other methods
2018-09-06 19:59:36 +01:00
Umberto Minora
1a8db01da1
Support for rendering layer tree to any element closes #46 , #67 , #76
...
See examples/sidebar.* for usage with https://github.com/Turbo87/sidebar-v2
2018-09-01 20:14:44 +01:00
Matt Walker
bbfc93d03d
Update examples to use v5 hosted build
2018-08-05 08:50:29 +01:00
Matt Walker
f38646ffd2
s/ol3/ol/g
2018-01-15 11:50:35 +00:00
Matt Walker
7eb23178e0
Use full OpenLayers for examples and tests
2018-01-03 09:58:04 +00:00
Matt Walker
cea1d9faed
Expose ol.control.LayerSwitcher if using a full build of OpenLayers
2018-01-02 12:07:42 +00:00
Matt Walker
92318ea3ee
Move Browserify example to ol-layerswitcher-examples
...
See: https://github.com/walkermatt/ol-layerswitcher-examples
2018-01-02 11:16:27 +00:00
Matt Walker
41421265c2
Output iife for global browser use
2017-12-22 12:24:27 +00:00
Matt Walker
58a8bade96
Rewrite as ES6 module, use rollup to create UMD build
2017-12-19 14:33:59 +00:00
RobertOrthofer
a6b612b0b7
Grey checkbox if layer is outside of resolution constraint. Closes #51
...
Demonstrated in `examples/addlayer.js`
2017-03-15 18:37:27 +00:00
Matt Walker
a399890d1a
Update to OpenLayer v4.0.1, closes #52
2017-03-06 10:50:06 +00:00
Matt Walker
2cf21c129c
Swap demo.osgeo.org layer for ons-inspire in examples
...
The demo.osgeo.org GeoServer is no longer available
2017-03-06 10:40:30 +00:00
Matt Walker
c7ffce2eb6
Add example project using Browserify
2017-01-14 08:35:06 +00:00
Matt Walker
3a85032e2c
Remove Bing Aerial due to high usage
2016-11-15 20:07:22 +00:00
Matt Walker
e9531d17f0
Add polyfill for old browsers to examples
...
As described in 810ed63b9f/README.md (supported-browsers) . Thanks to @ThomasG77 for the heads up :-)
2016-08-16 21:47:00 +01:00
Matt Walker
ab7932f4a1
Update OL3 used with examples and tests from 3.14.0 to 3.17.1
2016-08-02 10:17:02 +01:00
Matt Walker
3f844f1330
Remove MapQuest layers from examples, fixes #43
...
Replace MQ satellite with Bing, MQ roads and labels with Stamen
2016-08-02 10:04:15 +01:00
Matt Walker
83ab391a3b
Add combined satellite & roads base layer example. Closes #36
2016-04-14 20:27:30 +01:00
Matt Walker
b4069c6ffc
Upgrade examples and tests to OpenLayers v3.14.0
...
Test fixtures had to be updated to take into account `ol.tilegrid`
changes in v3.6.0. No other changes required.
2016-02-27 08:24:52 +00:00
Matt Walker
bf6dc3b3cb
Import ol3 lib from cndjs over https for examples. Fixes #21
2016-02-26 10:20:15 +00:00
Matt Walker
9854edc4e2
Fix attribution for Thunderforest layers
2016-01-13 08:24:13 +00:00
Matt Walker
5c6caa0a69
Allow panel to scroll vertically is required.
2016-01-10 14:20:38 +00:00
Micho Garcia
3cc104c446
Prepared to tag and register in Bower. Closes #10
...
Add bower.json and update package.json to add ol3 npm dependancy and use
for tests; use hosted ol3 for examples so rawgit.com links continue to
work.
2015-03-09 06:42:10 +00:00
Matt Walker
81dde3c9e7
Update OL to v3.1.1, rename render to renderPanel. Closes #9
...
https://github.com/openlayers/ol3/pull/3032 renamed
`handleMapPostrender` to `render` which conflicts with our `render`
method.
2014-12-25 20:36:34 +00:00
Thomas
53dd245edd
Add tipLabel option to set button title. Closes #8
...
Update example accordingly.
2014-12-23 19:28:14 +00:00
Matt Walker
067471c1b0
Ensure only the top most visible base layer is visible
...
Previously if more than one base layer was visible then the state of the
base layer radio buttons was inconsistent with the layer visibility as
only one radio button can be enabled at a time.
This commit looks to ensure that only the top most base layer is visible
prior to layer list being rendered to ensure consistency.
2014-12-04 07:13:49 +00:00
Matt Walker
9c3b8bf63c
Example of adding a layer after the control is added to the map
2014-11-17 14:16:24 +00:00
Matt Walker
03a5e482c3
Minor jshint fixes
2014-10-18 19:50:31 +01:00
Matt Walker
da67e8a656
Add dependencies to lib and use in example
2014-10-11 09:51:59 +01:00
Matt Walker
8f7019c078
Ensure reference to map is local to control, fixes #1
2014-10-06 19:58:37 +01:00