1.0.0 • Published 2 years ago

netlify-cms-widget-gmaps v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NPM npm bundle size (minified) npm

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 }