netlify-cms-widget-gmaps
v1.0.0
Published
Netlify cms google maps widget
Downloads
2
Readme
netlify-cms-widget-gmaps
Install
As an npm package:
npm install --save netlify-cms-widget-gmaps
import {
netlifyCmsGMapsControl,
netlifyCmsGMapsPreview
} from 'netlify-cms-widget-gmaps'
CMS.registerWidget('gmaps', netlifyCmsGMapsControl, netlifyCmsGMapsPreview)
Via script
tag:
<script src="https://unpkg.com/netlify-cms-widget-gmaps@^1.0.0"></script>
<script>
CMS.registerWidget('gmaps', netlifyCmsGMapsControl, netlifyCmsGMapsPreview)
</script>
How to use
Add to your Netlify CMS configuration:
fields:
- { name: <fieldname>, label: <fieldlabel>, widget: gmaps }