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
Éric Lemoine
e0a018fa1e
Set crossOrigin to anonymous in mapbox-streets-v6-style
2018-10-23 10:56:33 +02:00
Frederic Junod
6d1cc3ba88
Use unpkg.com instead of rawgit.com
2018-10-10 15:11:07 +02:00
Frédéric Junod
7fd942a04c
Merge pull request #7724 from fredj/up_prism
...
Update prism library
2018-01-23 10:02:32 +01:00
Frederic Junod
9417e88c15
Remove extra comment
2018-01-19 13:25:54 +01:00
Frederic Junod
f638234bc6
Update prism library
...
To have better ES6 syntax highlighting.
The `from` keyword was not correctly rendered with our version.
2018-01-19 13:14:35 +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
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Andreas Hocevar
2ef5f99599
Remove bundling magic for Mapbox styles script
2017-08-21 09:48:51 +02: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
Frederic Junod
bd635ed01f
Load the examples resources with HTTPS
2016-08-23 13:52:16 +02:00
Frederic Junod
412dc0457e
Fix url to maki icons
2016-05-18 16:48:03 +02:00
Andreas Hocevar
19692ed60a
Warn when viewing an outdated example, and offer a redirect to latest
2016-05-12 13:40:48 +02: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
2e8f4806d2
Give the docs some breathing room
2015-11-18 09:56:14 -07:00
Tim Schaub
c3165252f8
Move title above map
2015-11-18 09:56:13 -07:00
Tim Schaub
58d22350d8
New template that removes Bootstrap and jQuery from code snippet
2015-11-18 09:56:13 -07:00
Andreas Hocevar
a020251f69
Do not use fractional stroke widths
2015-11-10 18:43:28 +01:00
Andreas Hocevar
a35b3a5f52
Add default argument to getRendererFromQueryString
2015-11-06 16:58:58 +01:00
Andreas Hocevar
4be89715ed
Add credit/attribution for the example style function
2015-10-28 10:29:04 +01:00
Andreas Hocevar
c0c5443782
Add example showing the use of Mapbox vector tiles
2015-10-28 10:29:01 +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
Marc Jansen
53d079ed95
Cosmetic changes to example html / css
2015-10-01 12:35:53 +02:00
jonataswalker
d939fcec3f
Adjust iframe's position of GetFeatureInfo examples
2015-09-28 13:49:34 -03:00
Tim Schaub
ab24d9043e
Minimal source control links
2015-08-07 12:46:15 -06:00
Tim Schaub
d1f19b8e0d
Use the latest Bootstrap
2015-06-30 22:30:28 -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
Marc Jansen
fedceb9a05
Automatically add links to API-docs in examples
...
When we create the examples, we know exactly which specific `ol.…` symbols
we `goog.require(…)`. We can create links to the API documentation of these
symbols automatically.
2015-04-17 21:50:50 +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
Tim Schaub
c8adf22438
Use DOM methods instead of jQuery in common example script
2015-04-17 06:22:38 -06:00
Tim Schaub
89f5e711e6
Example sources in the examples dir
2015-04-17 06:22:38 -06:00