New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

netlify-cms-widget-geojson

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-cms-widget-geojson

A Netlify CMS widget that allows drawing points, lines, and polygons.

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Netlify CMS Widget GeoJSON

A Netlify CMS widget that allows drawing points, lines, and polygons. This is still in very early stages.

Install

As an npm package:

npm install --save netlify-cms-widget-geojson
import geojson from 'netlify-cms-widget-geojson'

CMS.registerWidget('geojson', GeoControl, GeoPreview)

Via script tag:

<script src="https://unpkg.com/netlify-cms-widget-geojson@^0.0.3"></script>

<script>
  CMS.registerWidget('geojson', GeoControl, GeoPreview)
</script>

How to use

Add to your Netlify CMS configuration:

fields:
  - {label: "Geometry", name: "geojson", widget: geojson, draw: 'polygon', single: false, lat: 0, lng: 0, zoom: 1 }
  • draw: Sets the type of geometry you can draw. Options: marker, polyline, and polygon. Remove property if you want to be able to draw all types.
  • single: Default: false. Set to true to limit the user to drawing one feature.
  • lat, lng, zoom: Set the default position for the map.

Keywords

netlify

FAQs

Package last updated on 18 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts