Tobias Kohr
5711cd30d0
Seperate getEventCoordinate into internal/external method
2019-09-24 17:58:56 +02:00
Tobias Kohr
686c185de3
Call internal method in MousePosition
2019-09-24 17:58:56 +02:00
Tobias Kohr
d4c1589a01
Seperate internal and API methods for the map
2019-09-24 17:58:56 +02:00
Tim Schaub
c03c359a20
Separate internal and API methods for the view
2019-09-21 11:30:14 -06:00
mike-000
61f49c2764
Revise and correct OverviewMap rotation
...
Correct the box display when the main map view is rotated and add an option to rotate either the box or the overview map view
2019-09-10 18:50:54 +01:00
mike-000
dc420c53a4
Prevent endless cycles as observed in #9796
...
Guard against endless cycle of attempts to reset extent which can occur if there is a constraint conflict
2019-09-05 21:03:21 +01:00
ahocevar
9366dee233
Use fixed fork of pepjs
2019-09-04 21:37:38 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
ahocevar
d416866108
Use pointer events everywhere
2019-08-31 23:40:11 +02:00
ahocevar
1aeebf09aa
Remove unused disposeInternal function
2019-08-31 20:56:18 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00
Tim Schaub
65ad4932f4
Support zoom limits for layers
2019-08-06 21:19:09 -04:00
Frederic Junod
2d2f4eb1a2
Remove unused variable in MousePosition control
...
`this.lastMouseMovePixel_` value is never read.
2019-07-26 14:54:14 +02:00
Frederic Junod
a9e1ebccd3
Mark the layers property as optional in OverviewMap constructor
2019-06-03 09:07:20 +02:00
Frederic Junod
ede864c823
Remove typecasts in ol/control/OverviewMap
...
The `options` type was not correctly detected by the typescript compiler.
2019-05-31 16:18:15 +02:00
Tim Schaub
c860f15f91
Break the circular dependency by extending a pluggable map
2019-05-17 12:38:32 -06:00
Andreas Hocevar
b54b7c5989
Merge pull request #9305 from KaiVolland/fix-scaleline-test
...
Fixes failing tests for Chrome v74
2019-03-11 15:30:01 +01:00
Kai Volland
fcf6e81430
Fixes issue with ScaleLine
...
Math.pow with negative exponents is inaccurate in chrome v74. `toFixed`
is called on the result to fix this.
2019-03-11 13:31:49 +01:00
Olivier Guyot
405e206717
View / better names for getValid* and applyParameters_ methods
2019-02-22 15:04:54 +01:00
Olivier Guyot
433bccd207
Linting and fixes for unit tests
2019-02-22 15:01:30 +01:00
Olivier Guyot
ef6d17d817
View / add a 'smoothResolutionConstraint' options
...
When enabled (true by default), the resolution min/max values will be applied with
a smoothing effect for a better user experience.
2019-02-22 15:01:30 +01:00
Olivier Guyot
3c1e3779e2
View / add a method to compute a valid zoom level
...
The `getValidZoomLevel` apply the current resolution constraint to return
a value that is guaranteed valid.
This is used for interactions & controls which need a target value to work:
the +/- buttons, the zoom clider, the dragbox zoom and the mouse wheel zoom.
2019-02-22 15:01:30 +01:00
Olivier Guyot
4e1ece16ed
View / implemented begin- and endInteraction methods
2019-02-22 15:01:30 +01:00
Frederic Junod
e9ecea3bb7
Remove 'moz' prefix for the Full Screen API
...
Browser support: https://caniuse.com/#feat=fullscreen
2019-02-15 14:37:49 +01:00
Frederic Junod
391dfc5025
Remove vendor prefix for the 'transform' CSS property
...
Browser support: https://caniuse.com/#feat=transforms2d
2019-02-15 14:29:15 +01:00
ahocevar
703dadfcde
Fix ScaleLine control now that getPointResolution works correctly
2019-02-07 12:26:18 +01:00
Tim Schaub
63c079257f
Merge pull request #9013 from weskamm/scalebar
...
Added scalebar option to ol.control.scaleline
2019-01-22 18:04:08 -07:00
Johannes Weskamm
347e721025
Fixup prop evaluation
2019-01-21 09:33:29 +01:00
ahocevar
9cfb46f7a4
Listen to all fullscreen event types
2018-12-20 08:39:24 +01:00
Niklas Alt
4bc9216e41
Add ': void' to non returning functions (error TS7014)
2018-12-06 19:57:45 +01:00
Johannes Weskamm
d4c14da4b5
Rename props, localization, fix example
2018-11-29 15:24:41 +01:00
Johannes Weskamm
97618c8611
Added scalebar option to ol.control.scaleline
2018-11-28 16:25:55 +01:00
Olivier Guyot
593632daea
Fix the OverviewMap control & example
...
Layers must now always be specified for the control.
Base example was amended to reflect that.
The breaking change was added in the update notes.
2018-11-15 12:04:49 +01:00
Frederic Junod
9ab201642c
Simplify import path in ol/control/
2018-11-05 16:26:45 +01:00
ahocevar
1df9189d7f
Fix more types for TypeScript
2018-10-30 18:55:03 +01:00
Antoine Abt
1740f02737
Merge pull request #8843 from tonio/ts_fullscreen
...
Fix ts typing for fullscreen button
2018-10-23 14:18:46 +02:00
Antoine Abt
fc8ba24d3f
Store button and correctly type it.
2018-10-23 11:02:43 +02:00
Frederic Junod
3746ba99cf
Change target type from Element to HTMLElement
...
Same as the parent class type for `MousePosition` and the type returned by the
`getViewport` function.
2018-10-23 09:17:17 +02:00
Frederic Junod
94fd57f690
Set projection property in MousePosition option optional
2018-10-17 10:56:11 +02:00
Frederic Junod
939aa565b5
Change ol/control/ScaleLine getUnits return type
...
Remove `undefined` from the return type: the default value is 'metric'
2018-10-17 10:48:19 +02:00
Frédéric Junod
a85099a36b
Merge pull request #8825 from schmidtk/ts-misc-errors
...
Fix TypeScript errors
2018-10-17 09:45:28 +02:00
Kevin Schmidt
49a4bf4248
Fix TypeScript error in ol/control/OverviewMap
2018-10-16 09:24:00 -06:00
Andreas Hocevar
43ca764293
Merge pull request #8806 from notnotse/preserve-fullscreen-button-class-names
...
Preserve button class name list in full screen control on toggle
2018-10-16 16:58:44 +02:00
Andreas Hocevar
6e7558e954
Merge pull request #8804 from notnotse/issue/8621-disable-collapsible-attributions-for-osm
...
Add possibility to disable collapsible attributions from Source
2018-10-14 12:16:36 +02:00
ahocevar
2768884044
Make new behavior overridable; update docs and examples
2018-10-14 12:10:40 +02:00
itjope
50f90cdf61
Preserve button class name list in full screen control on toggle
2018-10-12 11:37:43 +02:00
Bobo Häggström
2f4d31c8f4
Add possibility to disable collapsible attributions from Source
2018-10-12 09:28:34 +02:00
Andreas Hocevar
945f686f8a
Remove 2nd argument of parseFloat
2018-10-11 14:00:15 +02:00
itjope
2c6e80a601
Handle zoom slider position with floating point numbers
2018-10-11 12:50:51 +02:00
Kevin Schmidt
a92c992e1a
Cast to Array to avoid false union mismatch
2018-10-03 13:55:12 -06:00