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

Compile OL3-Cesium together with OL3 #289

Merged
merged 4 commits into from
Nov 19, 2015

Conversation

gberaudo
Copy link
Member

OL3-Cesium used to be compiled against OL3 externs.
This was unnatural for a Closure project and had shortcomings:

  • a custom closure compiler was required;
  • we were restricted to OL3 @api symbols;
  • OL3 externs were sometimes buggy;
  • the goog library was included twice;
    ...

This change bundles the OL3 code together with OL3-Cesium, which is already what we do in Ngeo.
This will allow adding client side raster reprojection in the future.

OL3-Cesium used to be compiled against OL3 externs.
This was unnatural for a Closure project and had shortcomings:
- a custom closure compiler was required;
- we were restricted to OL3 @api symbols;
- OL3 externs were sometimes buggy;
- the goog library was included twice;
...

This change bundles the OL3 code together with OL3-Cesium,
which is equivalent to what does Ngeo.
@@ -1,4 +1,4 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about removing this file?

Exports are read both from OL3 and from OL3-Cesium.
@gberaudo
Copy link
Member Author

@fredj, I removed the file and instead put instructions in the CONTRIBUTING.md
file. I also fixed travis.

@fredj
Copy link
Member

fredj commented Nov 19, 2015

+1

@gberaudo
Copy link
Member Author

Thanks for the review @fredj.
We decided on this at FOSDEM 2015 Seoul; I will now merge it.

gberaudo added a commit that referenced this pull request Nov 19, 2015
Compile OL3-Cesium together with OL3
@gberaudo gberaudo merged commit dbbc31d into openlayers:master Nov 19, 2015
@gberaudo gberaudo deleted the compile_with_ol3 branch November 19, 2015 15:31
gberaudo added a commit to geoadmin/mf-geoadmin3 that referenced this pull request Nov 19, 2015
Required following openlayers/ol-cesium#289.


As a side note, the total size of app + ol3 + ol3-cesium is now
around 15K lighter (before gzip).
gberaudo added a commit to geoadmin/mf-geoadmin3 that referenced this pull request Nov 27, 2015
Required following openlayers/ol-cesium#289.

Changes:
- Rename the 'ga' angular module to 'geoadmin' to prevent conflict with
  a 'ga' minified symbol from the OL3/OL3-Cesium compilation;
- Rename 'ga.GaRasterSynchronizer' to 'olcs.GaRasterSynchronizer' to
  prevent similar conflict;
- Rename production Cesium.js to Cesium.min.js to help spot
  unminified/minified mismatch and added an angular 'buildMode' config
  which is now tested to know which Cesium version to load (debug or
  prod);
- Remove 'ol' target. OL3 is now checkouted in 'ol3-cesium/ol3';
- Compile OL3 and OL3-Cesium together.

As a side note, the total size of app + ol3 + ol3-cesium is now
around 15K lighter (before gzip).
gberaudo added a commit to geoadmin/mf-geoadmin3 that referenced this pull request Nov 30, 2015
Required following openlayers/ol-cesium#289.

Changes:
- Rename the 'ga' angular module to 'geoadmin' to prevent conflict with
  a 'ga' minified symbol from the OL3/OL3-Cesium compilation;
- Rename 'ga.GaRasterSynchronizer' to 'olcs.GaRasterSynchronizer' to
  prevent similar conflict;
- Rename production Cesium.js to Cesium.min.js to help spot
  unminified/minified mismatch and added an angular 'buildMode' config
  which is now tested to know which Cesium version to load (debug or
  prod);
- Remove 'ol' target. OL3 is now checkouted in 'ol3-cesium/ol3';
- Compile OL3 and OL3-Cesium together.

As a side note, the total size of app + ol3 + ol3-cesium is now
around 15K lighter (before gzip).
gberaudo added a commit to geoadmin/mf-geoadmin3 that referenced this pull request Dec 1, 2015
Required following openlayers/ol-cesium#289.

Changes:
- Rename the 'ga' angular module to 'geoadmin' to prevent conflict with
  a 'ga' minified symbol from the OL3/OL3-Cesium compilation;
- Rename 'ga.GaRasterSynchronizer' to 'olcs.GaRasterSynchronizer' to
  prevent similar conflict;
- Rename production Cesium.js to Cesium.min.js to help spot
  unminified/minified mismatch and added an angular 'buildMode' config
  which is now tested to know which Cesium version to load (debug or
  prod);
- Remove 'ol' target. OL3 is now checkouted in 'ol3-cesium/ol3';
- Compile OL3 and OL3-Cesium together.

As a side note, the total size of app + ol3 + ol3-cesium is now
around 15K lighter (before gzip).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants