-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Use writeFeatures instead of writeFeaturesNode in GPX and KML example #3017
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
Conversation
Looks good to me. Please merge when the build is fixed. |
right wondering now why the build thinks writeFeatures returns a Node or null ... ;-) |
ah I see it now, missed an annotation in the source code |
I think there is a problem in gpx.js: writeFeatures does not have the correct signature. |
right I just spotted the same @elemoine will fix |
Again, please merge when the build is fixed. Thanks Bart. And thanks Closure Compiler. Believe it or not, I now love CC. |
it definitely helps, only a shame it was only spotted when using the code in the example ;-) |
Use writeFeatures instead of writeFeaturesNode in GPX and KML example (r=@elemoine)
We're talking about the return type of an API function that is to be used by applications. So it makes sense that the compiler catches this when compiling the examples. This is also why compiling the examples is actually a good thing. |
yes I get that, I just wished the normal build step would catch this without having to use all the api code in an example but I'm probably not overseeing whether this is possible at all Sent from my iPhone
|
Certainly not what you're thinking about but we could have the |
This was pointed out by @tschaub in #3003 (comment) and #3003 (comment)