Maximilian Krög
358d6736d1
Make examples work with ie11
2020-12-29 23:04:15 +01:00
Andreas Hocevar
aa918d44c5
Use Parcel v2 in copy/paste example code
2020-10-26 11:55:14 +01:00
Maximilian Krög
3be9435a70
Remove unused codepen resources, duplicate bootstrap / jquery js
...
Use push instead of setting by index, gets rid of some empty lines generated by sparse
resource array
2020-07-27 23:22:50 +02:00
Maximilian Krög
8b733c2eba
Cleanup experimental notice
...
With bootstrap js always included there is no need to add own js to dismiss it.
Only generate the notice for experimental pages, no need to have js for that.
2020-07-26 19:27:11 +02:00
Maximilian Krög
9844483364
Remove tags / duplicate url from exported info script
...
The tags are not used currently.
Adding the query string to the urls doesn't make sense as far as I understand
it.
2020-07-26 19:25:56 +02:00
Maximilian Krög
9093478016
Add modal to tag count with direct links to other examples
2020-07-25 20:40:20 +02:00
Maximilian Krög
50404ca409
Add number of occurence to tags
...
It can be a bit frustrating to click on a tag only to realise it was the
only example with that tag.
2020-07-25 14:00:53 +02:00
Andreas Hocevar
3a269045f2
Do not extract comments to avoid asset name conflicts
2020-07-22 21:53:38 +02:00
Maximilian Krög
557563f331
Update scoring / indexing code
...
Add dict / word as parameters to updateScore function so it
does not need to be created in each loop, and shorten it a bit.
2020-07-17 21:52:35 +02:00
Maximilian Krög
84463c3030
Make example builds repeatable
2020-07-17 21:52:27 +02:00
Maximilian Krög
dc05cacefa
Prettier code
...
This also fixes two undeclared variables and the regex is only created once per word
2020-07-17 21:18:53 +02:00
Maximilian Krög
681fc155a7
Move js code into separate file to benefit from code analysis
2020-07-17 21:18:47 +02:00
Tim Schaub
7f8a1b64bd
Update usage of copy-webpack-plugin
2020-05-18 10:16:15 -06:00
Tim Schaub
19c5dd1ff6
Remove personal Mapbox key
2020-05-16 13:25:29 -06: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
Andreas Hocevar
e951a3c7d5
Fix dependency source management for examples
2020-04-06 16:51:22 +02:00
Andreas Hocevar
bc1be50cbc
Add worker support to examples
2020-03-23 12:47:25 +01:00
Andreas Hocevar
7fee85734a
Add custom element example
2020-02-18 21:32:31 +01:00
roemhildtg
9908433cfd
add tags to example docs
...
#10022
2019-10-23 22:06:46 -05:00
Tim Schaub
443213e175
Show notice when using experimental features
2019-09-26 20:06:28 +02:00
Tim Schaub
c0339f167b
Use mode from the loader context
...
See https://github.com/webpack/webpack/pull/9140 .
2019-05-20 10:33:59 -06:00
Tim Schaub
0d489f2ea9
Minify worker in examples for a production build
2019-05-16 10:41:33 -06:00
Tim Schaub
05f13bb363
Add worker loader to the examples
2019-05-15 16:49:38 -06:00
ahocevar
f0d3f80663
Support scoped packages as dependencies
2019-01-11 18:16:23 +01:00
ahocevar
9372bc9157
Add package.json source
2019-01-10 18:31:26 +01:00
Frederic Junod
63de0aefbe
Remove '.js' from the imports
2018-11-27 17:00:18 +01:00
Frederic Junod
4a3f70c09b
Revert "Simplify import path in examples"
...
This reverts commit 79c8afdba8 .
2018-11-27 16:49:55 +01:00
Frederic Junod
79c8afdba8
Simplify import path in examples
...
To have the same path (starting with `ol/`, without `.js`) as in the documentation.
The support was added in the webpack config in #8928
2018-11-26 17:18:52 +01:00
Tim Schaub
b3903df156
Use the composite renderer
2018-11-16 14:56:47 +01:00
ahocevar
391fff38aa
Add vector tile example using ol-mapbox-style
2018-11-13 15:47:11 +01:00
ahocevar
071a02556e
Fix example builder
2018-10-30 18:25:01 +01:00
ahocevar
8e9e0ae848
Do not minify examples that inject code into workers
2018-08-29 08:56:24 +02:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
ahocevar
39261af940
Keep function names when building examples
2018-07-22 17:39:20 +02:00
ahocevar
f3f0403cec
Transpile examples for use with IE 11
2018-07-08 23:31:04 +02:00
ahocevar
84a88616a8
Match filename only when seraching source
2018-07-08 23:31:04 +02:00
ahocevar
57110058fd
Move css to src/ol
2018-06-21 11:16:57 +02:00
ahocevar
2837272590
Make webpack4 module structure work
2018-06-08 12:58:16 +02:00
ahocevar
649b7be4c2
Make common chunk (and sourcemap) work
2018-06-08 12:57:38 +02:00
Tim Schaub
48cbca1f6e
Upgrade to Webpack 4
2018-06-07 11:24:39 +02:00
Tim Schaub
1991150079
Updates to get the examples building
2018-05-11 14:02:55 -06:00
Tim Schaub
1551bfffe0
Use list for cloak entries
2018-04-23 20:51:01 -06: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
Andreas Hocevar
9f1ebbb852
Add and use new proj4.register function
2017-12-15 19:17:29 +01:00
Tim Schaub
8a9bbd6264
Separate example scripts for dev and prod
2017-12-12 06:56:19 -07:00
Tim Schaub
93411a2b91
Script to build examples
2017-12-12 06:55:17 -07:00