Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase Pullrequest #690 #1

Closed
wants to merge 70 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
1394d05
Exclude vector tile layers from synchronization
mschulz-716 Jan 25, 2019
8c41e59
Merge pull request #691 from mschulz-716/exclude_vector_tile_layers
gberaudo Jan 28, 2019
f5824a1
Convert olcsx to typedef
sbrunner Jan 30, 2019
1f82478
Deploy the documentation with typedoc
sbrunner Jan 30, 2019
5f8302d
Merge pull request #692 from sbrunner/mv-olcsx
gberaudo Feb 5, 2019
47171de
Update dependencies
gberaudo Feb 8, 2019
f308c43
Improve npm publication
gberaudo Feb 8, 2019
603c3d7
Merge pull request #693 from openlayers/prepare_version_2.7.0
gberaudo Feb 8, 2019
f92497f
cameraExtentInRadians is optional
sbrunner Feb 8, 2019
ba88faf
Merge pull request #694 from sbrunner/cameraExtentInRadians
gberaudo Feb 11, 2019
255fbbf
Fix a type
gberaudo Feb 12, 2019
27b3fd9
Merge pull request #695 from openlayers/fix_type
gberaudo Feb 12, 2019
a5be5ff
Bump patch version
gberaudo Feb 12, 2019
92276f2
Revert "Improve npm publication"
gberaudo Feb 12, 2019
6ea7d88
Release a new version
gberaudo Feb 8, 2019
18cfab6
Fix npmignore
gberaudo Feb 8, 2019
88c9a42
Update .npmignore
gberaudo Feb 12, 2019
45bad19
Merge pull request #696 from openlayers/fix_the_mess
gberaudo Feb 12, 2019
b6b3f0b
Change image WMS server
gberaudo Mar 12, 2019
26f290c
Update dependencies
gberaudo Mar 12, 2019
33483fb
Update changes file
gberaudo Mar 12, 2019
53efa60
Merge pull request #698 from openlayers/update_cesium
gberaudo Mar 13, 2019
4394cf7
Bump version
gberaudo Mar 13, 2019
c6e9cfd
Do not publish zip files to npm
gberaudo Mar 13, 2019
b78d0fe
Fix jekyll config to not exclude node_modules
gberaudo Mar 14, 2019
cf18843
Port to Cesium 1.56
gberaudo Apr 4, 2019
642e1e2
Merge pull request #701 from openlayers/port_to_cesium_1.56
gberaudo Apr 5, 2019
737d7be
Remove unnecessary type cast
fredj Apr 15, 2019
3b5caee
Merge pull request #702 from openlayers/cleanup
fredj Apr 15, 2019
79e7d06
Add a WMTS example
gberaudo Apr 23, 2019
202e561
Fix eslint
gberaudo Apr 23, 2019
1557ec7
Merge pull request #704 from openlayers/add_wmts_example
gberaudo Apr 23, 2019
239c6ca
Fix crash converting feature without style
gberaudo Jun 13, 2019
16c0c79
Merge pull request #710 from openlayers/fix_feature_without_style_con…
gberaudo Jun 14, 2019
320696c
Fix conversion of icon anchor to pixelOffset
Flowm Sep 17, 2019
79109e3
Merge pull request #712 from Flowm/fix-icon-offset
gberaudo Sep 18, 2019
3bf8a35
Update OpenLayers version to 6.0.1
fredj Oct 3, 2019
8bda0ef
Update other dependencies
gberaudo Oct 7, 2019
d3be599
Use standard "npm start"
gberaudo Oct 7, 2019
28a1aa8
Remove unused overlay display rules
gberaudo Oct 7, 2019
14c6b49
Use class getter / setter
fredj Oct 7, 2019
71ba1cf
Add missing js extension in import
fredj Oct 7, 2019
1551f50
Remove openlayers_src temporary hack
fredj Oct 7, 2019
b13dc6f
Update OL version in old fashioned example
gberaudo Oct 7, 2019
1882b9a
Update server URL
gberaudo Oct 7, 2019
59ee973
Vector layers now require a source
gberaudo Oct 7, 2019
cc1584b
Restore support for OpenLayers before version 6
gberaudo Oct 8, 2019
623c248
Merge pull request #714 from fredj/ol_6
fredj Oct 8, 2019
1e878b6
Fix new coordinate detection
gberaudo Oct 10, 2019
c7d534c
Merge pull request #715 from openlayers/fix_new_coordinates_detection
gberaudo Oct 10, 2019
f327df2
Switch to upstream Cesium 1.62
gberaudo Oct 10, 2019
a7164cf
Fix zIndex sorting
gberaudo Oct 10, 2019
cff9a74
Fix use of DOM values in rastersync example
gberaudo Oct 10, 2019
ff3658e
Update changelogs
gberaudo Oct 10, 2019
d5100b6
Move to Mapbox API v4 (+ define some API key)
gberaudo Oct 10, 2019
1031d79
Disable stupid eslint rule
gberaudo Oct 10, 2019
12b5c68
Merge pull request #716 from openlayers/upgrade_cesium
gberaudo Oct 10, 2019
5732d19
Remove exports from examples
fredj Oct 10, 2019
2ef1b76
Simplify export
fredj Oct 10, 2019
e74e028
Use github action
fredj Oct 10, 2019
20bbb7d
Merge pull request #717 from fredj/cleanup
fredj Oct 10, 2019
0925007
Fix spelling
fredj Oct 10, 2019
7d477d1
Merge pull request #718 from fredj/spelling
fredj Oct 10, 2019
e44f4ce
Bump @mapbox/geojsonhint from 2.0.1 to 3.0.0
dependabot-preview[bot] Oct 21, 2019
0fd4f90
Merge pull request #719 from openlayers/dependabot/npm_and_yarn/mapbo…
fredj Oct 21, 2019
7026e7b
Fix typo
onagurna Oct 21, 2019
95d3713
Merge pull request #720 from onagurna/master
fredj Oct 22, 2019
c179a89
Report previous branch modifications for raster reprojection - change…
Nov 5, 2019
1e4458c
fixed make check errors
Nov 5, 2019
f169358
fix dist errors
Nov 6, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
comma-dangle: 0,
no-extra-boolean-cast: 0,
brace-style: 0,
prefer-template: 0,
no-multiple-empty-lines: 0,
valid-jsdoc: 0,
indent: [2, 2, {
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test

on:
pull_request:
branches:
- master

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Make dist
run: make dist
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/.build
/.idea
/dist
/node_modules
/.build/
/dist/
/node_modules/
/examples/example-list.js
/package-lock.json
/compilation-stats.json
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.build
/.idea
examples/example-list.js
/*.tgz
/*.zip
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

32 changes: 32 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Changelog

# v 2.10 - 2019-10-10

* Changes
* Add a WMTS example.
* Port to Cesium 1.62.
* Port to OpenLayers 6 while staying compatible with OpenLayers 5.

# v 2.9 - 2019-04-05

* Changes
* Port to Cesium 1.56.1.

# v 2.8 - 2019-03-13

* Changes
* Port to Cesium 1.55.

# v 2.7.2 - 2019-02-12

* Changes
* Fix a type

# v 2.7.1 - 2019-02-08

* Changes
* Fix release

# v 2.7 - 2019-02-08
* Changes
* Port to Cesium 1.54.
* Document code using typescript.

# v 2.6 - 2018-12-06

* Changes
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ help:

.PHONY: serve
serve: .build/node_modules.timestamp
npm run serve
npm start

.PHONY: dist
dist: dist/olcesium.js css/olcs.css CHANGES.md .build/jsdoc.timestamp .build/dist-examples.timestamp lint
Expand All @@ -36,8 +36,7 @@ dist-examples: .build/dist-examples.timestamp
dist-apidoc: .build/jsdoc.timestamp

.build/jsdoc.timestamp: $(SRC_JS_FILES) .build/node_modules.timestamp
mkdir -p dist
node node_modules/.bin/jsdoc src/olcs -d dist/apidoc
npm run doc
mkdir -p $(dir $@)
touch $@

Expand Down Expand Up @@ -71,7 +70,7 @@ cleanall:
TARGET=examples ./node_modules/.bin/eslint $(filter-out .build/node_modules.timestamp, $^)
touch $@

CS_BUILD=node_modules/@camptocamp/cesium/Build
CS_BUILD=node_modules/cesium/Build
OL_CSS_DIR=node_modules/ol
.build/dist-examples.timestamp: dist/examples/index.html $(EXAMPLES_FILES) $(WEBPACK_CONFIG_FILES) .build/node_modules.timestamp
npm run build-examples
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ol3d.setEnabled(true);
For Cesium integration see [ol-cesium-webpack-example](https://github.com/gberaudo/ol-cesium-webpack-example)
based on the official `Cesium With Webpack` example.

### As an old-fashioned independant library
### As an old-fashioned independent library

- build the library in dist/olcs.js:
```bash
Expand Down Expand Up @@ -110,7 +110,7 @@ Limitations
-----------

- OpenLayers unmanaged layers are not discoverable and as a consequence not
supported. Plain layers should be used instead or the synchronization managed
supported. Plain layers should be used instead of the synchronization managed
manually. See https://github.com/openlayers/ol-cesium/issues/350.

- OpenLayers interactions are not supported in 3d. See https://github.com/openlayers/ol-cesium/issues/655.
Expand Down
8 changes: 2 additions & 6 deletions examples/bing.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* @module examples.main
*/
const exports = {};

import OLCesium from 'olcs/OLCesium.js';
import olView from 'ol/View.js';
import {defaults as olControlDefaults} from 'ol/control.js';
Expand All @@ -23,9 +21,9 @@ const ol2d = new olMap({
],
controls: olControlDefaults({
attribution: true,
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand All @@ -45,5 +43,3 @@ scene.terrainProvider = Cesium.createWorldTerrain();
ol3d.setEnabled(true);

document.getElementById('enable').addEventListener('click', () => ol3d.setEnabled(!ol3d.getEnabled()));

export default exports;
3 changes: 0 additions & 3 deletions examples/customProj.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @module examples.customProj
*/
const exports = {};
import OLCesium from 'olcs/OLCesium.js';
import olView from 'ol/View.js';
import olSourceImageWMS from 'ol/source/ImageWMS.js';
Expand Down Expand Up @@ -71,5 +70,3 @@ scene.terrainProvider = Cesium.createWorldTerrain();
ol3d.setEnabled(true);

document.getElementById('enable').addEventListener('click', () => ol3d.setEnabled(!ol3d.getEnabled()));

export default exports;
3 changes: 0 additions & 3 deletions examples/exports.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @module examples.exports
*/
const exports = {};
import OLCesium from 'olcs/OLCesium.js';
import {transform} from 'ol/proj.js';
import olView from 'ol/View.js';
Expand Down Expand Up @@ -44,5 +43,3 @@ setInterval(printInfo, 100);
document.getElementById('enable').addEventListener('click', () => ol3d.setEnabled(!ol3d.getEnabled()));
window['camera'] = camera;
window['olProjTransform'] = transform;

export default exports;
7 changes: 2 additions & 5 deletions examples/fillstyle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @module examples.vectors
*/
const exports = {};
import OLCesium from 'olcs/OLCesium.js';
import olView from 'ol/View.js';
import {defaults as olControlDefaults} from 'ol/control.js';
Expand Down Expand Up @@ -66,9 +65,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [-2e6, 1e6],
Expand Down Expand Up @@ -97,5 +96,3 @@ window['toggleClampToGround'] = function() {
map.removeLayer(vectorLayer);
map.addLayer(vectorLayer);
};

export default exports;
12 changes: 4 additions & 8 deletions examples/groundvectors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @module examples.vectors
*/
const exports = {};
import OLCesium from 'olcs/OLCesium.js';
import olView from 'ol/View.js';
import {defaults as olControlDefaults} from 'ol/control.js';
Expand All @@ -16,8 +15,8 @@ import olStyleCircle from 'ol/style/Circle.js';
import olSourceVector from 'ol/source/Vector.js';
import olFormatGeoJSON from 'ol/format/GeoJSON.js';
import olLayerVector from 'ol/layer/Vector.js';
import olFeature from 'ol/Feature';
import olCircle from 'ol/geom/Circle';
import olFeature from 'ol/Feature.js';
import olCircle from 'ol/geom/Circle.js';

const image = new olStyleCircle({
radius: 5,
Expand Down Expand Up @@ -124,9 +123,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [16880670.33392873, -3565966.2275828626],
Expand Down Expand Up @@ -156,6 +155,3 @@ window['scene'] = scene;
document.getElementById('enable').addEventListener('click', () => ol3d.setEnabled(!ol3d.getEnabled()));

ol3d.enableAutoRenderLoop();


export default exports;
8 changes: 2 additions & 6 deletions examples/icon-position.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @module examples.vectors
*/
const exports = {};
import OLCesium from 'olcs/OLCesium.js';
import olView from 'ol/View.js';
import {defaults as olControlDefaults} from 'ol/control.js';
Expand Down Expand Up @@ -81,9 +80,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [850000, 200000],
Expand Down Expand Up @@ -124,6 +123,3 @@ if (pivot) {
const rotateAroundAxis = olcsCore.rotateAroundAxis;
rotateAroundAxis(camera, -Math.PI / 4, axis, transform, options);
}


export default exports;
8 changes: 2 additions & 6 deletions examples/image-static.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @module examples.image-static
*/
const exports = {};
import OLCesium from 'olcs/OLCesium.js';
import {transform} from 'ol/proj.js';
import olView from 'ol/View.js';
Expand Down Expand Up @@ -32,9 +31,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand All @@ -53,6 +52,3 @@ ol3d.setEnabled(true);


document.getElementById('enable').addEventListener('click', () => ol3d.setEnabled(!ol3d.getEnabled()));


export default exports;
10 changes: 3 additions & 7 deletions examples/imageWMS.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* @module examples.main
*/
const exports = {};

import OLCesium from 'olcs/OLCesium.js';
import olView from 'ol/View.js';
import {defaults as olControlDefaults} from 'ol/control.js';
Expand All @@ -13,7 +11,7 @@ import olLayerTile from 'ol/layer/Tile.js';
import olMap from 'ol/Map.js';

const imageWMSSource = new olSourceImageWMS({
url: 'https://demo.boundlessgeo.com/geoserver/wms',
url: 'https://ahocevar.com/geoserver/wms',
params: {'LAYERS': 'topp:states'},
ratio: 1
});
Expand All @@ -30,9 +28,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand All @@ -52,5 +50,3 @@ scene.terrainProvider = Cesium.createWorldTerrain();
ol3d.setEnabled(true);

document.getElementById('enable').addEventListener('click', () => ol3d.setEnabled(!ol3d.getEnabled()));

export default exports;
2 changes: 1 addition & 1 deletion examples/inject_ol_cesium.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
window.IS_DEV = isDev;
var cs = isDev ? 'CesiumUnminified/Cesium.js' : 'Cesium/Cesium.js';

window.CESIUM_URL = `../node_modules/@camptocamp/cesium/Build/${cs}`;
window.CESIUM_URL = `../node_modules/cesium/Build/${cs}`;
if (!window.LAZY_CESIUM) {
document.write(`<scr${'i'}pt type="text/javascript" src="${window.CESIUM_URL}"></scr${'i'}pt>`);
}
Expand Down
7 changes: 2 additions & 5 deletions examples/kml.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @module examples.kml
*/
const exports = {};
import OLCesium from 'olcs/OLCesium.js';
import {transform} from 'ol/proj.js';
import olView from 'ol/View.js';
Expand All @@ -18,9 +17,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand All @@ -42,5 +41,3 @@ ol3d.getDataSources().add(Cesium.KmlDataSource.load(
));

document.getElementById('enable').addEventListener('click', () => ol3d.setEnabled(!ol3d.getEnabled()));

export default exports;
Loading