Tim Schaub
f798902ecd
Fix JSDoc generated links
2021-06-17 21:54:07 -06:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Tim Schaub
19bb3f8c88
Consistent use of Array and Object types
2021-02-02 13:53:10 -07:00
Simon Seyock
f590cb3473
Harmonize jsdoc
2021-02-02 12:14:56 +01:00
Andreas Hocevar
bfeeba2194
Merge pull request #11590 from sbrunner/export-type
...
Export all the Event sub class
2020-10-17 20:38:54 +02:00
Maximilian Krög
65fc3ca2ca
Improved performance when removing feature with only one Select
2020-09-28 01:00:07 +02:00
Stéphane Brunner
23e5c7ced8
Export all the Event sub class
...
Actually only some are exported
This is useful to type the received events
2020-09-25 13:15:49 +02:00
Andreas Hocevar
04bc9ff0df
Improve types and docs for getStyle/setStyle
2020-06-11 13:53:59 +02:00
Andreas Hocevar
8ba051add3
Fix private scope issues in ol/interaction/*
2020-04-15 10:53:25 +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
da8ef43db7
Remove all inheritDoc tags from src/ol/interaction
2020-04-03 07:52:51 +02:00
Geert Premereur
2d7e55e26a
Small code cleanup
...
drop superfluous if.
2020-04-02 20:05:14 +02:00
Geert Premereur
a30a92a963
CK-240: fix multiple select interactions on map
...
event handlers have to be (de)activated when the interaction is added or removed to the map, not when constructed
added unit test
2020-04-02 20:05:14 +02:00
Geert Premereur
10c7f08fa4
Select style multiple select interactions removed
...
This fixes issue 10486 by removing the event listeners when an
interaction is removed from a map.
2020-04-02 20:00:37 +02:00
Andreas Hocevar
c73034fe7d
Handle Select interactions with falsey select style
2020-02-20 00:36:33 +01:00
Andreas Hocevar
f98f66c529
Make Select interaction work when there are multiple instances
2020-02-19 11:52:12 +01:00
TigerShark
e60dc93e0e
Make ol/interaction/Select#handleEvent return always true.
...
Previously it was returning true only if the event was a pointerMove
which prevented multiple Select objects with other event types from
working.
2019-10-23 17:30:56 -03:00
wirdehall
bd5510b62a
Updated docs for Select style.
...
Updated docs for Select style with new option of false.
2019-10-18 00:20:05 +02:00
wirdehall
a34e7ddd99
Should be able to ovveride defaultvalue of style in selection.
...
null or false should be able to prevent overriding the style.
As discussed here: https://github.com/openlayers/openlayers/issues/10131
2019-10-17 15:05:30 +02:00
Tobias Kohr
347f5df32e
Fix some cosmetics on Select interaction
2019-09-25 17:34:26 +02:00
Tobias Kohr
2ccaed0ace
Add back Select interaction without Overlay
2019-09-25 16:37:28 +02:00
Tobias Kohr
38124d770b
Revert delete Select interaction commit 3838b68427
2019-09-25 16:37:28 +02:00
Simon Seyock
3838b68427
Removed SelectInteraction
2019-09-24 10:12:30 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Frederic Junod
0b53a3229b
Remove unneeded type cast
2019-02-04 09:58:49 +01:00
Frederic Junod
0189e8345d
Remove WebGL references in comments
2018-11-16 14:05:06 +01:00
Frederic Junod
6d608c361a
Simplify import path in ol/interaction/
2018-11-05 16:26:45 +01:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
Andreas Hocevar
4ca75e2aab
Merge pull request #8768 from schmidtk/ts-interaction-select
...
Fix type check errors in ol/interaction/Select
2018-10-03 11:10:50 +02:00
Kevin Schmidt
2f151a7832
Fix type check errors in ol/interaction/Select
2018-10-02 08:57:25 -06:00
Frederic Junod
ae87cad7ef
Use FeatureLike typedef
...
Use `import("./Feature.js").FeatureLike` typedef instead of `import("./Feature.js").default|import("./render/Feature.js").default`
2018-10-02 12:58:56 +02:00
Frederic Junod
81bab31efb
Remove extra imports in jsdoc
...
The symbols are already imported (es6 import)
2018-09-08 11:01:02 +02: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
Andreas Hocevar
adce78e19e
Remove redundant if block
2018-08-16 07:04:53 +02:00
ahocevar
8ab1589f9a
Add getOverlay method to access sketch and selection layers
2018-08-15 10:59:38 +02:00
Tim Schaub
2eb07aa081
Use Template<Foo> instead of Template.<Foo>
2018-07-25 18:37:08 -07:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
ahocevar
bbe0a66d07
Set api annotation on classdesc, not constructor
2018-07-21 17:25:22 +02:00
ahocevar
e79add2e77
Use extends, super and proper constructor jsdoc for ol/interaction
2018-07-17 21:09:06 +02:00
Tim Schaub
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -06:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
Frederic Junod
af1f6836af
Shorter module paths for default exports
2018-05-09 11:24:43 +02:00
Tim Schaub
167bc1ec78
Remove externs/oli.js
2018-05-08 08:38:34 -06:00
ahocevar
9bfdf818e4
Rename Style~Function path type to Style~StyleFunction
2018-04-27 09:30:51 +02:00
ahocevar
59d904e509
Fix some types
2018-04-27 09:30:51 +02:00
Frederic Junod
61067e6c2c
Module type for ol.Feature and short notation for ol/render/Feature
2018-04-26 15:38:51 +02:00