Maximilian Krög
8d1d1b0680
Update examples to use new bootstrap tooltip
2022-08-22 19:26:23 +02:00
Andreas Hocevar
f500c354ee
Close popup when map is moved
2021-01-27 13:54:22 +01:00
Andreas Hocevar
bd93ef204f
Simplify icon example
2021-01-27 12:23:02 +01:00
Maximilian Krög
8645dbc333
Use https for mapbox tiles
2020-07-30 22:28:48 +02:00
Maximilian Krög
594ba4a0ab
Use bootstrap 4.5.0 in all examples
2020-07-27 20:15:55 +02: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
ahocevar
ddaaf6a860
Update geography class urls
2019-06-14 12:53:52 +02:00
Frederic Junod
cd3e65e3df
Remove unneeded type cast in examples
2018-12-07 09:55:09 +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
Frederic Junod
a8fa6e53ff
Remove now unneeded single quotes in examples
2018-06-20 17:11:59 +02:00
Tim Schaub
cda0fe6e41
Re-export style constructors from ol/style
2018-04-24 09:37:27 -06:00
Tim Schaub
910004b940
Re-export layer constructors from ol/layer
2018-04-24 09:06:30 -06:00
Tim Schaub
81693cefbf
Correct type for Icon options
2018-04-19 18:11:12 -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
Tim Schaub
fb22c587f8
Rename _ol_style_Icon_ to Icon
2018-01-11 13:25:01 -07:00
Tim Schaub
4f4c90fc20
Rename _ol_style_Style_ to Style
2018-01-11 13:22:43 -07:00
Frederic Junod
98f5a0c04e
Rename _ol_Overlay_ to Overlay
2018-01-11 14:32:58 +01:00
Tim Schaub
57febf2712
Rename _ol_source_TileJSON_ to TileJSON
2018-01-10 09:36:29 -07:00
Tim Schaub
ca6ea355e6
Rename _ol_source_Vector_ to VectorSource
2018-01-10 09:36:28 -07:00
Tim Schaub
45c6e43b42
Rename _ol_layer_Vector_ to VectorLayer
2018-01-10 09:36:23 -07:00
Tim Schaub
1c1f008238
Rename _ol_View_ to View
2018-01-10 09:35:42 -07:00
Tim Schaub
22fce4f97b
Rename _ol_Feature_ to Feature
2018-01-10 09:35:35 -07:00
Ron Young
b8b64ac655
rename in examples
2017-12-21 23:11:42 -07:00
Marc Jansen
25946b4541
Rename _ol_layer_Tile_ to TileLayer
2017-12-19 08:45:00 +01:00
Tim Schaub
eadec38ae2
Rename _ol_geom_Point_ to Point
2017-12-14 08:49:10 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07: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
Frank Rowe
30482f023e
fix icon example to anchor popup to feature location
2016-06-02 15:28:37 -04:00
Tim Schaub
8c38d22b60
Lint free examples
2016-01-11 18:56:09 -08:00
Tim Schaub
5001272a2e
Remove extra options from icon example
2016-01-10 17:02:02 -07:00
Andreas Hocevar
d05b519f2f
Merge pull request #4457 from alexbrault/colour-icon
...
Add color option to ol.style.Icon
2016-01-10 23:19:54 +01:00
Petr Sloup
bc0d783f50
Use XHR by default to load TileJSON in ol.source.TileJSON
2016-01-07 09:19:23 +01:00
Alexandre Brault
3f16b340fc
Accept string as color input
2016-01-01 12:16:50 -05:00
Alexandre Brault
c0b6eac0c2
Add color option to ol.style.Icon
2016-01-01 12:16:50 -05:00
Andreas Hocevar
da3d8952da
Simplify icon example and show popup at clicked position
...
By using the event's coordinate instead of the feature's, we make sure
that the popup is shown where the user clicked when on a wrapped world.
2015-07-31 10:09:16 +02:00
Tim Schaub
c5cf709c55
The common.js script makes a "common" object available
2015-04-17 09:49:53 -06:00
Tim Schaub
89f5e711e6
Example sources in the examples dir
2015-04-17 06:22:38 -06:00
Andreas Hocevar
ff1ee78ddd
Build and parse examples from examples_src/
2015-04-02 19:10:09 +02:00
tsauerwein
9cc8390dfd
Use dragging in examples
2015-01-30 09:16:19 +01:00
tsauerwein
35c58b3b0e
Use hasFeatureAtPixel in icon example
2015-01-08 16:12:52 +01:00
tsauerwein
6c48b2067b
Make icon example work with webgl
2015-01-08 15:38:00 +01:00
Tim Schaub
47d37fabea
Rename ol.View2D to ol.View
2014-06-27 09:59:39 -04:00
Andreas Hocevar
e44e59311b
Merge pull request #1896 from ahocevar/nodragclick
...
Add click event as responsive alternative to singleclick
2014-04-03 13:34:14 +02:00
Tim Schaub
5653d57712
Change default renderer to Canvas
2014-04-02 11:43:20 -06:00
ahocevar
7bfa15c0fd
Add click event as responsive alternative to singleclick
...
The singleclick event makes the application feel slow because
of the 250 ms delay that is used to rule out a dblclick.
2014-03-27 18:33:17 +01:00
Frederic Junod
0e73ffa9d9
Set ol.style.Icon opacity
2014-02-19 11:40:40 +01:00
Tim Schaub
f4585331f2
Add setStyle and getStyle to ol.Feature
...
As with vector layers and feature overlays, feature style can be set by calling
setStyle. Calling getStyle returns what was passed to setStyle. Internally, we call getStyleFunction.
2014-02-13 10:25:17 -07:00
Éric Lemoine
581b2d345d
Show how to use ol.Feature#setStyleFunction in the icon example
2014-02-12 14:26:00 +01:00