Tim Schaub
99612e7f9a
Remove opt_ prefix
2022-08-11 20:14:35 -06:00
Tim Schaub
4d3cb782c8
Remove circular dependency
2022-08-11 11:51:01 -06:00
Maximilian Krög
5b8d810f80
Use const in more places
2022-08-09 00:25:30 +02:00
Maximilian Krög
f7cb9b9fdf
Invert displayed scale for very high zoom levels
...
This prevents a scale of '1 : 0' being displayed and instead displays
'scale : 1'
2022-08-06 23:16:25 +02:00
Maximilian Krög
564d9d7685
Set pointer-event: none for ScaleLine
...
There is no reason to interact with this control and for the
`bar` option the blocked rect may be unexpectedly large
2022-08-06 23:16:25 +02:00
Maximilian Krög
ff79897f06
Fix default value docs for ScaleLine class option
2022-08-06 23:16:25 +02:00
Maximilian Krög
97f0e70447
Remove unnecessary code
...
Remove unnecessary nested div element
Don't number to string to number
2022-08-06 23:16:25 +02:00
Maximilian Krög
e0cbb6daa8
Cleanup ScaleLine code
2022-08-06 23:16:15 +02:00
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