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>
Add to your Netlify CMS configuration:
fields:
- { name: <fieldname>, label: <fieldlabel>, widget: gmaps }