mike-000
588e3b91d8
use numbers for expected values
2020-08-08 13:01:04 +01:00
mike-000
857f4e01ac
use precise international inchesPerMeter
...
test scalebar text
2020-08-07 10:49:31 +01:00
Andreas Hocevar
e5167f4e12
Fix custom controls with user-provided element
2020-05-15 17:50:44 +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
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
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
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
Edward Nash
ed18310136
Improve test in case of async call
2019-10-22 10:21:52 +02:00
Edward Nash
ee653a8e0d
Add regression test for event target on Control
...
* Check possible name collision of target element with EventTarget
2019-10-22 09:37:05 +02:00
mike-000
d1cf45f767
Update rotation tests to use rotatable controls
...
#9919 make rotateWithView optional so controls used for rotation tests must be made rotatable
2019-09-11 13:03:36 +01:00
ahocevar
d416866108
Use pointer events everywhere
2019-08-31 23:40:11 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00
ahocevar
3940b5ec88
Show only one world
2019-03-25 14:49:13 +01:00
ahocevar
703dadfcde
Fix ScaleLine control now that getPointResolution works correctly
2019-02-07 12:26:18 +01:00
ahocevar
b3bc78daec
Provide center in the correct projection
2019-02-07 12:23:45 +01:00
Tim Schaub
f2cab1fcbb
Give the map some height for scale line tests
2018-11-16 14:56:47 +01:00
ahocevar
2768884044
Make new behavior overridable; update docs and examples
2018-10-14 12:10:40 +02:00
Bobo Häggström
04f2174052
Add test for attributionsCollapsible property on source
2018-10-12 11:28:48 +02:00
James Cheese
9c5227850f
Remove events causing errors on touch-screen devices.
...
Fix for case #5226
2018-09-24 09:55:13 +01:00
James Cheese
49ee4bbd1c
Adding tests for ZoomSlider drags ending out of bounds.
...
As per the existing tests for the slider, ensure that listeners are unbound
correctly and values are as expected.
2018-09-24 09:55:13 +01:00
James Cheese
75947a6759
Revert changes from 7b687be
...
Adapted the changes to new class structures introduced since the original
deletion before committing, to ensure that everything compiles correctly.
2018-09-24 09:55:13 +01:00
Matthias Schiffer
321166849b
Consistently use lowercase HTML tag names
...
Unlike HTML, XHTML is case-sensitive.
2018-08-18 12:48:14 +02:00
ahocevar
b813937991
Access the correct element
2018-07-18 12:19:33 +02:00
Tim Schaub
fba2d100e9
Any falsey undefinedHTML retains the mouse position
2018-04-23 09:57:10 -06:00
Pete Schmitt
2719baa0f6
Replace new clearOnMouseOut option with undefinedHTML=undefined
...
API break: set `undefinedHTML` to special value `undefined` to retain
the most recent MousePosition value.
2018-04-23 08:47:24 +02:00
Pete Schmitt
2e3e7d282a
Adds option to retain MousePosition when pointer leaves viewport
2018-04-23 08:47:15 +02:00
Zsolt Ero
50a929d562
us missing
2018-04-10 21:09:43 +02:00
Zsolt Ero
5bde9fa278
added non-degree tests for all units
2018-04-10 21:06:36 +02:00
Zsolt Ero
ab946c2ed2
non-degree test added
2018-04-10 20:54:45 +02:00
Zsolt Ero
cedf01f647
imperial unit test
2018-04-10 20:45:09 +02:00
Tim Schaub
e3f199fe37
Export render from ol/control/ScaleLine
2018-02-18 23:06:51 -07:00
Tim Schaub
9ed3881f34
Named exports from ol/tilegrid
2018-02-09 09:30:16 -07:00
Pete Schmitt
500a27bd8b
Use const as of 5cb983c for happy linting
2018-01-12 14:24:08 -07:00
Pete Schmitt
acacad0515
Fix ScaleLine control for Projections in degrees
2018-01-12 14:08:55 -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
Tim Schaub
8cba211ecd
Rename _ol_pointer_PointerEvent_ to PointerEvent
2018-01-11 13:44:45 -07:00
Tim Schaub
aa89746c47
Rename _ol_proj_Projection_ to Projection
2018-01-11 13:33:41 -07:00
Tim Schaub
1552f27a43
Rename _ol_Tile_ to Tile
2018-01-11 12:06:58 -07:00
Tim Schaub
d2c0ea103e
Rename _ol_source_Tile_ to TileSource
2018-01-10 09:36:28 -07:00
Tim Schaub
1c1f008238
Rename _ol_View_ to View
2018-01-10 09:35:42 -07:00
Ron Young
9fa59d0735
rename map in tests
2017-12-21 23:11:42 -07:00
Marc Jansen
25946b4541
Rename _ol_layer_Tile_ to TileLayer
2017-12-19 08:45:00 +01:00
Tim Schaub
b7e9b8b461
Remove logos
2017-12-16 08:46:50 -07:00
Tim Schaub
6b859f17ae
Rename _ol_control_ZoomToExtent_ to ZoomToExtent
2017-12-14 13:08:48 -07:00
Tim Schaub
7a9a3651e1
Rename _ol_control_ZoomSlider_ to ZoomSlider
2017-12-14 13:08:14 -07:00
Tim Schaub
fb8fb42d81
Rename _ol_control_Zoom_ to Zoom
2017-12-14 13:07:36 -07:00
Tim Schaub
b79ead82d2
Rename _ol_control_ScaleLine_ to ScaleLine
2017-12-14 13:05:18 -07:00
Tim Schaub
6e5171f559
Rename _ol_control_Rotate_ to Rotate
2017-12-14 13:02:20 -07:00