-
-
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
Add map widget #2051
Add map widget #2051
Conversation
Preview proposed changes to netlifycms.org in the link below: Built with commit a73484f |
Preview proposed changes to the CMS demo site in the link below: Built with commit a73484f |
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.
@friedjoff this is a fantastic PR, thank you! A couple of very small change requests here for publishing, we can merge after that.
1. Check out the [main readme](https://github.com/netlify/netlify-cms/#readme) or the [documentation | ||
site](https://www.netlifycms.org) for more info. | ||
2. Reach out to the [community chat](https://gitter.im/netlify/netlifycms/) if you need help. | ||
3. Help out and [write the readme yourself](https://github.com/netlify/netlify-cms/edit/master/packages/netlify-cms-widget-list/README.md)! |
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.
Replace netlify-cms-widget-list
with netlify-cms-widget-map
{ | ||
"name": "netlify-cms-widget-map", | ||
"description": "Widget for editing spatial data in Netlify CMS.", | ||
"version": "2.0.0", |
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.
New packages can start at 1.0.0
@erquhart thanks for reviewing, glad you like it! I've fixed both issues. |
Summary
This pull request adds a map widget to edit spatial data in Netlify CMS. See #434 for more information about possible use cases. The map widget is using the OpenLayers JavaScript library and map tiles from OpenStreetMap. Currently the widget is limited to the most important features. Custom map widgets for special use cases can reuse the
withMapControl()
HOC.Closes #434.
Test plan
The map widget has been added to the kitchen sink collection and should look similiar to the following screenshot: