Tim Schaub
f5052149d1
Updated styles
2021-09-24 13:40:54 +00:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Mihai CAZACU
7cbdf16a64
format code
2020-08-06 20:34:54 +03:00
Mihai CAZACU
c53ff622f2
add CSS class name support for rotate button
2020-08-06 20:32:26 +03:00
Mihai CAZACU
ec1a87443d
format code
2020-08-06 20:09:27 +03:00
Mihai CAZACU
ebf0d87aa8
add CSS class name support for attribution button
2020-08-06 20:06:28 +03:00
Mihai CAZACU
fe3295b469
format code
2020-08-06 16:40:45 +03:00
Mihai CAZACU
763629382e
format code
2020-08-06 16:36:08 +03:00
Mihai CAZACU
1aa33085c1
add CSS class name support for zoom buttons
2020-08-06 16:15:59 +03:00
Andreas Hocevar
e5167f4e12
Fix custom controls with user-provided element
2020-05-15 17:50:44 +02:00
Andreas Hocevar
7f6258dd0d
Set pointerEvents style programmatically instead of relying on ol.css
2020-04-16 17:34:40 +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
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Olivier Guyot
405e206717
View / better names for getValid* and applyParameters_ methods
2019-02-22 15:04:54 +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
Frederic Junod
9ab201642c
Simplify import path in ol/control/
2018-11-05 16:26:45 +01: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
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
600205f4d9
Use extends and super for control/Zoom
2018-07-17 14:44: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
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Tim Schaub
2e0fd1c12d
Module type for Control
2018-03-18 09:53:35 -06:00
Frederic Junod
bb3072153b
Remove undefined type when the property is optional
2018-03-13 12:33:35 +01:00
Frederic Junod
813b72251a
Mark optional property with square brackets
2018-03-12 15:58:44 +01:00
Tim Schaub
9b4ed8aaf3
Move ZoomOptions to ol/control/Zoom
2018-03-11 11:29:57 -06:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Marc Jansen
a7c5897bdb
Named exports from ol/css module
2017-12-19 11:38:56 +01:00
Marc Jansen
479c7a4668
Rename _ol_events_EventType_ to EventType
2017-12-15 16:19:03 +01:00
Tim Schaub
fb8fb42d81
Rename _ol_control_Zoom_ to Zoom
2017-12-14 13:07:36 -07:00
Tim Schaub
681f1285f8
Rename _ol_control_Control_ to Control
2017-12-14 12:57:49 -07:00
Frederic Junod
061e0b6618
Named exports from ol/easing
2017-12-14 08:56:38 +01:00
Tim Schaub
87295a74dd
Use named exports from ol/index.js
2017-12-12 12:34:23 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Tim Schaub
1cdb6a66f0
Imports cased like the filename
2017-12-12 06:53:17 -07:00
Tom Payne
c6343ed2bc
Add experimental controls infrastructure, thanks @elemoine
2012-07-18 15:12:30 +02:00
ahocevar
578f74eb86
Less magic.
...
Each control is responsible for its handlers. And all controls are rendered into an overlay, not any more depending on assumptions about link click handling.
2012-06-29 09:44:52 +02:00
ahocevar
c218e7a139
Adding missing return type.
2012-06-24 22:12:58 +02:00
ahocevar
9758910fc6
Making Element/Node types more consistent.
2012-06-24 22:12:38 +02:00
ahocevar
d8599f28b9
Let the controls decide about stopPropagation and preventDefault.
2012-06-24 19:53:42 +02:00
ahocevar
bd8354c831
Adding destroy method.
...
The control now removes its markup from the DOM. A nice aspect of our event handling is that no events need to be registered on any of the dom elements that controls create.
2012-06-24 17:08:32 +02:00
ahocevar
bc37121ae0
Accessibility - now we can use the keyboard to zoom in and out.
2012-06-24 13:45:32 +02:00
ahocevar
0c9b3d1d58
Making map_ protected instead of private.
2012-06-24 11:39:42 +02:00
ahocevar
6c1d510bf0
Getting rid of compiler warnings.
2012-06-22 17:17:25 +02:00
ahocevar
0420d2efb9
Adding Zoom control.
...
Tests still missing.
2012-06-22 17:14:22 +02:00