-
Notifications
You must be signed in to change notification settings - Fork 3
feat(MapsetKmlFormat): add methods for reading and writing <Document> properties in KML strings #233
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
base: daniel/enhanceMapsetKmlFormat
Are you sure you want to change the base?
feat(MapsetKmlFormat): add methods for reading and writing <Document> properties in KML strings #233
Conversation
… properties in KML strings
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
src/ol/utils/MapsetKmlFormat.ts
Outdated
| * @param {String} kmlString A string representing a KML file. | ||
| * @returns {Object} An object containing the document properties (name, description, zoomLimits). | ||
| */ | ||
| public getDocumentProperties( |
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.
you never use this method, so if it is a utility method for Mapset . Creates someting more generic, so we could use it like this , when we need it (with good type for the parameter):
getDocumentProperty("name")
getDocumentProperty("description")
getDocumentProperty("zoomLimits")
it will be easier to maintain if we add more properties.
oterral
left a comment
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.
lgtm , minor refactoring to make more generic. and add tests of course
|
@oterral I made the method more generic, please check again |
How to
Others