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 map widget #2051

Merged
merged 2 commits into from
Feb 5, 2019
Merged

Add map widget #2051

merged 2 commits into from
Feb 5, 2019

Conversation

friedjoff
Copy link
Contributor

@friedjoff friedjoff commented Feb 1, 2019

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:
map-widget

@netlify
Copy link

netlify bot commented Feb 1, 2019

Preview proposed changes to netlifycms.org in the link below:

Built with commit a73484f

https://deploy-preview-2051--netlify-cms-www.netlify.com

@netlify
Copy link

netlify bot commented Feb 1, 2019

Preview proposed changes to the CMS demo site in the link below:

Built with commit a73484f

https://deploy-preview-2051--cms-demo.netlify.com

Copy link
Contributor

@erquhart erquhart left a 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)!
Copy link
Contributor

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",
Copy link
Contributor

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

@friedjoff
Copy link
Contributor Author

@erquhart thanks for reviewing, glad you like it! I've fixed both issues.

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.

None yet

2 participants