Maximilian Krög
f7cb9b9fdf
Invert displayed scale for very high zoom levels
...
This prevents a scale of '1 : 0' being displayed and instead displays
'scale : 1'
2022-08-06 23:16:25 +02:00
Maximilian Krög
564d9d7685
Set pointer-event: none for ScaleLine
...
There is no reason to interact with this control and for the
`bar` option the blocked rect may be unexpectedly large
2022-08-06 23:16:25 +02:00
Maximilian Krög
ff79897f06
Fix default value docs for ScaleLine class option
2022-08-06 23:16:25 +02:00
Maximilian Krög
97f0e70447
Remove unnecessary code
...
Remove unnecessary nested div element
Don't number to string to number
2022-08-06 23:16:25 +02:00
Maximilian Krög
e0cbb6daa8
Cleanup ScaleLine code
2022-08-06 23:16:15 +02:00
Maximilian Krög
7ac61fdc70
Replace proj/Units enum with typedef
2022-07-30 15:06:12 +02:00
Maximilian Krög
ac6edc704a
Replace ScaleLine Units with typedef
2022-07-19 22:56:46 +02:00
Maximilian Krög
d957bdeb86
Fix ScaleLine markup
2022-07-16 18:56:59 +02:00
jeanpierre
c8a28848dd
change class names
2022-07-16 16:57:14 +02:00
jeanpierre
4d2b2c9650
style for scalebar
...
with new class in css and remove the hardcoded background
Co-Authored-By: Andreas Hocevar <211514+ahocevar@users.noreply.github.com >
2022-07-16 15:53:27 +02:00
jeanpierre
d3861b0922
scaleBarColors a new option for scalebar colors
2022-07-15 19:14:46 +02:00
jipexu
2c24ceef86
NM symbol unit
...
https://github.com/openlayers/openlayers/issues/13497
please check if it is enough ...
2022-04-10 17:24:08 +02:00
Bart van den Eijnden
5d5deee517
Update src/ol/control/ScaleLine.js
...
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com >
2022-04-01 13:48:55 +02:00
Bart van den Eijnden
aff459bc02
Add optional maxWidth for ScaleLine control
2022-04-01 13:26:18 +02:00
mike-000
c8a7a83e1f
correct getScaleForResolution()
2021-12-29 22:43:53 +00:00
Simon Seyock
ce4f6ccb0d
OnSignatures return more specific type
2021-09-10 16:11:38 +02:00
Andreas Hocevar
e9e664f3c9
Add typed signature for Observable#un()
2021-07-10 11:28:50 +02:00
Simon Seyock
d914006d51
Add signatures for once.
2021-07-10 11:28:49 +02:00
Simon Seyock
1870a64984
Add CombinedOnSignature.
2021-07-10 11:28:49 +02:00
Simon Seyock
e9a161740a
controls and interactions.
2021-07-10 11:28:48 +02:00
Simon Seyock
c8f43050c4
Revert "Merge pull request #12416 from ahocevar/eventtype-generics"
...
This reverts commit b6c143deb2 , reversing
changes made to 7777821df5 .
2021-07-10 11:28:46 +02:00
Andreas Hocevar
b6c143deb2
Merge pull request #12416 from ahocevar/eventtype-generics
...
Use generics to limit event types in on(), once() and un()
2021-06-21 09:36:25 +02:00
Andreas Hocevar
018ad97f25
Use generics to limit event types in on(), once() and un()
2021-06-20 22:25:47 +02:00
Andreas Hocevar
343e0ffce9
Replace getChangeEventType() with add/removeChangeListener methods
2021-06-19 23:16:26 +02:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Simon Seyock
f590cb3473
Harmonize jsdoc
2021-02-02 12:14:56 +01:00
mike-000
857f4e01ac
use precise international inchesPerMeter
...
test scalebar text
2020-08-07 10:49:31 +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
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
Andreas Hocevar
b0f20d6bd6
Use imports for enum types
2020-04-15 10:53:23 +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
mike-000
fb84426411
use constant for default dpi
2020-04-03 17:17:11 +01:00
mike-000
6aa953b571
base minWidth on default dpi & remove setMinWidth
2020-04-03 17:11:25 +01:00
mike-000
e2ac566c05
Correct resolution used for scale. Add dpi option.
...
Also add setDpi and setMinWidth methods
Add Print to scale example
2020-04-02 14:59:54 +01:00
Andreas Hocevar
f8f7f83be7
Do not expose static render function of controls
2020-01-29 20:21:08 +01: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
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02: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
ahocevar
703dadfcde
Fix ScaleLine control now that getPointResolution works correctly
2019-02-07 12:26:18 +01:00
Johannes Weskamm
347e721025
Fixup prop evaluation
2019-01-21 09:33:29 +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
Frederic Junod
9ab201642c
Simplify import path in ol/control/
2018-11-05 16:26:45 +01:00
Frederic Junod
939aa565b5
Change ol/control/ScaleLine getUnits return type
...
Remove `undefined` from the return type: the default value is 'metric'
2018-10-17 10:48:19 +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
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
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00