Compare commits

...

61 Commits

Author SHA1 Message Date
Tim Schaub
bb5377fb8c Merge pull request #4399 from openlayers/release-v3.11.0
Release v3.11.0.
2015-11-11 14:46:44 -07:00
Tim Schaub
657af1983d Update package version to 3.11.0 2015-11-11 14:25:37 -07:00
Tim Schaub
ab7e608129 Changelog for v3.11.0 2015-11-11 14:24:56 -07:00
Tim Schaub
0c2c058534 Merge pull request #4394 from openlayers/silent-update
Allow ol.Object property update without notification.
2015-11-11 12:59:06 -07:00
Tim Schaub
a9987de308 Merge pull request #4395 from adube/api-styletext-offsetxy
Flag ol.style.Text setOffsetX and Y as @api.
2015-11-11 11:15:17 -07:00
Tim Schaub
c02fdf2393 Doc corrections and truthy check 2015-11-11 11:12:58 -07:00
Alexandre Dubé
ca50e9e5b7 Flag ol.style.Text setOffsetX and Y as @api 2015-11-11 12:44:12 -05:00
DavidHequet
069a81db74 Allow ol.Object property update without notification
Add an optional notify argument to object set and setProperties methods.

If the argument is not provided, set and setProperties trigger an event.

If you update many objects or do so frequently and do not need notification, performance is improved by setting silent to true.
2015-11-11 10:35:30 -07:00
Andreas Hocevar
df460d2ed1 Merge pull request #4393 from ahocevar/faster-vector-tiles
Faster vector tiles
2015-11-10 19:15:30 +01:00
Andreas Hocevar
b29b969cfe Avoid goog.getUid() with empty skippedFeaturesHash 2015-11-10 19:01:03 +01:00
Andreas Hocevar
a020251f69 Do not use fractional stroke widths 2015-11-10 18:43:28 +01:00
Tim Schaub
b2292cc6fd Merge pull request #4392 from openlayers/greenkeeper-clean-css-3.4.7
Update clean-css to version 3.4.7 🚀
2015-11-10 08:47:50 -07:00
greenkeeperio-bot
647c1a6351 chore(package): update clean-css to version 3.4.7
http://greenkeeper.io/
2015-11-10 07:55:13 -07:00
Andreas Hocevar
bfbb802b85 Merge pull request #4391 from ahocevar/unmanaged-layer-foreachfeatureatpixel
Pass null as forEachFeatureAtPixel layer arg for unmanaged layers
2015-11-09 10:19:26 +01:00
Andreas Hocevar
a446147902 Add upgrade note about forEachFeatureAtPixel change 2015-11-09 09:45:21 +01:00
Andreas Hocevar
d968f32456 Exclude unmanaged layers from selection 2015-11-09 09:45:21 +01:00
Andreas Hocevar
1aea2c2b0c Pass null as forEachFeatureAtPixel layer arg for unmanaged layers 2015-11-09 09:45:21 +01:00
Andreas Hocevar
5b817f3146 Merge pull request #4390 from ahocevar/fix-mocha-phantomjs-usage
Fix usage of mocha-phantomjs-core after update
2015-11-07 07:37:08 +01:00
Andreas Hocevar
a58f66a9a9 Fix usage of mocha-phantomjs-core after update 2015-11-06 20:34:30 +01:00
Andreas Hocevar
8e15f80d7a Merge pull request #4387 from ahocevar/common-renderer-default
Add default argument to getRendererFromQueryString
2015-11-06 17:11:35 +01:00
Andreas Hocevar
a35b3a5f52 Add default argument to getRendererFromQueryString 2015-11-06 16:58:58 +01:00
Éric Lemoine
9cf26f1fac Merge pull request #4376 from elemoine/kml-non-icon
Make KML format ignore image styles that aren't icons
2015-11-06 16:46:10 +01:00
Bart van den Eijnden
fadf63cbd0 Merge pull request #4385 from oterral/scaledflt
Don't transform the scale specified by the user
2015-11-06 16:23:41 +01:00
Éric Lemoine
daa970fe4c Make KML format ignore image styles that aren't icons 2015-11-06 15:35:20 +01:00
Andreas Hocevar
3254e08785 Merge pull request #4388 from ahocevar/fix-mocha-phantomjs
Quick-fix running tests with PhantomJS
2015-11-06 15:04:27 +01:00
Andreas Hocevar
544f951c14 Quick-fix running tests with PhantomJS 2015-11-06 14:50:58 +01:00
oterral
08a640b793 Don't transform the scale specified by the user 2015-11-06 14:29:16 +01:00
Éric Lemoine
d29f3b9068 Merge pull request #4378 from elemoine/kml-write-styles
Add a writeStyles option to KML format
2015-11-06 11:26:48 +01:00
Andreas Hocevar
d68991e982 Merge pull request #4375 from simonseyock/master
Fixed documentation typo (ol.source.ImageWMS)
2015-11-05 08:11:26 +01:00
Éric Lemoine
5c536aafc7 Add a writeStyles option to KML format 2015-11-04 17:12:04 +01:00
Simon Seyock
757d46541c Fixed documentation error
the imageLoadFunction you can give the constructor of ol.source.ImageWMS is an ol.ImageLoadFunctionType not an ol.TileLoadFunctionType
2015-11-04 12:56:41 +01:00
Éric Lemoine
dc3bf0d04b Merge pull request #4371 from dtreiter/master
Fix typo in closure compilation tutorial
2015-11-03 21:52:52 +01:00
Daniel Reiter
9cde0ab860 Fix typo in closure compilation tutorial 2015-11-03 14:37:37 -06:00
Bart van den Eijnden
bb00f4dafd Merge pull request #4370 from jonataswalker/getLayer-improve-docs
Improve ol.interaction.Select#getLayer documentation.
2015-11-03 18:58:52 +01:00
jonataswalker
16670e4015 Improve ol.interaction.Select#getLayer documentation. 2015-11-03 14:35:17 -02:00
Tim Schaub
4b85dd89a5 Merge pull request #4365 from openlayers/greenkeeper-fs-extra-0.26.2
Update fs-extra to version 0.26.2 🚀
2015-11-03 07:45:46 -08:00
Tim Schaub
71f7c70279 Merge pull request #4366 from openlayers/greenkeeper-resemblejs-2.0.1
Update resemblejs to version 2.0.1 🚀
2015-11-03 07:43:49 -08:00
Marc Jansen
2d24c8942e Merge pull request #4368 from marcjansen/fix-4367
Append KML placemark text style to existing styles
2015-11-03 15:06:33 +01:00
Marc Jansen
d24dcc7753 Be less verbose when creating text style 2015-11-03 14:27:06 +01:00
Marc Jansen
bea1501bb7 Append textStyle to existing style 2015-11-03 14:26:16 +01:00
greenkeeperio-bot
5751d342ff chore(package): update resemblejs to version 2.0.1
http://greenkeeper.io/
2015-11-03 02:21:55 -08:00
greenkeeperio-bot
8514a85353 chore(package): update fs-extra to version 0.26.2
http://greenkeeper.io/
2015-11-02 19:07:52 -08:00
Éric Lemoine
ad85e0e98d Merge pull request #4361 from elemoine/gpx
Make GPX format not fail on unsupported geometries
2015-11-02 17:54:47 +01:00
Frédéric Junod
66a99dd6c4 Merge pull request #4360 from fredj/getExtent_undef
Update getExtent return value jsdoc tag
2015-11-02 16:56:08 +01:00
Frederic Junod
eb762b6f4a Update getExtent return value jsdoc tag
The extent is never `null`; if the source is empty, the extent is
`[Infinity, Infinity, -Infinity, -Infinity]`
2015-11-02 16:30:54 +01:00
Éric Lemoine
14a1add08d Make GPX format no fail on unsupported geometries 2015-11-02 16:26:17 +01:00
Éric Lemoine
cbd1aee0cc Remove describe('readFeatures') in GPX tests
Just a remove an unnecessary level of nesting. No functional change.
2015-11-02 15:58:47 +01:00
Frédéric Junod
135d66dac7 Merge pull request #4359 from openlayers/greenkeeper-closure-util-1.9.0
Update closure-util to version 1.9.0 🚀
2015-11-02 14:31:26 +01:00
greenkeeperio-bot
3f30072de5 chore(package): update closure-util to version 1.9.0
http://greenkeeper.io/
2015-11-02 05:44:34 -07:00
Tim Schaub
925a89ecdb Merge pull request #4357 from openlayers/greenkeeper-update-all
Update all dependencies.
2015-11-01 10:31:01 -07:00
Tim Schaub
d5c7f805ab Unregister postrender listener in tests 2015-11-01 09:03:23 -07:00
greenkeeperio-bot
67f42ed33a chore(package): update dependencies
http://greenkeeper.io/
2015-11-01 08:30:06 -07:00
Tim Schaub
610ed7294f Merge pull request #4356 from tschaub/metalsmith-updates
Update Metalsmith and layouts plugin.
2015-11-01 08:28:08 -07:00
Tim Schaub
6c813020c2 Correct error message for missing layout property 2015-11-01 08:15:05 -07:00
Tim Schaub
0149924551 Update Metalsmith and layout plugin 2015-11-01 02:18:09 -07:00
Tim Schaub
85264111cd Merge pull request #4355 from tschaub/phantom-update
Update PhantomJS.
2015-11-01 01:57:38 -07:00
Tim Schaub
921d736340 Run tests with Node 4 on Trusty 2015-11-01 01:19:07 -07:00
Tim Schaub
98c9b0eb39 Update phantomjs and use mocha-phantomjs-core 2015-11-01 01:18:59 -07:00
Tim Schaub
7946298e67 Merge pull request #4353 from tschaub/jsdoc-forked
Resolve path to jsdoc-fork.
2015-10-31 15:23:41 -06:00
Tim Schaub
c0271e3509 Prune before installing 2015-10-31 15:11:54 -06:00
Tim Schaub
ad3ee7cb33 Correctly resolve path to jsdoc 2015-10-31 15:10:05 -06:00
171 changed files with 1100 additions and 815 deletions

View File

@@ -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"

View File

@@ -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
View 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))

View File

@@ -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!

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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"

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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({

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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"

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -1,5 +1,5 @@
--- ---
template: example.html layout: example.html
title: Overlay example title: Overlay example
shortdesc: Demonstrates overlays. shortdesc: Demonstrates overlays.
docs: > docs: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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.

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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;
} }
}; };

View File

@@ -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') {

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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: >

View File

@@ -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