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

Add a writeStyles option to KML format #4378

Merged
merged 1 commit into from
Nov 6, 2015
Merged

Add a writeStyles option to KML format #4378

merged 1 commit into from
Nov 6, 2015

Conversation

elemoine
Copy link
Member

@elemoine elemoine commented Nov 4, 2015

This PR adds a writeStyles boolean option to ol.format.KML. If this option is set to false the format does not add styles to the generated KML document. This option complements the extractStyles we already have for read.

@@ -1827,6 +1828,14 @@ olx.format.KMLOptions.prototype.defaultStyle;


/**
* Write styles into KML. Default is `true`.
* @type {boolean|undefined}
* @api stable
Copy link
Member

Choose a reason for hiding this comment

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

stable because extractStylesis already stable?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but I am happy to make this option experimental at this stage.

Copy link
Member

Choose a reason for hiding this comment

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

IMHO stable is fine

@fredj
Copy link
Member

fredj commented Nov 4, 2015

LGTM

@gberaudo
Copy link
Member

gberaudo commented Nov 4, 2015

Typo in the PR description: If this option is set to true: s/true/false/

@elemoine
Copy link
Member Author

elemoine commented Nov 4, 2015

Description updated. Thanks @gberaudo.

elemoine pushed a commit that referenced this pull request Nov 6, 2015
Add a writeStyles option to KML format
@elemoine elemoine merged commit d29f3b9 into openlayers:master Nov 6, 2015
@elemoine elemoine deleted the kml-write-styles branch November 6, 2015 10:26
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.

3 participants