Commit Graph

13954 Commits

Author SHA1 Message Date
Maximilian Krög
5fb69b1de1 Some more small code improvements 2022-08-09 00:28:41 +02:00
Maximilian Krög
5b8d810f80 Use const in more places 2022-08-09 00:25:30 +02:00
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
f2e82ba1e4 Fix default icon anchor with https icon url 2022-08-06 11:11:24 +02:00
MoonE
854300181a Merge pull request #13937 from MoonE/use-nicer-functions
Use nicer functions, remove old code
2022-08-05 21:19:38 +02:00
Andreas Hocevar
b81dd0b3bc Render vector tile vectors in correct sequence for the postrender event 2022-08-05 15:06:38 +02:00
Maximilian Krög
403b06b438 Use RegExp#test intead of String#match 2022-08-05 01:49:16 +02:00
Maximilian Krög
bb3c5bf144 Use String#startsWith instead of String#indexOf 2022-08-05 01:49:16 +02:00
Maximilian Krög
0b945f2321 Use includes instead of indexOf 2022-08-05 01:49:01 +02:00
Maximilian Krög
31ed30923d Remove array.includes 2022-08-05 01:26:25 +02:00
Maximilian Krög
e1e19cbd03 Remove workaround for missing TypedArray.from function 2022-08-04 23:36:00 +02:00
Maximilian Krög
ef82bbd83a Remove check for context.setLineDash 2022-08-03 22:25:19 +02:00
Tim Schaub
58ca0d8098 Merge pull request #13930 from mike-000/remove-deprecated-tilePixelRatio
Remove deprecated DataTile source `tilePixelRatio`
2022-08-03 11:11:12 -06:00
mike-000
02807c8f95 Remove deprecated tilePixelRatio 2022-08-03 17:48:24 +01:00
mike-000
27a9f056e0 remove deprecated imageSmoothing 2022-08-03 13:25:43 +01:00
Tim Schaub
1bd9201fed Style updates for examples and API docs 2022-07-31 19:07:46 -06:00
Tim Schaub
59fa54cd5a Merge pull request #13908 from tschaub/style
Uniformly grayscale controls
2022-07-31 13:14:59 -06:00
Tim Schaub
85ef563ba8 Remove PluggableMap 2022-07-31 10:08:13 -06:00
MoonE
b534368394 Merge pull request #13911 from MoonE/remove-mouse-position-undefined-html
Remove MousePosition's deprecated undefinedHTML option
2022-07-31 10:09:31 +02:00
Tim Schaub
6491b161a9 Uniformly uncolored 2022-07-30 19:29:29 -06:00
Maximilian Krög
7c81cb41a8 Remove IconImage color fallback for IE 2022-07-31 02:29:20 +02:00
Maximilian Krög
c90c4c84c5 Remove MousePosition's deprecated undefinedHTML option
Simplify the placeholder option to only accept strings or undefined.
2022-07-31 02:23:35 +02:00
Maximilian Krög
5f8a83b6d8 Remove fullscreen handling fallback for IE 2022-07-30 22:59:26 +02:00
Maximilian Krög
e56bda5848 Remove IE css fallback 2022-07-30 22:57:51 +02:00
Maximilian Krög
6a6d2cd612 Remove IE image smoothing fallback 2022-07-30 22:36:32 +02:00
MoonE
37aaf8ed4b Merge pull request #13902 from MoonE/type-safe-collection
Improve Collection type-safety
2022-07-30 21:38:48 +02:00
Maximilian Krög
75c17e55b1 Improve Collection type-safety 2022-07-30 21:30:35 +02:00
Maximilian Krög
6e4e49644d Prevent inserting undefined into Collection 2022-07-30 20:27:36 +02:00
Tim Schaub
0c0e92fcbd Re-export the link interaction from the interactions module 2022-07-30 10:59:45 -06:00
MoonE
e17640c95a Merge pull request #13905 from MoonE/replace-enums
Replace enums with typedefs
2022-07-30 18:12:34 +02:00
Tim Schaub
ab48290bd7 Accept an object literal for static layer styling 2022-07-30 09:48:10 -06:00
Maximilian Krög
14c2c31d4c Replace RasterOperationType enum with typedef 2022-07-30 15:06:13 +02:00
Maximilian Krög
2caa071a08 Replace MouseWheelZoom Mode enum with typedef 2022-07-30 15:06:12 +02:00
Maximilian Krög
7ac61fdc70 Replace proj/Units enum with typedef 2022-07-30 15:06:12 +02:00
Maximilian Krög
361f1ab837 Replace VectorTileRenderType enum with typedef 2022-07-30 15:06:12 +02:00
Maximilian Krög
7f2f789d7f Remove deprecated 'image' render mode option 2022-07-30 15:06:12 +02:00
Maximilian Krög
806843f449 Don't fire remove event when Collection remains unchanged 2022-07-30 03:17:48 +02:00
Maximilian Krög
217230172b Make VectorSource Options generic 2022-07-30 03:13:37 +02:00
Tim Schaub
1c1270cba4 Merge pull request #13899 from tschaub/lazy-image
Wait until first load to create icon image
2022-07-29 18:27:46 -06:00
MoonE
dce24cfe40 Merge pull request #13901 from MoonE/text-types
Make Text options typesafe
2022-07-30 01:34:28 +02:00
Maximilian Krög
a076899470 Make Text options typesafe 2022-07-29 21:24:46 +02:00
Tim Schaub
d31f40d6ce Wait until first load to create icon image 2022-07-29 13:24:17 -06:00
mike-000
aaed855740 Align default intervals to minutes and seconds 2022-07-29 11:26:54 +01:00
Tim Schaub
55e3ed6f74 Merge pull request #13893 from tschaub/grat
Omit minutes and seconds from HDMS formatting if zero
2022-07-28 13:47:29 -06:00
Tim Schaub
25d47ed752 Use Object.assign 2022-07-28 13:23:16 -06:00
Tim Schaub
82dfba2520 Omit minutes and seconds if zero 2022-07-28 08:13:05 -06:00