Commit Graph

931 Commits

Author SHA1 Message Date
Tim Schaub 85ef563ba8 Remove PluggableMap 2022-07-31 10:08:13 -06:00
Maximilian Krög c90c4c84c5 Remove MousePosition's deprecated undefinedHTML option
Simplify the placeholder option to only accept strings or undefined.
2022-07-31 02:23:35 +02:00
Maximilian Krög 5f8a83b6d8 Remove fullscreen handling fallback for IE 2022-07-30 22:59:26 +02:00
Maximilian Krög 7ac61fdc70 Replace proj/Units enum with typedef 2022-07-30 15:06:12 +02:00
Maximilian Krög ac6edc704a Replace ScaleLine Units with typedef 2022-07-19 22:56:46 +02:00
Maximilian Krög d957bdeb86 Fix ScaleLine markup 2022-07-16 18:56:59 +02:00
jeanpierre c8a28848dd change class names 2022-07-16 16:57:14 +02:00
jeanpierre 4d2b2c9650 style for scalebar
with new class in css and remove the hardcoded background

Co-Authored-By: Andreas Hocevar <211514+ahocevar@users.noreply.github.com>
2022-07-16 15:53:27 +02:00
jipexu cb5417e0b6 Merge branch 'openlayers:main' into scalebarcolors 2022-07-16 11:22:01 +02:00
jeanpierre d3861b0922 scaleBarColors a new option for scalebar colors 2022-07-15 19:14:46 +02:00
Tim Schaub 03dbe1f9a1 Use union type instead of enum for overlay positioning 2022-07-15 10:48:37 +02:00
jipexu 2c24ceef86 NM symbol unit
https://github.com/openlayers/openlayers/issues/13497

please check if it is enough ...
2022-04-10 17:24:08 +02:00
Bart van den Eijnden 5d5deee517 Update src/ol/control/ScaleLine.js
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com>
2022-04-01 13:48:55 +02:00
Bart van den Eijnden aff459bc02 Add optional maxWidth for ScaleLine control 2022-04-01 13:26:18 +02:00
Maximilian Krög 1ae1ff26a0 Initialize variable before use in FullScreen control
isInFullscreen_ was not initialized in the constructor when setClassName_
is called.

- Only remove the unnecessary classes when state changes instead of removing
  all and then adding the necessary classes again
2022-03-04 20:08:02 +01:00
Alan Moffat 87d87a155a Ensure FullScreen button has classname set on render.
When the FullScreen icon is first rendered, the button within it is not having the inactive classname set. The class name is set on toggling fullscreen on/off - just not being set on render.
2022-03-04 11:13:02 +00:00
Tim Schaub 96de98bfbb Merge pull request #13301 from EvertEt/strictnullchecks-2
Improve some null types to prepare for strictNullChecks
2022-02-09 04:51:54 -07:00
EvertEt 7b6afcd1e9 Change map variables from undefined to null for consistency 2022-02-07 08:06:46 +01:00
EvertEt 15de4bb5ab Improve some nullable map types
Closes #13326
2022-02-04 17:05:52 +01:00
EvertEt e3d3d24f05 Improve some null types to prepare for strictNullChecks 2022-01-31 19:35:25 +01:00
Frederic Junod a008d5696b Fix typo CSS class name for the expanded attributions button
See #11403
2022-01-31 11:11:14 +01:00
mike-000 c8a7a83e1f correct getScaleForResolution() 2021-12-29 22:43:53 +00:00
Maximilian Krög 12de93b397 Fixed unusable overlay in fullscreen mode 2021-11-02 22:10:27 +01:00
Maximilian Krög 9a6bb4d751 Fix FullScreen state when changing target in fullscreen mode 2021-11-02 00:21:11 +01:00
Maximilian Krög 5149224354 Improve code and its formatting 2021-11-02 00:21:11 +01:00
Maximilian Krög 770f53b5e3 Make FullScreen control work in external window 2021-11-02 00:21:10 +01:00
Matthijs Bon 72cb135aff Update typeDefs for labelActive
Add description that 'span' element can be used and add HTMLElement as type
2021-10-12 11:29:35 +02:00
Matthijs Bon 4cbf04d029 Update typeDefs for Fullscreen Options
Remove line stating that a 'span' is also a valid inactiveClassName value.
2021-10-11 14:48:04 +02:00
Matthijs Bon 6bc8d0cd96 Fix typeDef for label
Allow string, Text and HTMLElement, instead of only string and HTMLElement
2021-10-11 10:11:44 +02:00
Matthijs Bon d4bc7d3f39 Update typeDefs for Attribution and Control
For consistency with docs, update type for labels to {string|HTMLElement}
2021-10-11 10:05:47 +02:00
Edward Nash a4186fae3c bugfix: Fix type of layers option in OverviewMap
* The foundation Layer class is BaseLayer and not Layer
2021-09-27 13:33:24 +02:00
Tim Schaub f5052149d1 Updated styles 2021-09-24 13:40:54 +00:00
Jackie Ng 67d885d6ef #12758: Allow undefined to be passed to control setMap(). Consequently the return type of getMap() now can also be undefined as well. 2021-09-16 00:05:53 +10:00
Simon Seyock ce4f6ccb0d OnSignatures return more specific type 2021-09-10 16:11:38 +02:00
Tim Schaub c0bfcfb7ba Move description above type tag 2021-09-05 11:29:15 -06:00
Tim Schaub 53156ab936 Add a new placeholder option and deprecate undefinedHTML 2021-07-10 09:12:31 -06:00
Andreas Hocevar e9e664f3c9 Add typed signature for Observable#un() 2021-07-10 11:28:50 +02:00
Simon Seyock d914006d51 Add signatures for once. 2021-07-10 11:28:49 +02:00
Simon Seyock 1870a64984 Add CombinedOnSignature. 2021-07-10 11:28:49 +02:00
Simon Seyock e9a161740a controls and interactions. 2021-07-10 11:28:48 +02:00
Simon Seyock c8f43050c4 Revert "Merge pull request #12416 from ahocevar/eventtype-generics"
This reverts commit b6c143deb2, reversing
changes made to 7777821df5.
2021-07-10 11:28:46 +02:00
Jakob Miksch bfe5afe069 MousePosition: allow rendering of empty string 2021-07-08 20:54:45 +02:00
Andreas Hocevar 79f5f46d27 Remove lint 2021-06-28 18:10:51 +02:00
Andreas Hocevar b6c143deb2 Merge pull request #12416 from ahocevar/eventtype-generics
Use generics to limit event types in on(), once() and un()
2021-06-21 09:36:25 +02:00
Andreas Hocevar 018ad97f25 Use generics to limit event types in on(), once() and un() 2021-06-20 22:25:47 +02:00
Andreas Hocevar 343e0ffce9 Replace getChangeEventType() with add/removeChangeListener methods 2021-06-19 23:16:26 +02:00
MoonE 99aa3b2640 Correctly initialize attribution aria state
Co-authored-by: Marc Jansen <jansen@terrestris.de>
2021-05-14 21:03:51 +02:00
Maximilian Krög fc9e3e5610 Improve attribution accessibility
Tab order of attribution text should be after the toggle button
Add aria-expanded state to the toggle button.
2021-05-13 16:42:56 +02:00
Maximilian Krög f999f1a675 Fix zoomslider layout with padding 2021-04-16 00:29:06 +02:00
Maximilian Krög 59c76334b1 Draw box if OverviewMap is added to an existing map 2021-02-15 00:45:46 +01:00