Augustus Kling
da7f51c085
Get default projection for overview map from main map.
...
Changes OverviewMap such that it will use whatever projection the
hosting map is using unless a view was specified explicitly.
Fixes #2998 #5188 #10670
2020-02-19 23:10:15 +01:00
Frédéric Junod
1481ec7d85
Merge pull request #10683 from fredj/fs_events
...
Dispatch enterfullscreen and leavefullscreen from the FullScreen control
2020-02-18 08:26:44 +01:00
Frederic Junod
9a03ca8417
Dispatch enterfullscreen and leavefullscreen from the FullScreen control
2020-02-17 10:48:29 +01:00
mike-000
2e1e0dba54
document that views must use same projection
2020-02-16 11:11:37 +00:00
Andreas Hocevar
f8f7f83be7
Do not expose static render function of controls
2020-01-29 20:21:08 +01:00
mike-000
0512c690f8
Fix for reset north when rotation is 360 degrees
...
Animated reset north doesn't work and isn't needed if rotation is 360 degrees (or a multiple of 360)
2020-01-10 13:39:29 +00:00
Andreas Hocevar
88b8b2f7cb
Conditional default prevention instead of touch-action: none
2019-11-25 01:09:05 +01:00
Andreas Hocevar
569deddd06
Use elm-pep instead of PEP as pointer events polyfill
2019-11-20 07:59:32 +01:00
Brian Helba
c5ad886d7c
Ensure that OverviewMap respects the initial rotation of attached Maps
2019-11-18 05:33:28 -05:00
Frederic Junod
daaaff5ac7
Remove unnecessary typecast
...
Remove typecast where typescript is able to correctly deduce the type.
2019-10-02 10:44:06 +02:00
mike-000
4f83392b76
Remove offsets from mouse position calculation
...
and remove space
2019-10-01 15:55:30 +01:00
mike-000
8a04f5059d
Remove offsets from mouse position calculation
...
Fixes #10073
Remove unneeded offsets from mouse position calculation as box position was centered in #9919
2019-10-01 15:47:36 +01:00
Frederic Junod
f67476dd8f
Mark properties as nullable
2019-09-27 13:57:59 +02:00
Frédéric Junod
0c8775b3c8
Merge pull request #9982 from fredj/css_vendor
...
Don't use vendor prefixes for the transform property
2019-09-25 08:26:11 +02:00
Tobias Kohr
b1196e7601
fix linting
2019-09-24 17:58:56 +02:00
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
Frederic Junod
75a553b37c
Don't use vendor prefixes for the transform property
...
We are already not using the prefixes in other part of the library.
For example:
https://github.com/openlayers/openlayers/blob/v6.0.0-beta.15/src/ol/renderer/canvas/TileLayer.js#L356
2019-09-24 16:58:49 +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