Olivier Guyot
1c13893dd1
Mapbox Example / remove es6 shorthand
...
thanks @fredj
Co-Authored-By: Frédéric Junod <frederic.junod@camptocamp.com >
2019-05-13 16:38:10 +02:00
Olivier Guyot
4bf314f9e6
Mapbox Example / simplify to use a custom render function
2019-05-13 16:16:53 +02:00
Olivier Guyot
78cee60d91
Mapbox example / remove more unused code
2019-05-13 12:15:46 +02:00
Olivier Guyot
1deabaa1c0
Mapbox example / add mapbox css to avoid warning in console
...
Also remove manipulation of the mapbox canvas (not necessary anymore).
2019-05-13 11:42:28 +02:00
Olivier Guyot
88b6b18cc0
Mapbox example / remove overload of undocumented method
...
This was out of sync with mabox v54 and is not required anymore.
2019-05-13 11:38:45 +02:00
Olivier Guyot
7d2249f652
Mapbox example / trigger a synchronous redraw
...
This uses an undocumented method to trigger a synchronous redraw
instead of using the standard schedule from Mapbox. The CSS previously used
to make the OL and MB views match is not necessary anymore.
Reference: https://github.com/mapbox/mapbox-gl-js/issues/7893#issue-408992184
2019-05-13 11:16:36 +02:00
Frederic Junod
d1fe22a872
Simplify mapboxgl control container removal
2019-05-10 12:39:39 +02:00
Frederic Junod
5756003c88
Don't create temporary arrays in mapbox-layer example
2019-05-10 10:59:15 +02:00
Frederic Junod
e5e2129a88
Use toLonLat function in mapbox-layer example
2019-05-10 10:48:45 +02:00
Olivier Guyot
7835869582
Add an extent restriction on the mapbox layer example
...
This fixes a bug where the OL map would allow much larger resolution than
mapbox.
2019-02-22 15:01:30 +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
ahocevar
c37b6202a0
Use Map
2018-11-16 14:56:49 +01:00
Florent gravin
40b2922b4e
Add rotation in mapbox-gl example
2018-11-15 12:55:37 +01:00
Frederic Junod
bed9c6b09a
Don't add mapbox-gl into dependencies
2018-11-14 16:34:36 +01:00
Florent gravin
c62ebb9f61
Add mapbox-gl-js example
2018-11-14 16:30:52 +01:00