Commit Graph

34 Commits

Author SHA1 Message Date
Matthias Mohr
c2fc1f85bf Load GeoTiff from Blob #13189 #13703 2022-06-01 23:49:01 +02:00
mike-000
a6860118c7 Support formats that read ArrayBuffer sources
Drag-and-Drop support for formats that read arraybuffer sources
Add TextDecoder to polyfills
Add custom Drag-and-Drop examples for KMZ and MVT
Add sample download and KML styles option to existing example
Test arraybuffer and constructed formats
2020-11-09 17:02:31 +00:00
mike-000
1f991b980b Treat svg as binary resource 2020-11-04 20:59:54 +00:00
mike-000
c3378466fe in IE use textContent instead of innerText 2020-09-22 12:14:19 +01:00
mike-000
b60574261c Fix binary data, ./ relative path syntax, and IE 2020-09-17 22:09:31 +01:00
Maximilian Krög
4deb3a2dfc Do not load resources multiple time for codepen 2020-07-26 19:31:59 +02:00
Maximilian Krög
e51643dfca Show correct link for codepen button 2020-07-26 19:31:59 +02:00
Maximilian Krög
e39e3ea152 Update prism js version
Use latest version of prism, add json formatter, copy to clipboard plugin,
and line-numbers.
Now the clipboard js is automatically loaded by prism it  it not included
and the buttons are automatically initialized. Though I added some css to
match the previous style.
2020-07-26 19:31:59 +02:00
Tim Schaub
cd27a13a42 Show the main.js right below the map 2020-05-03 16:27:51 -06:00
Andreas Hocevar
bc1be50cbc Add worker support to examples 2020-03-23 12:47:25 +01:00
Simon Seyock
42d8ea3a9a uploading local resources to codesandbox 2019-09-26 22:17:18 +02:00
Frederic Junod
2f28f89c59 Create codesandbox using the 'parcel' template
The default template is `create-react-app` and this one ignores the `head` tag defined in out `index.html`
2019-03-14 15:08:01 +01:00
ahocevar
138cc55b34 Add Edit button for editing in codesandbox 2019-01-10 22:14:05 +01:00
ahocevar
9372bc9157 Add package.json source 2019-01-10 18:31:26 +01:00
ahocevar
f368fa1a28 Improve layout 2019-01-09 21:50:50 +01:00
ahocevar
c4c6f84bca Separate html and js example code 2019-01-09 21:50:49 +01:00
Frederic Junod
599d3b6c0c Replace ZeroClipboard with Clipboard.js 2017-12-17 09:53:42 +01:00
Tim Schaub
4515b8fe70 Remove dev/prod switcher from examples (all have sourcemaps now) 2017-12-12 06:56:19 -07:00
Thomas Chandelle
89dd4af9cb Remove JSFiddle 2017-02-08 09:04:16 +01:00
Thomas Chandelle
0850e612c5 Add link to codepen in examples 2017-01-16 11:58:58 +01:00
Peter Robins
7d5635092a Remove getRendererFromQueryString from examples 2016-09-16 09:34:30 +00:00
jonataswalker
8b2259bf25 Fix Examples layout page 2016-03-02 14:37:19 -03:00
jonataswalker
9dbf9541e9 Add navigation header to Examples page 2016-02-13 12:39:42 -02:00
Tim Schaub
58d22350d8 New template that removes Bootstrap and jQuery from code snippet 2015-11-18 09:56:13 -07:00
Andreas Hocevar
a35b3a5f52 Add default argument to getRendererFromQueryString 2015-11-06 16:58:58 +01:00
Andreas Hocevar
e242c2ca1d Revert "Merge pull request #4217 from ThomasG77/clipboardjs-replacement"
This reverts commit 82e989b652, reversing
changes made to 0e83c90377.
2015-10-06 16:17:43 +02:00
ThomasG77
7192a6d1a5 Replace ZeroClipboard with Clipboard.js to remove flash dependency 2015-10-05 01:23:20 +02:00
Tim Schaub
ab24d9043e Minimal source control links 2015-08-07 12:46:15 -06:00
Tim Schaub
e65800ca63 Always show links to related API documentation
This is based on the assumptions that

 * our examples always goog.require something ol.* (otherwise why have the example)
 * our examples only goog.require exportable symbols or "namespaces" for exportable symbols (e.g. ol.control for the defaults function)
 * we have an API doc page for each exportable symbol and each "namespace" that has exportable symbols (e.g. ol.Map.html and ol.control.html)

It may be that this assumption proves to be wrong, but it would be nice to avoid the extra network traffic and layout shifting when examples load.
2015-04-17 15:41:38 -06:00
Marc Jansen
0fcd312812 Check if API-docs point to existing resources 2015-04-17 21:54:15 +02:00
Tim Schaub
14b7edb140 Keep the examples simple
Please write blog posts, create tutorials, or develop workshops that show off cool ways to develop applications that use OL3.  The examples should be kept very simple.  This download functionality is neat, but it's really a gratuitous use of non-map related functionality.  While it does demonstrate the use of `format.writeFeatures()`, this is buried in too much additional code that is not accessible (buried in resources/common.js) and not really related to mapping things.  If we want to have examples that demonstrate how formats can be used to serialize features, a simple textarea would suffice as the target.
2015-04-17 09:55:44 -06:00
Tim Schaub
c5cf709c55 The common.js script makes a "common" object available 2015-04-17 09:49:53 -06:00
Tim Schaub
eff14b06e0 Refactor common example script and run the linter on it 2015-04-17 09:43:46 -06:00
Tim Schaub
f2600977ae Avoid words with contentious alternative spellings 2015-04-17 09:43:37 -06:00