Compare commits
61 Commits
v3.11.0-be
...
v3.11.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb5377fb8c | ||
|
|
657af1983d | ||
|
|
ab7e608129 | ||
|
|
0c2c058534 | ||
|
|
a9987de308 | ||
|
|
c02fdf2393 | ||
|
|
ca50e9e5b7 | ||
|
|
069a81db74 | ||
|
|
df460d2ed1 | ||
|
|
b29b969cfe | ||
|
|
a020251f69 | ||
|
|
b2292cc6fd | ||
|
|
647c1a6351 | ||
|
|
bfbb802b85 | ||
|
|
a446147902 | ||
|
|
d968f32456 | ||
|
|
1aea2c2b0c | ||
|
|
5b817f3146 | ||
|
|
a58f66a9a9 | ||
|
|
8e15f80d7a | ||
|
|
a35b3a5f52 | ||
|
|
9cf26f1fac | ||
|
|
fadf63cbd0 | ||
|
|
daa970fe4c | ||
|
|
3254e08785 | ||
|
|
544f951c14 | ||
|
|
08a640b793 | ||
|
|
d29f3b9068 | ||
|
|
d68991e982 | ||
|
|
5c536aafc7 | ||
|
|
757d46541c | ||
|
|
dc3bf0d04b | ||
|
|
9cde0ab860 | ||
|
|
bb00f4dafd | ||
|
|
16670e4015 | ||
|
|
4b85dd89a5 | ||
|
|
71f7c70279 | ||
|
|
2d24c8942e | ||
|
|
d24dcc7753 | ||
|
|
bea1501bb7 | ||
|
|
5751d342ff | ||
|
|
8514a85353 | ||
|
|
ad85e0e98d | ||
|
|
66a99dd6c4 | ||
|
|
eb762b6f4a | ||
|
|
14a1add08d | ||
|
|
cbd1aee0cc | ||
|
|
135d66dac7 | ||
|
|
3f30072de5 | ||
|
|
925a89ecdb | ||
|
|
d5c7f805ab | ||
|
|
67f42ed33a | ||
|
|
610ed7294f | ||
|
|
6c813020c2 | ||
|
|
0149924551 | ||
|
|
85264111cd | ||
|
|
921d736340 | ||
|
|
98c9b0eb39 | ||
|
|
7946298e67 | ||
|
|
c0271e3509 | ||
|
|
ad3ee7cb33 |
13
.travis.yml
13
.travis.yml
@@ -1,5 +1,11 @@
|
|||||||
language: python
|
sudo: required
|
||||||
sudo: false
|
dist: trusty
|
||||||
|
|
||||||
|
language: node_js
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- "4"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
@@ -7,7 +13,8 @@ env:
|
|||||||
- DISPLAY=:99.0
|
- DISPLAY=:99.0
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- "npm install -g npm && npm install"
|
- "npm prune"
|
||||||
|
- "sudo pip install -r requirements.txt"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- "rm src/ol/renderer/webgl/*shader.js"
|
- "rm src/ol/renderer/webgl/*shader.js"
|
||||||
|
|||||||
@@ -46,6 +46,12 @@ but with additional css:
|
|||||||
|
|
||||||
With the introduction of true vector tile support, `ol.source.TileVector` becomes obsolete. Change your code to use `ol.layer.VectorTile` and `ol.source.VectorTile` instead of `ol.layer.Vector` and `ol.source.TileVector`.
|
With the introduction of true vector tile support, `ol.source.TileVector` becomes obsolete. Change your code to use `ol.layer.VectorTile` and `ol.source.VectorTile` instead of `ol.layer.Vector` and `ol.source.TileVector`.
|
||||||
|
|
||||||
|
#### `ol.Map#forEachFeatureAtPixel` changes for unmanaged layers
|
||||||
|
|
||||||
|
`ol.Map#forEachFeatureAtPixel` will still be called for unmanaged layers, but the 2nd argument to the callback function will be `null` instead of a reference to the unmanaged layer. This brings back the behavior of the abandoned `ol.FeatureOverlay` that was replaced by unmanaged layers.
|
||||||
|
|
||||||
|
If you are affected by this change, please change your unmanaged layer to a regular layer by using e.g. `ol.Map#addLayer` instead of `ol.layer.Layer#setMap`.
|
||||||
|
|
||||||
### v3.10.0
|
### v3.10.0
|
||||||
|
|
||||||
#### `ol.layer.Layer` changes
|
#### `ol.layer.Layer` changes
|
||||||
|
|||||||
136
changelog/v3.11.0.md
Normal file
136
changelog/v3.11.0.md
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
# v3.11.0
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
The v3.11.0 release includes features and fixes from 73 pull requests since the v3.10.1 release. New features and improvements include:
|
||||||
|
|
||||||
|
* Support for raster reprojection - load raster sources in one projection and view them in another.
|
||||||
|
* Support for Mapbox Vector Tiles!
|
||||||
|
* Improved KML support, GeoJSON & TopoJSON fixes, and much more. See below for the full list.
|
||||||
|
|
||||||
|
## Upgrade notes
|
||||||
|
|
||||||
|
#### `ol.format.KML` changes
|
||||||
|
|
||||||
|
KML icons are scaled 50% so that the rendering better matches Google Earth rendering.
|
||||||
|
|
||||||
|
If a KML placemark has a name and is a point, an `ol.style.Text` is created with the name displayed to the right of the icon (if there is an icon).
|
||||||
|
This can be controlled with the showPointNames option which defaults to true.
|
||||||
|
|
||||||
|
To disable rendering of the point names for placemarks, use the option:
|
||||||
|
new ol.format.KML({ showPointNames: false });
|
||||||
|
|
||||||
|
#### `ol.interaction.DragBox` and `ol.interaction.DragZoom` changes
|
||||||
|
|
||||||
|
Styling is no longer done with `ol.Style`, but with pure CSS. The `style` constructor option is no longer required, and no longer available. Instead, there is a `className` option for the CSS selector. The default for `ol.interaction.DragBox` is `ol-dragbox`, and `ol.interaction.DragZoom` uses `ol-dragzoom`. If you previously had
|
||||||
|
```js
|
||||||
|
new ol.interaction.DragZoom({
|
||||||
|
style: new ol.style.Style({
|
||||||
|
stroke: new ol.style.Stroke({
|
||||||
|
color: 'red',
|
||||||
|
width: 3
|
||||||
|
}),
|
||||||
|
fill: new ol.style.Fill({
|
||||||
|
color: [255, 255, 255, 0.4]
|
||||||
|
})
|
||||||
|
})
|
||||||
|
});
|
||||||
|
```
|
||||||
|
you'll now just need
|
||||||
|
```js
|
||||||
|
new ol.interaction.DragZoom();
|
||||||
|
```
|
||||||
|
but with additional css:
|
||||||
|
```css
|
||||||
|
.ol-dragzoom {
|
||||||
|
border-color: red;
|
||||||
|
border-width: 3px;
|
||||||
|
background-color: rgba(255,255,255,0.4);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Removal of `ol.source.TileVector`
|
||||||
|
|
||||||
|
With the introduction of true vector tile support, `ol.source.TileVector` becomes obsolete. Change your code to use `ol.layer.VectorTile` and `ol.source.VectorTile` instead of `ol.layer.Vector` and `ol.source.TileVector`.
|
||||||
|
|
||||||
|
#### `ol.Map#forEachFeatureAtPixel` changes for unmanaged layers
|
||||||
|
|
||||||
|
`ol.Map#forEachFeatureAtPixel` will still be called for unmanaged layers, but the 2nd argument to the callback function will be `null` instead of a reference to the unmanaged layer. This brings back the behavior of the abandoned `ol.FeatureOverlay` that was replaced by unmanaged layers.
|
||||||
|
|
||||||
|
If you are affected by this change, please change your unmanaged layer to a regular layer by using e.g. `ol.Map#addLayer` instead of `ol.layer.Layer#setMap`.
|
||||||
|
|
||||||
|
## Full list of changes
|
||||||
|
|
||||||
|
* [#4394](https://github.com/openlayers/ol3/pull/4394) - Allow ol.Object property update without notification. ([@DavidHequet](https://github.com/DavidHequet))
|
||||||
|
* [#4395](https://github.com/openlayers/ol3/pull/4395) - Flag ol.style.Text setOffsetX and Y as @api. ([@adube](https://github.com/adube))
|
||||||
|
* [#4393](https://github.com/openlayers/ol3/pull/4393) - Faster vector tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4392](https://github.com/openlayers/ol3/pull/4392) - Update clean-css to version 3.4.7 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#4391](https://github.com/openlayers/ol3/pull/4391) - Pass null as forEachFeatureAtPixel layer arg for unmanaged layers ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4390](https://github.com/openlayers/ol3/pull/4390) - Fix usage of mocha-phantomjs-core after update ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4387](https://github.com/openlayers/ol3/pull/4387) - Add default argument to getRendererFromQueryString ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4376](https://github.com/openlayers/ol3/pull/4376) - Make KML format ignore image styles that aren't icons ([@elemoine](https://github.com/elemoine))
|
||||||
|
* [#4385](https://github.com/openlayers/ol3/pull/4385) - Don't transform the scale specified by the user ([@oterral](https://github.com/oterral))
|
||||||
|
* [#4388](https://github.com/openlayers/ol3/pull/4388) - Quick-fix running tests with PhantomJS ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4378](https://github.com/openlayers/ol3/pull/4378) - Add a writeStyles option to KML format ([@elemoine](https://github.com/elemoine))
|
||||||
|
* [#4375](https://github.com/openlayers/ol3/pull/4375) - Fixed documentation typo (ol.source.ImageWMS) ([@simonseyock](https://github.com/simonseyock))
|
||||||
|
* [#4371](https://github.com/openlayers/ol3/pull/4371) - Fix typo in closure compilation tutorial ([@dtreiter](https://github.com/dtreiter))
|
||||||
|
* [#4370](https://github.com/openlayers/ol3/pull/4370) - Improve ol.interaction.Select#getLayer documentation. ([@jonataswalker](https://github.com/jonataswalker))
|
||||||
|
* [#4365](https://github.com/openlayers/ol3/pull/4365) - Update fs-extra to version 0.26.2 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#4366](https://github.com/openlayers/ol3/pull/4366) - Update resemblejs to version 2.0.1 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#4368](https://github.com/openlayers/ol3/pull/4368) - Append KML placemark text style to existing styles ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#4361](https://github.com/openlayers/ol3/pull/4361) - Make GPX format not fail on unsupported geometries ([@elemoine](https://github.com/elemoine))
|
||||||
|
* [#4360](https://github.com/openlayers/ol3/pull/4360) - Update getExtent return value jsdoc tag ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4359](https://github.com/openlayers/ol3/pull/4359) - Update closure-util to version 1.9.0 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#4357](https://github.com/openlayers/ol3/pull/4357) - Update all dependencies. ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#4356](https://github.com/openlayers/ol3/pull/4356) - Update Metalsmith and layouts plugin. ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#4355](https://github.com/openlayers/ol3/pull/4355) - Update PhantomJS. ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#4353](https://github.com/openlayers/ol3/pull/4353) - Resolve path to jsdoc-fork. ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#3627](https://github.com/openlayers/ol3/pull/3627) - Make package.json compatible for npm frontend use. ([@ThomasG77](https://github.com/ThomasG77))
|
||||||
|
* [#4163](https://github.com/openlayers/ol3/pull/4163) - Fixes for building with Node 4.x. ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#4347](https://github.com/openlayers/ol3/pull/4347) - Use require.resolve() to find jsdoc. ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#4291](https://github.com/openlayers/ol3/pull/4291) - Add 'Move a feature along a line' example. ([@jonataswalker](https://github.com/jonataswalker))
|
||||||
|
* [#4344](https://github.com/openlayers/ol3/pull/4344) - Allow different resolutions in x and y direction for ol.source.ImageStatic ([@bartvde](https://github.com/bartvde))
|
||||||
|
* [#4339](https://github.com/openlayers/ol3/pull/4339) - Make sure drawImage width and height are not too big ([@bartvde](https://github.com/bartvde))
|
||||||
|
* [#4334](https://github.com/openlayers/ol3/pull/4334) - Check view extent within image extent ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4332](https://github.com/openlayers/ol3/pull/4332) - Fix write out GeoJSON features with id equal to 0 ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4331](https://github.com/openlayers/ol3/pull/4331) - Allow TopoJSON features with id equal to 0 ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4330](https://github.com/openlayers/ol3/pull/4330) - ol.format.TopoJSON is read only, update the jsdoc ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#4327](https://github.com/openlayers/ol3/pull/4327) - Allow GeoJSON features with id equal to 0 ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4219](https://github.com/openlayers/ol3/pull/4219) - Support tiled vector data and Mapbox vector tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4322](https://github.com/openlayers/ol3/pull/4322) - Add wrapX override support for ol.source.Cluster ([@FRizZL](https://github.com/FRizZL))
|
||||||
|
* [#4316](https://github.com/openlayers/ol3/pull/4316) - Render name labels if the geometry is a point in KML format (@tamarmot) ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#4313](https://github.com/openlayers/ol3/pull/4313) - Align logos nicely with attribution text ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4297](https://github.com/openlayers/ol3/pull/4297) - Create standalone versions of ol.ext packages ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4302](https://github.com/openlayers/ol3/pull/4302) - scale icons by 0.5 so they are not huge ([@tamarmot](https://github.com/tamarmot))
|
||||||
|
* [#4301](https://github.com/openlayers/ol3/pull/4301) - Remove jshint -W069 tags in source code ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4273](https://github.com/openlayers/ol3/pull/4273) - Expand docs on ol.source url prop. ([@Barryrowe](https://github.com/Barryrowe))
|
||||||
|
* [#4293](https://github.com/openlayers/ol3/pull/4293) - Refine the pull request process ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4289](https://github.com/openlayers/ol3/pull/4289) - Restrict maxZoom of the static-image example ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4275](https://github.com/openlayers/ol3/pull/4275) - Fix ol.events.condition.mouseOnly parameter type ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4248](https://github.com/openlayers/ol3/pull/4248) - Use Math.cosh of ES6/2015 if available ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#4286](https://github.com/openlayers/ol3/pull/4286) - Add a color manipulation example. ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#4122](https://github.com/openlayers/ol3/pull/4122) - Raster reprojection ([@klokantech](https://github.com/klokantech))
|
||||||
|
* [#4283](https://github.com/openlayers/ol3/pull/4283) - Flag ol.tilegrid.TileGrid getTileCoordExtent as @api ([@adube](https://github.com/adube))
|
||||||
|
* [#4280](https://github.com/openlayers/ol3/pull/4280) - Use overlay container instead of viewport for ol.render.Box ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4278](https://github.com/openlayers/ol3/pull/4278) - Use DOM instead of map canvas for ol.render.Box ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4277](https://github.com/openlayers/ol3/pull/4277) - Improve the box select example ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4276](https://github.com/openlayers/ol3/pull/4276) - Better ol.events.condition.platformModifierKeyOnly documentation ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4102](https://github.com/openlayers/ol3/pull/4102) - Export ol.Observable#dispatchEvent function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4261](https://github.com/openlayers/ol3/pull/4261) - ol.events.condition.mouseOnly may be wrong ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4269](https://github.com/openlayers/ol3/pull/4269) - Fix Zoom control duration option - allow `0` as value ([@adube](https://github.com/adube))
|
||||||
|
* [#4268](https://github.com/openlayers/ol3/pull/4268) - Add method for retrieving ol.Overlay by id ([@jonataswalker](https://github.com/jonataswalker))
|
||||||
|
* [#4257](https://github.com/openlayers/ol3/pull/4257) - Remove unused ol.math-methods ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#4270](https://github.com/openlayers/ol3/pull/4270) - Fix Keyboard zoom interation options ([@adube](https://github.com/adube))
|
||||||
|
* [#4272](https://github.com/openlayers/ol3/pull/4272) - Allow the DragZoom interaction created in defaults to use zoomDuration option. ([@adube](https://github.com/adube))
|
||||||
|
* [#4271](https://github.com/openlayers/ol3/pull/4271) - Fix DragZoom interaction duration, allow `0` value ([@adube](https://github.com/adube))
|
||||||
|
* [#4267](https://github.com/openlayers/ol3/pull/4267) - Example usability improvements ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4263](https://github.com/openlayers/ol3/pull/4263) - Add back CSSProperties.prototype.touchAction extern ([@fredj](https://github.com/fredj))
|
||||||
|
* [#4259](https://github.com/openlayers/ol3/pull/4259) - Remove use of toDegrees/toRadians util functions ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#4258](https://github.com/openlayers/ol3/pull/4258) - Remove usage of goog.dom.TagName enum ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#4255](https://github.com/openlayers/ol3/pull/4255) - Fix zoom slider width for retina displays ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4249](https://github.com/openlayers/ol3/pull/4249) - Make whole example box clickable ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#4045](https://github.com/openlayers/ol3/pull/4045) - Add parser for dimension property from WMTS Capabilities.xml ([@Jenselme](https://github.com/Jenselme))
|
||||||
|
* [#4161](https://github.com/openlayers/ol3/pull/4161) - Add `translatestart`, `translateend` and `translating` events to `ol.interaction.Translate` ([@jonataswalker](https://github.com/jonataswalker))
|
||||||
|
* [#4186](https://github.com/openlayers/ol3/pull/4186) - Do not export ol.webgl.Context ([@elemoine](https://github.com/elemoine))
|
||||||
|
* [#4239](https://github.com/openlayers/ol3/pull/4239) - Changing highlighted to highlight ([@austinkeeley](https://github.com/austinkeeley))
|
||||||
|
* [#3727](https://github.com/openlayers/ol3/pull/3727) - Added getOverviewMap getter method in overviewmapcontrol.js ([@bogdanvaduva](https://github.com/bogdanvaduva))
|
||||||
@@ -312,7 +312,7 @@ directory:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Note that the page includes a `script` tag referencing the `app.js` file,
|
Note that the page includes a `script` tag referencing the `app.js` file,
|
||||||
which is the file resuted from the compilation.
|
which is the file resulting from the compilation.
|
||||||
|
|
||||||
You are done!
|
You are done!
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Accessibility example
|
title: Accessibility example
|
||||||
shortdesc: Example of an accessible map.
|
shortdesc: Example of an accessible map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Animation example
|
title: Animation example
|
||||||
shortdesc: Demonstrates animated pan, zoom, and rotation.
|
shortdesc: Demonstrates animated pan, zoom, and rotation.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Tiled ArcGIS MapServer example
|
title: Tiled ArcGIS MapServer example
|
||||||
shortdesc: Example of a tiled ArcGIS layer.
|
shortdesc: Example of a tiled ArcGIS layer.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Attributions example
|
title: Attributions example
|
||||||
shortdesc: Example of a attributions visibily change on map resize, to collapse them on small maps.
|
shortdesc: Example of a attributions visibily change on map resize, to collapse them on small maps.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Bing Maps example
|
title: Bing Maps example
|
||||||
shortdesc: Example of a Bing Maps layer.
|
shortdesc: Example of a Bing Maps layer.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Blend modes example
|
title: Blend modes example
|
||||||
shortdesc: Shows how to change the canvas compositing / blending mode in post- and precompose eventhandlers.
|
shortdesc: Shows how to change the canvas compositing / blending mode in post- and precompose eventhandlers.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Box selection example
|
title: Box selection example
|
||||||
shortdesc: Using a DragBox interaction to select features.
|
shortdesc: Using a DragBox interaction to select features.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Custom tooltips example
|
title: Custom tooltips example
|
||||||
shortdesc: This example shows how to customize the buttons tooltips with Bootstrap.
|
shortdesc: This example shows how to customize the buttons tooltips with Bootstrap.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Canvas tiles example
|
title: Canvas tiles example
|
||||||
shortdesc: Renders tiles with coordinates for debugging.
|
shortdesc: Renders tiles with coordinates for debugging.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Advanced View Positioning example
|
title: Advanced View Positioning example
|
||||||
shortdesc: This example demonstrates how a map's view can be adjusted so a geometry or coordinate is positioned at a specific pixel location.
|
shortdesc: This example demonstrates how a map's view can be adjusted so a geometry or coordinate is positioned at a specific pixel location.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Clustering example
|
title: Clustering example
|
||||||
shortdesc: Example of using <code>ol.source.Cluster</code>.
|
shortdesc: Example of using <code>ol.source.Cluster</code>.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Manipulating colors with a raster source
|
title: Manipulating colors with a raster source
|
||||||
shortdesc: Demonstrates color manipulation with a raster source.
|
shortdesc: Demonstrates color manipulation with a raster source.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Custom control example
|
title: Custom control example
|
||||||
shortdesc: Shows how to create custom controls.
|
shortdesc: Shows how to create custom controls.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Custom interaction example
|
title: Custom interaction example
|
||||||
shortdesc: Example of a custom interaction.
|
shortdesc: Example of a custom interaction.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: d3 integration example
|
title: d3 integration example
|
||||||
shortdesc: Example of using ol3 and d3 together.
|
shortdesc: Example of using ol3 and d3 together.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Device-Orientation example
|
title: Device-Orientation example
|
||||||
shortdesc: Listen to DeviceOrientation events.
|
shortdesc: Listen to DeviceOrientation events.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Drag-and-Drop image vector example
|
title: Drag-and-Drop image vector example
|
||||||
shortdesc: Example of using the drag-and-drop interaction with a ol.source.ImageVector. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map. Each file is rendered to an image on the client.
|
shortdesc: Example of using the drag-and-drop interaction with a ol.source.ImageVector. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map. Each file is rendered to an image on the client.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Drag-and-Drop example
|
title: Drag-and-Drop example
|
||||||
shortdesc: Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map. There is no projection transform support, so this will only work with data in EPSG:4326 and EPSG:3857.
|
shortdesc: Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map. There is no projection transform support, so this will only work with data in EPSG:4326 and EPSG:3857.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Drag rotate and zoom example
|
title: Drag rotate and zoom example
|
||||||
shortdesc: A single interaction to drag, rotate, and zoom.
|
shortdesc: A single interaction to drag, rotate, and zoom.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Draw and modify features example
|
title: Draw and modify features example
|
||||||
shortdesc: Example of using the ol.interaction.Draw interaction together with the ol.interaction.Modify interaction.
|
shortdesc: Example of using the ol.interaction.Draw interaction together with the ol.interaction.Modify interaction.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Draw features example
|
title: Draw features example
|
||||||
shortdesc: Example of using the ol.interaction.Draw interaction.
|
shortdesc: Example of using the ol.interaction.Draw interaction.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Dynamic data example
|
title: Dynamic data example
|
||||||
shortdesc: Example of dynamic data.
|
shortdesc: Example of dynamic data.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Earthquake Clusters
|
title: Earthquake Clusters
|
||||||
shortdesc: Demonstrates the use of style geometries to render source features of a cluster.
|
shortdesc: Demonstrates the use of style geometries to render source features of a cluster.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: EPSG:4326 example
|
title: EPSG:4326 example
|
||||||
shortdesc: Example of a map in EPSG:4326.
|
shortdesc: Example of a map in EPSG:4326.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Export map example
|
title: Export map example
|
||||||
shortdesc: Example of exporting a map as a PNG image.
|
shortdesc: Example of exporting a map as a PNG image.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Feature animation example
|
title: Feature animation example
|
||||||
shortdesc: Demonstrates how to animate features.
|
shortdesc: Demonstrates how to animate features.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Animate a feature movement
|
title: Animate a feature movement
|
||||||
shortdesc: Demonstrates how to move a feature along a line.
|
shortdesc: Demonstrates how to move a feature along a line.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Fractal Example
|
title: Fractal Example
|
||||||
shortdesc: Example of a fractal.
|
shortdesc: Example of a fractal.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Full screen drag rotate and zoom example
|
title: Full screen drag rotate and zoom example
|
||||||
shortdesc: Example of drag rotate and zoom control with full screen effect.
|
shortdesc: Example of drag rotate and zoom control with full screen effect.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Full screen control example
|
title: Full screen control example
|
||||||
shortdesc: Example of a full screen control.
|
shortdesc: Example of a full screen control.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: GeoJSON example
|
title: GeoJSON example
|
||||||
shortdesc: Example of GeoJSON features.
|
shortdesc: Example of GeoJSON features.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example-verbatim.html
|
layout: example-verbatim.html
|
||||||
title: Geolocation Tracking with Orientation
|
title: Geolocation Tracking with Orientation
|
||||||
shortdesc: Example of a geolocated and oriented map.
|
shortdesc: Example of a geolocated and oriented map.
|
||||||
tags: "fullscreen, geolocation, orientation, mobile"
|
tags: "fullscreen, geolocation, orientation, mobile"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Geolocation example
|
title: Geolocation example
|
||||||
shortdesc: Example of a geolocation map.
|
shortdesc: Example of a geolocation map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: GetFeatureInfo example (image layer)
|
title: GetFeatureInfo example (image layer)
|
||||||
shortdesc: This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer.
|
shortdesc: This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: WMS GetFeatureInfo example (tile layer)
|
title: WMS GetFeatureInfo example (tile layer)
|
||||||
shortdesc: This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS tile layer.
|
shortdesc: This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS tile layer.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: GPX example
|
title: GPX example
|
||||||
shortdesc: Example of using the GPX source.
|
shortdesc: Example of using the GPX source.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Graticule example
|
title: Graticule example
|
||||||
shortdesc: This example shows how to add a graticule overlay to a map.
|
shortdesc: This example shows how to add a graticule overlay to a map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Earthquakes heatmap
|
title: Earthquakes heatmap
|
||||||
shortdesc: Demonstrates the use of a heatmap layer.
|
shortdesc: Demonstrates the use of a heatmap layer.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Icon sprites with WebGL example
|
title: Icon sprites with WebGL example
|
||||||
shortdesc: Icon sprite with WebGL
|
shortdesc: Icon sprite with WebGL
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -78,14 +78,8 @@ var vector = new ol.layer.Vector({
|
|||||||
source: vectorSource
|
source: vectorSource
|
||||||
});
|
});
|
||||||
|
|
||||||
// Use the "webgl" renderer by default.
|
|
||||||
var renderer = common.getRendererFromQueryString();
|
|
||||||
if (!renderer) {
|
|
||||||
renderer = 'webgl';
|
|
||||||
}
|
|
||||||
|
|
||||||
var map = new ol.Map({
|
var map = new ol.Map({
|
||||||
renderer: renderer,
|
renderer: common.getRendererFromQueryString('webgl'),
|
||||||
layers: [vector],
|
layers: [vector],
|
||||||
target: document.getElementById('map'),
|
target: document.getElementById('map'),
|
||||||
view: new ol.View({
|
view: new ol.View({
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Vector Icon Example
|
title: Vector Icon Example
|
||||||
shortdesc: Example using an icon to symbolize a point.
|
shortdesc: Example using an icon to symbolize a point.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: IGC example
|
title: IGC example
|
||||||
shortdesc: Example of tracks recorded from multiple paraglider flights on the same day, read from an IGC file.
|
shortdesc: Example of tracks recorded from multiple paraglider flights on the same day, read from an IGC file.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Image Filter Example
|
title: Image Filter Example
|
||||||
shortdesc: Apply a filter to imagery
|
shortdesc: Apply a filter to imagery
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Image load events example
|
title: Image load events example
|
||||||
shortdesc: Example using image load events.
|
shortdesc: Example using image load events.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Image vector layer example
|
title: Image vector layer example
|
||||||
shortdesc: Example of an image vector layer.
|
shortdesc: Example of an image vector layer.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: JSTS Example
|
title: JSTS Example
|
||||||
shortdesc: Example on how to use JSTS with OpenLayers 3.
|
shortdesc: Example on how to use JSTS with OpenLayers 3.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Earthquakes in KML
|
title: Earthquakes in KML
|
||||||
shortdesc: Demonstrates the use of a Shape symbolizer to render earthquake locations.
|
shortdesc: Demonstrates the use of a Shape symbolizer to render earthquake locations.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Timezones in KML
|
title: Timezones in KML
|
||||||
shortdesc: Demonstrates rendering timezones from KML.
|
shortdesc: Demonstrates rendering timezones from KML.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: KML example
|
title: KML example
|
||||||
shortdesc: Example of using the KML source.
|
shortdesc: Example of using the KML source.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Layer WebGL clipping example
|
title: Layer WebGL clipping example
|
||||||
shortdesc: Layer WebGL clipping example.
|
shortdesc: Layer WebGL clipping example.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Layer clipping example
|
title: Layer clipping example
|
||||||
shortdesc: Layer clipping example
|
shortdesc: Layer clipping example
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Limited Layer Extent
|
title: Limited Layer Extent
|
||||||
shortdesc: Restricting layer rendering to a limited extent.
|
shortdesc: Restricting layer rendering to a limited extent.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Layer group example
|
title: Layer group example
|
||||||
shortdesc: Example of a map with layer group.
|
shortdesc: Example of a map with layer group.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Layer Spy Example
|
title: Layer Spy Example
|
||||||
shortdesc: View a portion of one layer over another
|
shortdesc: View a portion of one layer over another
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Layer Swipe example
|
title: Layer Swipe example
|
||||||
shortdesc: Example of a Layer swipe map.
|
shortdesc: Example of a Layer swipe map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Z-index layer ordering example
|
title: Z-index layer ordering example
|
||||||
shortdesc: Example of ordering layers using Z-index.
|
shortdesc: Example of ordering layers using Z-index.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Lazy Source
|
title: Lazy Source
|
||||||
shortdesc: Example of setting a layer source after construction.
|
shortdesc: Example of setting a layer source after construction.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: LineString arrows example
|
title: LineString arrows example
|
||||||
shortdesc: Example of drawing arrows for each line string segment.
|
shortdesc: Example of drawing arrows for each line string segment.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Localized OpenStreetMap example
|
title: Localized OpenStreetMap example
|
||||||
shortdesc: Example of a localized OpenStreetMap map with a custom tile server and a custom attribution.
|
shortdesc: Example of a localized OpenStreetMap map with a custom tile server and a custom attribution.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Advanced Mapbox vector tiles example
|
title: Advanced Mapbox vector tiles example
|
||||||
shortdesc: Example of a Mapbox vector tiles map with custom tile grid.
|
shortdesc: Example of a Mapbox vector tiles map with custom tile grid.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Mapbox vector tiles example
|
title: Mapbox vector tiles example
|
||||||
shortdesc: Example of a Mapbox vector tiles map.
|
shortdesc: Example of a Mapbox vector tiles map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: MapGuide untiled example
|
title: MapGuide untiled example
|
||||||
shortdesc: Example of a untiled MapGuide map.
|
shortdesc: Example of a untiled MapGuide map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: MapQuest example
|
title: MapQuest example
|
||||||
shortdesc: Example of a MapQuest map.Shows how to create custom controls.
|
shortdesc: Example of a MapQuest map.Shows how to create custom controls.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Measure example
|
title: Measure example
|
||||||
shortdesc: Example of using the ol.interaction.Draw interaction for creating simple measuring application.
|
shortdesc: Example of using the ol.interaction.Draw interaction for creating simple measuring application.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Min/max resolution example
|
title: Min/max resolution example
|
||||||
shortdesc: Show/hide layers depending on current view resolution.
|
shortdesc: Show/hide layers depending on current view resolution.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example-verbatim.html
|
layout: example-verbatim.html
|
||||||
title: Full-Screen Mobile
|
title: Full-Screen Mobile
|
||||||
shortdesc: Example of a full screen map.
|
shortdesc: Example of a full screen map.
|
||||||
tags: "fullscreen, geolocation, mobile"
|
tags: "fullscreen, geolocation, mobile"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Modify features example
|
title: Modify features example
|
||||||
shortdesc: Editing features with the modify interaction.
|
shortdesc: Editing features with the modify interaction.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Modify features test
|
title: Modify features test
|
||||||
shortdesc: Example for testing feature modification.
|
shortdesc: Example for testing feature modification.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Mouse position example
|
title: Mouse position example
|
||||||
shortdesc: Example of a mouse position control, outside the map.
|
shortdesc: Example of a mouse position control, outside the map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Moveend Example
|
title: Moveend Example
|
||||||
shortdesc: Use of the moveend event.
|
shortdesc: Use of the moveend event.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Navigation controls example
|
title: Navigation controls example
|
||||||
shortdesc: Shows how to add navigation controls.
|
shortdesc: Shows how to add navigation controls.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Overlay example
|
title: Overlay example
|
||||||
shortdesc: Demonstrates overlays.
|
shortdesc: Demonstrates overlays.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: OverviewMap control example advanced
|
title: OverviewMap control example advanced
|
||||||
shortdesc: Example of OverviewMap control with advanced customization.
|
shortdesc: Example of OverviewMap control with advanced customization.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: OverviewMap control example
|
title: OverviewMap control example
|
||||||
shortdesc: Example of OverviewMap control.
|
shortdesc: Example of OverviewMap control.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Permalink example
|
title: Permalink example
|
||||||
shortdesc: Example on how to create permalinks.
|
shortdesc: Example on how to create permalinks.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Custom styles for polygons
|
title: Custom styles for polygons
|
||||||
shortdesc: Showing the vertices of a polygon with a custom style geometry.
|
shortdesc: Showing the vertices of a polygon with a custom style geometry.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Popup example
|
title: Popup example
|
||||||
shortdesc: Uses an overlay to create a popup.
|
shortdesc: Uses an overlay to create a popup.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Preload example
|
title: Preload example
|
||||||
shortdesc: Example of tile preloading.
|
shortdesc: Example of tile preloading.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Raster Source
|
title: Raster Source
|
||||||
shortdesc: Demonstrates pixelwise operations with a raster source.
|
shortdesc: Demonstrates pixelwise operations with a raster source.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
The `.html` files in this folder are built by applying the templates in the `config/examples/` folder. Examples have [YAML front-matter](http://www.metalsmith.io) headers with the following properties:
|
The `.html` files in this folder are built by applying the templates in the `config/examples/` folder. Examples have [YAML front-matter](http://www.metalsmith.io) headers with the following properties:
|
||||||
|
|
||||||
* template: The template from the `config/examples/` directory to use for this example
|
* layout: The template from the `config/examples/` directory to use for this example
|
||||||
* title: The title of the example
|
* title: The title of the example
|
||||||
* shortdesc: A short description for the example index
|
* shortdesc: A short description for the example index
|
||||||
* docs: Documentation of the example. Can be markdown.
|
* docs: Documentation of the example. Can be markdown.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Region Growing
|
title: Region Growing
|
||||||
shortdesc: Grow a region from a seed pixel
|
shortdesc: Grow a region from a seed pixel
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Regular Shape example
|
title: Regular Shape example
|
||||||
shortdesc: Example of some Regular Shape styles.
|
shortdesc: Example of some Regular Shape styles.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Reprojection with EPSG.io database search
|
title: Reprojection with EPSG.io database search
|
||||||
shortdesc: Demonstrates client-side raster reprojection of MapQuest OSM to arbitrary projection
|
shortdesc: Demonstrates client-side raster reprojection of MapQuest OSM to arbitrary projection
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Image reprojection example
|
title: Image reprojection example
|
||||||
shortdesc: Demonstrates client-side reprojection of single image source.
|
shortdesc: Demonstrates client-side reprojection of single image source.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: OpenStreetMap reprojection example
|
title: OpenStreetMap reprojection example
|
||||||
shortdesc: Demonstrates client-side reprojection of OpenStreetMap in WGS84.
|
shortdesc: Demonstrates client-side reprojection of OpenStreetMap in WGS84.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Raster reprojection example
|
title: Raster reprojection example
|
||||||
shortdesc: Demonstrates client-side raster reprojection between various projections.
|
shortdesc: Demonstrates client-side raster reprojection between various projections.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
var common = {};
|
var common = {};
|
||||||
|
|
||||||
common.getRendererFromQueryString = function() {
|
common.getRendererFromQueryString = function(opt_default) {
|
||||||
var obj = {};
|
var obj = {};
|
||||||
var queryString = location.search.slice(1);
|
var queryString = location.search.slice(1);
|
||||||
var re = /([^&=]+)=([^&]*)/g;
|
var re = /([^&=]+)=([^&]*)/g;
|
||||||
@@ -98,6 +98,6 @@ common.getRendererFromQueryString = function() {
|
|||||||
} else if ('renderer' in obj) {
|
} else if ('renderer' in obj) {
|
||||||
return [obj['renderer']];
|
return [obj['renderer']];
|
||||||
} else {
|
} else {
|
||||||
return undefined;
|
return opt_default;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -53,16 +53,16 @@ function createMapboxStreetsV6Style() {
|
|||||||
} else if (layer == 'waterway' &&
|
} else if (layer == 'waterway' &&
|
||||||
cls != 'river' && cls != 'stream' && cls != 'canal') {
|
cls != 'river' && cls != 'stream' && cls != 'canal') {
|
||||||
stroke.setColor('#a0c8f0');
|
stroke.setColor('#a0c8f0');
|
||||||
stroke.setWidth(1.3);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'waterway' && cls == 'river') {
|
} else if (layer == 'waterway' && cls == 'river') {
|
||||||
stroke.setColor('#a0c8f0');
|
stroke.setColor('#a0c8f0');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'waterway' && (cls == 'stream' ||
|
} else if (layer == 'waterway' && (cls == 'stream' ||
|
||||||
cls == 'canal')) {
|
cls == 'canal')) {
|
||||||
stroke.setColor('#a0c8f0');
|
stroke.setColor('#a0c8f0');
|
||||||
stroke.setWidth(1.3);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'water') {
|
} else if (layer == 'water') {
|
||||||
fill.setColor('#a0c8f0');
|
fill.setColor('#a0c8f0');
|
||||||
@@ -73,7 +73,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
} else if (layer == 'aeroway' && geom == 'LineString' &&
|
} else if (layer == 'aeroway' && geom == 'LineString' &&
|
||||||
resolution <= 76.43702828517625) {
|
resolution <= 76.43702828517625) {
|
||||||
stroke.setColor('#f0ede9');
|
stroke.setColor('#f0ede9');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'building') {
|
} else if (layer == 'building') {
|
||||||
fill.setColor('#f2eae2');
|
fill.setColor('#f2eae2');
|
||||||
@@ -82,90 +82,90 @@ function createMapboxStreetsV6Style() {
|
|||||||
styles[length++] = strokedPolygon;
|
styles[length++] = strokedPolygon;
|
||||||
} else if (layer == 'tunnel' && cls == 'motorway_link') {
|
} else if (layer == 'tunnel' && cls == 'motorway_link') {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'tunnel' && cls == 'service') {
|
} else if (layer == 'tunnel' && cls == 'service') {
|
||||||
stroke.setColor('#cfcdca');
|
stroke.setColor('#cfcdca');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'tunnel' &&
|
} else if (layer == 'tunnel' &&
|
||||||
(cls == 'street' || cls == 'street_limited')) {
|
(cls == 'street' || cls == 'street_limited')) {
|
||||||
stroke.setColor('#cfcdca');
|
stroke.setColor('#cfcdca');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'tunnel' && cls == 'main' &&
|
} else if (layer == 'tunnel' && cls == 'main' &&
|
||||||
resolution <= 1222.99245256282) {
|
resolution <= 1222.99245256282) {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'tunnel' && cls == 'motorway') {
|
} else if (layer == 'tunnel' && cls == 'motorway') {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'tunnel' && cls == 'path') {
|
} else if (layer == 'tunnel' && cls == 'path') {
|
||||||
stroke.setColor('#cba');
|
stroke.setColor('#cba');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'tunnel' && cls == 'major_rail') {
|
} else if (layer == 'tunnel' && cls == 'major_rail') {
|
||||||
stroke.setColor('#bbb');
|
stroke.setColor('#bbb');
|
||||||
stroke.setWidth(1.4);
|
stroke.setWidth(2);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'road' && cls == 'motorway_link') {
|
} else if (layer == 'road' && cls == 'motorway_link') {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'road' && (cls == 'street' ||
|
} else if (layer == 'road' && (cls == 'street' ||
|
||||||
cls == 'street_limited') && geom == 'LineString') {
|
cls == 'street_limited') && geom == 'LineString') {
|
||||||
stroke.setColor('#cfcdca');
|
stroke.setColor('#cfcdca');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'road' && cls == 'main' &&
|
} else if (layer == 'road' && cls == 'main' &&
|
||||||
resolution <= 1222.99245256282) {
|
resolution <= 1222.99245256282) {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'road' && cls == 'motorway' &&
|
} else if (layer == 'road' && cls == 'motorway' &&
|
||||||
resolution <= 4891.96981025128) {
|
resolution <= 4891.96981025128) {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'road' && cls == 'path') {
|
} else if (layer == 'road' && cls == 'path') {
|
||||||
stroke.setColor('#cba');
|
stroke.setColor('#cba');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'road' && cls == 'major_rail') {
|
} else if (layer == 'road' && cls == 'major_rail') {
|
||||||
stroke.setColor('#bbb');
|
stroke.setColor('#bbb');
|
||||||
stroke.setWidth(1.4);
|
stroke.setWidth(2);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'bridge' && cls == 'motorway_link') {
|
} else if (layer == 'bridge' && cls == 'motorway_link') {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'bridge' && cls == 'motorway') {
|
} else if (layer == 'bridge' && cls == 'motorway') {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'bridge' && cls == 'service') {
|
} else if (layer == 'bridge' && cls == 'service') {
|
||||||
stroke.setColor('#cfcdca');
|
stroke.setColor('#cfcdca');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'bridge' &&
|
} else if (layer == 'bridge' &&
|
||||||
(cls == 'street' || cls == 'street_limited')) {
|
(cls == 'street' || cls == 'street_limited')) {
|
||||||
stroke.setColor('#cfcdca');
|
stroke.setColor('#cfcdca');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'bridge' && cls == 'main' &&
|
} else if (layer == 'bridge' && cls == 'main' &&
|
||||||
resolution <= 1222.99245256282) {
|
resolution <= 1222.99245256282) {
|
||||||
stroke.setColor('#e9ac77');
|
stroke.setColor('#e9ac77');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'bridge' && cls == 'path') {
|
} else if (layer == 'bridge' && cls == 'path') {
|
||||||
stroke.setColor('#cba');
|
stroke.setColor('#cba');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'bridge' && cls == 'major_rail') {
|
} else if (layer == 'bridge' && cls == 'major_rail') {
|
||||||
stroke.setColor('#bbb');
|
stroke.setColor('#bbb');
|
||||||
stroke.setWidth(1.4);
|
stroke.setWidth(2);
|
||||||
styles[length++] = line;
|
styles[length++] = line;
|
||||||
} else if (layer == 'admin' && adminLevel >= 3 && maritime === 0) {
|
} else if (layer == 'admin' && adminLevel >= 3 && maritime === 0) {
|
||||||
stroke.setColor('#9e9cab');
|
stroke.setColor('#9e9cab');
|
||||||
@@ -227,7 +227,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
'italic 11px "Open Sans", "Arial Unicode MS"');
|
'italic 11px "Open Sans", "Arial Unicode MS"');
|
||||||
fill.setColor('#74aee9');
|
fill.setColor('#74aee9');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(0.75);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'marine_label' && labelrank === 2 &&
|
} else if (layer == 'marine_label' && labelrank === 2 &&
|
||||||
geom == 'Point') {
|
geom == 'Point') {
|
||||||
@@ -236,7 +236,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
'italic 11px "Open Sans", "Arial Unicode MS"');
|
'italic 11px "Open Sans", "Arial Unicode MS"');
|
||||||
fill.setColor('#74aee9');
|
fill.setColor('#74aee9');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(0.75);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'marine_label' && labelrank === 3 &&
|
} else if (layer == 'marine_label' && labelrank === 3 &&
|
||||||
geom == 'Point') {
|
geom == 'Point') {
|
||||||
@@ -245,7 +245,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
'italic 10px "Open Sans", "Arial Unicode MS"');
|
'italic 10px "Open Sans", "Arial Unicode MS"');
|
||||||
fill.setColor('#74aee9');
|
fill.setColor('#74aee9');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(0.75);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'marine_label' && labelrank === 4 &&
|
} else if (layer == 'marine_label' && labelrank === 4 &&
|
||||||
geom == 'Point') {
|
geom == 'Point') {
|
||||||
@@ -254,7 +254,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
'italic 9px "Open Sans", "Arial Unicode MS"');
|
'italic 9px "Open Sans", "Arial Unicode MS"');
|
||||||
fill.setColor('#74aee9');
|
fill.setColor('#74aee9');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(0.75);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'place_label' && type == 'city' &&
|
} else if (layer == 'place_label' && type == 'city' &&
|
||||||
resolution <= 1222.99245256282) {
|
resolution <= 1222.99245256282) {
|
||||||
@@ -262,7 +262,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
text.getText().setFont('11px "Open Sans", "Arial Unicode MS"');
|
text.getText().setFont('11px "Open Sans", "Arial Unicode MS"');
|
||||||
fill.setColor('#333');
|
fill.setColor('#333');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'place_label' && type == 'town' &&
|
} else if (layer == 'place_label' && type == 'town' &&
|
||||||
resolution <= 305.748113140705) {
|
resolution <= 305.748113140705) {
|
||||||
@@ -270,7 +270,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
text.getText().setFont('9px "Open Sans", "Arial Unicode MS"');
|
text.getText().setFont('9px "Open Sans", "Arial Unicode MS"');
|
||||||
fill.setColor('#333');
|
fill.setColor('#333');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'place_label' && type == 'village' &&
|
} else if (layer == 'place_label' && type == 'village' &&
|
||||||
resolution <= 38.21851414258813) {
|
resolution <= 38.21851414258813) {
|
||||||
@@ -278,7 +278,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
text.getText().setFont('8px "Open Sans", "Arial Unicode MS"');
|
text.getText().setFont('8px "Open Sans", "Arial Unicode MS"');
|
||||||
fill.setColor('#333');
|
fill.setColor('#333');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'place_label' &&
|
} else if (layer == 'place_label' &&
|
||||||
resolution <= 19.109257071294063 && (type == 'hamlet' ||
|
resolution <= 19.109257071294063 && (type == 'hamlet' ||
|
||||||
@@ -287,7 +287,7 @@ function createMapboxStreetsV6Style() {
|
|||||||
text.getText().setFont('bold 9px "Arial Narrow"');
|
text.getText().setFont('bold 9px "Arial Narrow"');
|
||||||
fill.setColor('#633');
|
fill.setColor('#633');
|
||||||
stroke.setColor('rgba(255,255,255,0.8)');
|
stroke.setColor('rgba(255,255,255,0.8)');
|
||||||
stroke.setWidth(1.2);
|
stroke.setWidth(1);
|
||||||
styles[length++] = text;
|
styles[length++] = text;
|
||||||
} else if (layer == 'poi_label' && resolution <= 19.109257071294063 &&
|
} else if (layer == 'poi_label' && resolution <= 19.109257071294063 &&
|
||||||
scalerank == 1 && maki !== 'marker') {
|
scalerank == 1 && maki !== 'marker') {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Rotation example
|
title: Rotation example
|
||||||
shortdesc: Example of a rotated map.
|
shortdesc: Example of a rotated map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Scale line example
|
title: Scale line example
|
||||||
shortdesc: Example of a scale line.
|
shortdesc: Example of a scale line.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Select features example
|
title: Select features example
|
||||||
shortdesc: Example of using the Select interaction.
|
shortdesc: Example of using the Select interaction.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Semi-transparent layer example
|
title: Semi-transparent layer example
|
||||||
shortdesc: Example of a map with a semi-transparent layer.
|
shortdesc: Example of a map with a semi-transparent layer.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Shaded Relief
|
title: Shaded Relief
|
||||||
shortdesc: Calculate shaded relief from elevation data
|
shortdesc: Calculate shaded relief from elevation data
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Side-by-side example
|
title: Side-by-side example
|
||||||
shortdesc: The three maps, one WebGL, one Canvas, one DOM, share the same center, resolution, rotation and layers.
|
shortdesc: The three maps, one WebGL, one Canvas, one DOM, share the same center, resolution, rotation and layers.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Simple example
|
title: Simple example
|
||||||
shortdesc: Example of a simple map.
|
shortdesc: Example of a simple map.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
template: example.html
|
layout: example.html
|
||||||
title: Snap interaction example
|
title: Snap interaction example
|
||||||
shortdesc: Example of using the snap interaction together with draw and modify interactions.
|
shortdesc: Example of using the snap interaction together with draw and modify interactions.
|
||||||
docs: >
|
docs: >
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user