-
Notifications
You must be signed in to change notification settings - Fork 329
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
Vectors without hard ol3 pr dependency #42
Vectors without hard ol3 pr dependency #42
Conversation
@@ -103,7 +103,8 @@ olcs.RasterSynchronizer.prototype.synchronize = function() { | |||
}, this); | |||
|
|||
this.olLayers_.forEach(function(el, i, arr) { | |||
synchronizeLayer(el); | |||
if (el.getSource() instanceof ol.source.TileImage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks LayerGroup support. The getSource
method is not defined in that case!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will check using your patch #34.
On Fri, Sep 12, 2014 at 05:57:34AM -0700, Petr Sloup wrote:
@@ -103,7 +103,8 @@ olcs.RasterSynchronizer.prototype.synchronize = function() {
}, this);this.olLayers_.forEach(function(el, i, arr) {
- synchronizeLayer(el);
- if (el.getSource() instanceof ol.source.TileImage)
This breaks LayerGroup support. The
getSource
method is not defined in that case!
Reply to this email directly or view it on GitHub:
https://github.com/boundlessgeo/ol3-cesium/pull/42/files#r17476808
Guillaume Beraudo
Camptocamp Engineer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can rebase your PR on top of #41 I will merge it today.
Otherwise I will bundle it together with my commits today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#34 rebased on master, so it can be merged easily.
If there's any problem with that, feel free to make it part of your PR.
I have some major comments about this PR:
I also added some minor comments and questions directly to the files. |
I updated the PR with:
I also answered the questions about:
The core namespace looks pretty clean for me. Conversely I feel the |
Labels and Points are not handled by a geometry in Cesium. Showing console error for now.
Implemented on the model of RasterSynchronizer.
Prevent polution of the window object.
Necessary for unminification with generated source map.
Breaks in google code detecting the browser user agent.
Allows removing all of our primitives and keeping foreign ones.
Though it 'works', this solution is extremely fragile due to limitations in the way Closure handle structs. Notably, we do not have: - check for typos/invalid properties; - enforcement of required properties; Using proper types declared with @struct is cumbersome and would still be slippery: + detect typos if used correctly; - less readable; - even more externs.
This library state is initialized in vectorsynchronizer. If not using the synchronizer, the user must inialize the library herself. How to initialize the core must be added to our future documentation.
…pendency Vectors without hard ol3 pr dependency.
I used the vector synchronization example for a demo at FOSS4G yesterday, and I experienced a problem where the vector features disappeared at some point, and then reappeared. |
Hi Eric, It is done on purpose. |
This PR is almost the same as #33.
It works with ol3 master, though it would benefit from the merge of the ol3 PRs.
I will merge it today, so that we can move on.