-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
KML: Parsing of NetworkLink tag #3171
Conversation
f5ad9dc
to
0981970
Compare
Thx @tsauerwein, I've adapted according to your comments (oterral@90521ca#commitcomment-9454630) |
Is a synchronous request really needed? |
Damn Firefox !!! Ï didn't know that. May be the other way is to make a readNetworkLinks method (like readName) and let the user handle the links as he wants (using promise or callbacks). What do you think? |
@oterral That sounds good to me. |
LGTM too |
@oterral I still see the synchronous. I thought your plan was to change this and use a callback (or a promise) for that. Did I misunderstand? |
I thought the same |
olalala total misunderstanding sorry. I change that. |
c3a14ef
to
137472c
Compare
method |
@@ -1712,6 +1753,71 @@ ol.format.KML.prototype.readNameFromNode = function(node) { | |||
|
|||
|
|||
/** | |||
* @param {Document|Node|string} source Souce. | |||
* @return {Array.<Object>} Network links. | |||
* @api stable |
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.
I don't think we need the stability marker at this point. So please leave @api
but remove stable
.
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 remove
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.
@api
should be sufficient for now
KML: Parsing of NetworkLink tag
Thank you very much guys!!! |
did tests pass for you in Firefox? |
This PR add the pasing of NetworkLink tag: https://developers.google.com/kml/documentation/kmlreference#networklink
As in OL2, that made a synchronous http request to load the kml file.