Commit Graph

26425 Commits

Author SHA1 Message Date
Maximilian Krög b1a9f765fc Parse the style in the constructor.
This detects errors earlier and allows the caller to handle the thrown exception.
Remove assertion 65 as it should no longer be needed.
2019-10-03 14:36:48 +02:00
Maximilian Krög d0cd1064ff Also check predefined styles for validity. 2019-10-03 03:02:58 +02:00
Maximilian Krög b4a996e760 Catch errors in style definition
Do not replace the layer if the style is invalid.
Thrown errors are caught and the layer will not be changed.
2019-10-03 01:59:42 +02:00
Maximilian Krög dee114d4c4 Guard against JSON.parse errors.
Also show successful style parse status after a style error was corrected
but it is the same style as previously.
2019-10-03 01:59:42 +02:00
Maximilian Krög db34a338d6 Reset status message when selecting from select element. 2019-10-03 01:59:21 +02:00
Maximilian Krög 0eac5007e8 Reserve the height for the style parse messages. 2019-10-03 01:59:00 +02:00
Maximilian Krög c1921a6b16 Preselect the 'circles' style in the select input
The text in the editor element already is from the circles style..
2019-10-03 01:57:49 +02:00
Maximilian Krög dc28590cff Remove invalid option from style select
When this option was selected the text field contained 'undefined'
as it is not one of the predefined styles.
2019-10-03 01:48:45 +02:00
Frédéric Junod 3ab32ff744 Merge pull request #10076 from fredj/rm_typecast
Remove unnecessary typecast
2019-10-02 14:57:55 +02: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
Tim Schaub fa0258a323 Merge pull request #10074 from mike-000/patch-2
Remove offsets from mouse position calculation
2019-10-01 09:29:47 -06:00
mike-000 4f83392b76 Remove offsets from mouse position calculation
and remove space
2019-10-01 15:55:30 +01:00
mike-000 8a04f5059d Remove offsets from mouse position calculation
Fixes #10073

Remove unneeded offsets from mouse position calculation as box position was centered in #9919
2019-10-01 15:47:36 +01:00
Frédéric Junod 92f70c225f Merge pull request #10072 from fredj/better_typing
Better typing
2019-10-01 15:27:27 +02:00
Frederic Junod 41b7893523 Mark properties as nullable 2019-10-01 10:47:07 +02:00
Frederic Junod 89becd4c6d Remove unused variables 2019-10-01 08:34:00 +02:00
Tim Schaub 7eb60fae23 Merge pull request #10070 from openlayers/release-v6.0.1
Changes for 6.0.1
2019-09-30 12:44:56 -06:00
Tim Schaub d7acbc40d5 Changes for 6.0.1 v6.0.1 2019-09-30 12:35:08 -06:00
Olivier Guyot 176dccd6df Merge pull request #10060 from mike-000/patch-1
Ensure zoom level is not less than minimum integer zoom level for extent
2019-09-30 17:34:45 +02:00
Tim Schaub 526679433e Merge pull request #10045 from tschaub/immediate-geographic
Make the immediate API work with a user projection
2019-09-30 09:27:40 -06:00
Tim Schaub b64ab8a6b2 Rendering test for immediate API with geographic coordinates 2019-09-30 08:52:07 -06:00
Tim Schaub 6c6c4ab1df Mark example as experimental 2019-09-30 08:45:44 -06:00
Tim Schaub d3b47c794e Make the immediate API work with a user projection 2019-09-30 08:28:50 -06:00
Andreas Hocevar 8aa4a59fcf Merge pull request #10068 from ahocevar/jsdoc-plugin
Update jsdoc-plugin-typescript to 2.0.3
2019-09-30 08:47:07 +02:00
Andreas Hocevar 61e8b39626 Update jsdoc-plugin-typescript to 2.0.3 2019-09-29 21:46:50 +02:00
Tim Schaub 8c7aafd4df Merge pull request #10063 from tschaub/does-not-throw
Use the same spelling used elsewhere
2019-09-29 14:38:48 -05:00
Andreas Hocevar 37f9a6a6e9 Merge pull request #10067 from KlausBenndorf/jsdoc-event-annotations
fixed jsdoc type annotations
2019-09-29 20:02:24 +02:00
Simon Seyock 2e1dee1994 fixed jsdoc type annotations 2019-09-29 19:35:11 +02:00
Tim Schaub ec9dcbee88 Merge pull request #10065 from openlayers/greenkeeper/mocha-6.2.1
Update mocha to the latest version 🚀
2019-09-29 10:36:09 -05:00
Tim Schaub 211c2ee531 Merge pull request #10064 from openlayers/greenkeeper/handlebars-4.4.0
Update handlebars to the latest version 🚀
2019-09-29 09:21:00 -05:00
greenkeeper[bot] e1d3560dbf chore(package): update lockfile package-lock.json 2019-09-29 14:14:51 +00:00
greenkeeper[bot] 1d6284725d chore(package): update mocha to version 6.2.1 2019-09-29 14:14:39 +00:00
greenkeeper[bot] c69201d5ad chore(package): update lockfile package-lock.json 2019-09-29 13:32:46 +00:00
greenkeeper[bot] 92e025b8e5 chore(package): update handlebars to version 4.4.0 2019-09-29 13:32:42 +00:00
Tim Schaub 7c8b2215d4 Remove unused code 2019-09-29 07:05:48 -06:00
Tim Schaub d2b25533c2 Use the same spelling used elsewhere 2019-09-29 07:37:45 -05:00
mike-000 733b883ac0 Correct expected result to reflect #10054
Correct world extent constrained resolution test to expect integer zoom level
2019-09-29 12:19:42 +01:00
mike-000 eaa5af2c7a Fix for #10054
Ensure zoom level is not less than minimum integer zoom level for extent
2019-09-29 12:00:08 +01:00
Tim Schaub 1260dfc153 Merge pull request #10057 from tschaub/fewer-extensions
Remove unused test extensions
2019-09-28 19:02:02 -05:00
Tim Schaub 76df721b98 Merge pull request #10056 from tschaub/uncalled
Remove called assert extension
2019-09-28 19:01:15 -05:00
Andreas Hocevar a55fec2759 Merge pull request #10055 from ahocevar/ensure-tile-load-sequence
Ensure proper tile load sequence
2019-09-29 01:34:59 +02:00
Tim Schaub c984b28752 Remove unused test extensions 2019-09-28 12:02:48 -05:00
Tim Schaub 3b02f5597e Remove called assert extension 2019-09-28 18:55:38 +02:00
Andreas Hocevar 40f8510083 Merge pull request #10052 from openlayers/greenkeeper/handlebars-4.3.4
Update handlebars to the latest version 🚀
2019-09-28 15:33:38 +02:00
Andreas Hocevar 7f8fdd6219 Ensure proper tile load sequence 2019-09-28 15:24:37 +02:00
greenkeeper[bot] ea0e1bff29 chore(package): update lockfile package-lock.json 2019-09-28 11:39:45 +00:00
greenkeeper[bot] 9b2089bc8f chore(package): update handlebars to version 4.3.4 2019-09-28 11:39:41 +00:00
Tim Schaub 32644c7ba9 Merge pull request #10051 from tschaub/unchained
Simplify the assertion
2019-09-28 08:17:09 +02:00
Tim Schaub 80b4f51d6e Merge pull request #10050 from tschaub/expect-fail
Use expect().fail() instead of expect.fail()
2019-09-28 08:15:42 +02:00
Tim Schaub c8456868bd Simplify the assertion 2019-09-27 23:49:57 +02:00