Maximilian Krög
74a8759e3b
Fix topolis example
...
toastr did not work because jquery has to bo loaded before toastr.
2022-08-14 16:44:43 +02:00
Maximilian Krög
839e1d1c65
Use non-symlinked ol.css for example-builder
...
File watching does not seem to work with symlinks
2022-08-14 16:36:48 +02:00
Maximilian Krög
bc65f2d704
Update FontAwesome to v6.1.2
2022-08-13 23:10:31 +02:00
Tim Schaub
9dff55a8ac
Build the website
2022-08-10 10:35:07 -06:00
Maximilian Krög
2c9cf00126
Fix source formatting for some examples
...
For some css or html files a missing new line at end of file will
concatenate the last line with the following style or script tag
2022-08-08 22:17:17 +02:00
Maximilian Krög
7404397529
Improve example-builder code
...
Reduce amount of async calls and some other small changes
2022-08-08 22:13:48 +02:00
Tim Schaub
6bd68241e3
Include babel for codesandbox
2022-08-01 12:04:39 -06:00
Tim Schaub
1bd9201fed
Style updates for examples and API docs
2022-07-31 19:07:46 -06:00
Maximilian Krög
d747216180
Fix editing of export-map example on codesandbox
2022-07-30 23:27:21 +02:00
Andreas Hocevar
1e15daa354
Use vite instead of parcel
2022-07-26 22:00:09 +02:00
Andreas Hocevar
b5afd06edf
Also look for example dependencies in dependencies
2022-07-26 18:29:16 +02:00
Andreas Hocevar
392ca5706d
More forgiving import regex
2022-07-26 18:28:06 +02:00
Maximilian Krög
d63a7ae497
Allow nodejs 12 to build the examples again
2021-12-31 11:06:43 +01:00
Andreas Hocevar
b86f9df8bd
Account for removed default export of marked
2021-11-08 16:35:23 +01:00
Maximilian Krög
07fa1adfe8
Use more structured yaml for examples source path
2021-11-02 22:10:27 +01:00
Maximilian Krög
a10bc713f2
Configure additional sources displayed below map
2021-11-02 00:21:12 +01:00
Maximilian Krög
ca9fc92f70
Example builder code cleanup
...
Add function for transforming js source and cloaking
Use to parse source for import statements
Use now released parcel 2.0.0
2021-11-02 00:21:12 +01:00
Maximilian Krög
46d9e8db8e
Fix codesandbox edit for offscreen-canvas example
2021-11-02 00:21:12 +01:00
mike-000
a2291abf1d
also transpile .mjs
2021-10-13 10:17:50 +01:00
Tim Schaub
9224678627
Simplified ESLint config
2021-10-12 09:03:53 -06:00
Andreas Hocevar
c934f08866
Update geotiff
2021-09-23 13:24:58 +00:00
Andreas Hocevar
ccb9ff6f37
Configure builds so they actually work
2021-09-10 18:15:08 +02:00
Andreas Hocevar
b4d93141ec
Do not mangle properties for built examples
2021-09-10 16:28:42 +02:00
Andreas Hocevar
fa8aa81840
Continue supporting IE11 in examples and legacy buld
2021-09-10 13:40:25 +02:00
Andreas Hocevar
05eac3e384
Use worker for GeoTIFF decoding
2021-08-18 11:24:27 +02:00
Tim Schaub
af80477c1d
Rendering raster tiles with WebGL
2021-08-18 11:24:23 +02:00
Maximilian Krög
687b131714
Fix example and legacy build with nodejs 16.6
2021-08-01 01:13:26 +02:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Tim Schaub
c301d2413b
Modules all the way
2021-05-01 10:17:04 -06:00
Maximilian Krög
85ea74a383
Fix building of examples with latest copy-webpack-plugin
2021-04-15 00:20:59 +02:00
Tim Schaub
71c18d4444
Merge pull request #12176 from bz2/mangle_private_members
...
Allow private class members to be mangled
2021-04-07 18:08:53 -06:00
Maximilian Krög
9d773c8f19
Build for ie11 again
2021-04-05 02:55:17 +02:00
Martin Packman
6ab44e9aea
Allow private class members to be mangled
...
Openlayers classes use an underscore suffix convention to mark class
members as private. These are undocumented implementation details and
presumably unsafe for code outside the class to rely on.
Allowing javascript minimisation to change these names gives 5% bundle
size reduction to the library.
2021-04-03 17:57:11 +01:00
Maximilian Krög
e6dacd07cd
Refresh available examples before each compilation
...
This makes it possible to pickup new examples and prevents compilation
errors when an example is removed. This is especially handy when switching
branches. Otherwise the dev server has to be restarted each time.
2021-04-03 18:18:28 +02:00
Tim Schaub
54e981f59a
Update webpack
2021-03-22 13:42:05 -06:00
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