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
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Andreas Hocevar
343e0ffce9
Replace getChangeEventType() with add/removeChangeListener methods
2021-06-19 23:16:26 +02:00
Maximilian Krög
59c76334b1
Draw box if OverviewMap is added to an existing map
2021-02-15 00:45:46 +01:00
Maximilian Krög
73d288c191
Fix initially empty overview map
2021-02-15 00:12:52 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Tim Schaub
bfee5c00c9
Update function return types
2020-05-18 17:11:13 -06:00
Andreas Hocevar
e5167f4e12
Fix custom controls with user-provided element
2020-05-15 17:50:44 +02:00
Andreas Hocevar
c6341bbcd9
Fix types for events
2020-05-10 18:19:45 +02:00
Andreas Hocevar
7f6258dd0d
Set pointerEvents style programmatically instead of relying on ol.css
2020-04-16 17:34:40 +02:00
Andreas Hocevar
f4d64700ef
Fix private scope type issues in controls
2020-04-15 10:53:24 +02:00
Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod
706dd3c87c
Remove all inheritDoc tags from src/ol/control
2020-04-03 07:52:51 +02:00
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
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
Brian Helba
c5ad886d7c
Ensure that OverviewMap respects the initial rotation of attached Maps
2019-11-18 05:33:28 -05: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
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
5711cd30d0
Seperate getEventCoordinate into internal/external method
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
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +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
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
Kevin Schmidt
49a4bf4248
Fix TypeScript error in ol/control/OverviewMap
2018-10-16 09:24:00 -06:00
Kevin Schmidt
a92c992e1a
Cast to Array to avoid false union mismatch
2018-10-03 13:55:12 -06:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +02:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Matthias Schiffer
321166849b
Consistently use lowercase HTML tag names
...
Unlike HTML, XHTML is case-sensitive.
2018-08-18 12:48:14 +02:00
Tim Schaub
2eb07aa081
Use Template<Foo> instead of Template.<Foo>
2018-07-25 18:37:08 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
Frederic Junod
2e60961700
Use 'HTMLElement' type instead of 'Element' in controls
2018-07-19 16:02:58 +02:00
Frederic Junod
f140ff368d
Move jsdoc constructor comments for controls
2018-07-17 16:44:53 +02:00
ahocevar
6ffda39b14
Use extends and super for control/OverviewMap
2018-07-17 14:41:27 +02:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
Frederic Junod
6da2e4cef4
More precise Event typing
2018-06-29 12:53:20 +02:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
Frederic Junod
6444e6989d
Add missing properties in option typedef
2018-06-06 16:14:22 +02:00
ahocevar
64e1139230
Fix remaining type issues
2018-05-17 12:29:22 -05:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Tim Schaub
be35f82ae5
Explicit map renderer construction
2018-04-14 09:38:40 -06:00