Search by

handplant / craft-geoman

handplant

geometry editing tools

Package info

github.com/handplant/craft-geoman

Documentation

Language:JavaScript

Type:craft-plugin

pkg:composer/handplant/craft-geoman

Statistics

Installs: 376

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

3.0.0 2026-11-13 10:42 UTC

This package is not auto-updated.

Last update: 2026-12-02 06:41:08 UTC


README

A geometry field for Craft CMS 5, powered by Leaflet and Leaflet-Geoman Free. Draw and edit maps, import/export GeoJSON, and add text annotations.

Installation

Requires Craft CMS 5.0+ (5.x) and PHP 8.2+.

Run composer require handplant/craft-geoman, then install Craft Geoman under Settings → Plugins.

Updating an existing installation? Read the upgrade notes first. For Craft 4, use plugin 1.x on the craft-cms-4 branch.

Usage

  • Create a Geoman field and add it to a field layout.
  • Draw markers, lines, rectangles, polygons, circles, circle markers, or text.
  • Use Show all geometry to fit the map, GeoJSON to inspect the value, and Export / Import to exchange files.

Geoman field with a Black Forest demo map, drawn geometry, and text annotations

GeoJSON viewer showing polygon, line, and circle features

Settings

Configure each field's map center, zoom, height, and available drawing tools.

  • Map height: 500px by default; configurable from 240–2000px. The map expands if the toolbar needs more room.
  • Drawing tools: the original six tools are enabled by default; Text is opt-in. Disabling a tool does not hide existing geometry or restrict imports.
  • Editing tools: Cut and Rotate appear when the drawing selection or existing geometry supports them. Edit, Move, and Delete remain available on editable maps.

Geoman field settings for map center, zoom, height, and drawing tools

Good to know

The field returns a GeoJSON string. It does not automatically render a map on your website; see the frontend example.

Scripts and styles are bundled locally; no Geoman Pro subscription is required. Basemap tiles come from OpenStreetMap and require internet access. Its tile usage policy applies.

Changelog · Report an issue