PHPackages                             cowegis/cowegis-contao-draw-widget-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cowegis/cowegis-contao-draw-widget-bundle

ActiveContao-bundle

cowegis/cowegis-contao-draw-widget-bundle
=========================================

1.0.1(2mo ago)02.2k—0%1LGPL-3.0-or-laterPHPPHP ^8.3CI passing

Since Sep 12Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/cowegis/cowegis-contao-draw-widget-bundle)[ Packagist](https://packagist.org/packages/cowegis/cowegis-contao-draw-widget-bundle)[ GitHub Sponsors](https://github.com/dmolineus)[ RSS](/packages/cowegis-cowegis-contao-draw-widget-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (4)Used By (0)

Cowegis Draw Widget Bundle
==========================

[](#cowegis-draw-widget-bundle)

The Cowegis Draw Widget Bundle provides a custom widget for drawing and managing vector elements within the Contao CMS. It is designed to integrate seamlessly with Contao, offering users an intuitive interface for creating and editing map vector drawings.

Requirements
------------

[](#requirements)

- **PHP**: ^8.2
- **Contao**: ^5.3

Installation
------------

[](#installation)

To install the Draw Widget Bundle, use Composer. Run the following command in your terminal:

```
composer require cowegis/cowegis-contao-draw-widget-bundle
```

Configuration
-------------

[](#configuration)

The widget uses the `cowegis-editor` HTML element using the awesome [geoman.io](https://geoman.io) editor. It's designed to adjust the editor configuration. You can customize the initial map settings and the editor toolbar. The configuration is encoded as JSON, so you are not able to use javascript directly here.

```
$GLOBALS['TL_DCA']['tl_example']['fields']['vectors'] = [
    'inputType' => 'cowegis_draw',
    'sql'       => 'blob NULL',
    'eval'      => [
        // Height of the widget, defaults to 500px
        'height'  => '500px',
        // Toolbar options, see https://www.geoman.io/docs/toolbar
        // Default:
        'toolbar' => [
            'position' => 'bottomleft',
        ],
        // Leaflet map options, see https://leafletjs.com/reference.html#map-option
        // Default:
        'map' => [
            "maxZoom" => 15,
            "minZoom" => 2,
            "center"  => [0, 0],
            "zoom"    => 2,
        ],
        // Maximum number of vector elements. Toolbar draw buttons get disabled when used.
        'limit' => null
    ]
];
```

If you need to customize the whole configuration, you may define a callback. See the initial config in `\Cowegis\Bundle\ContaoDrawWidget\Widget\DrawWidget::editorOptions()`

```
$GLOBALS['TL_DCA']['tl_example']['fields']['vectors'] = [
    'inputType' => 'cowegis_draw',
    'eval'      => [
        'callback' => function (array $options) {
            var_dump($options);

            return $options;
        }
    ]
];
```

GeoJSON data
------------

[](#geojson-data)

GeoJSON does not provide information about circles or circle markers as they are available for Leaflet. To overcome this limitation this widget adds GeoJSON properties `type` and `radius` to the geometry.

### Circle

[](#circle)

The radius for a circle is defined meters, see .

```
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "type": "circle",
    "radius": 100
  }
}
```

### Circle marker

[](#circle-marker)

The radius for a circle marker is defined in pixels, see .

```
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "type": "circleMarker",
    "radius": 10
  }
}
```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance86

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~537 days

Total

2

Last Release

70d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8189209?v=4)[netzmacht](/maintainers/netzmacht)[@netzmacht](https://github.com/netzmacht)

---

Top Contributors

[![dmolineus](https://avatars.githubusercontent.com/u/1186266?v=4)](https://github.com/dmolineus "dmolineus (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![qzminski](https://avatars.githubusercontent.com/u/193483?v=4)](https://github.com/qzminski "qzminski (1 commits)")

### Embed Badge

![Health badge](/badges/cowegis-cowegis-contao-draw-widget-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cowegis-cowegis-contao-draw-widget-bundle/health.svg)](https://phpackages.com/packages/cowegis-cowegis-contao-draw-widget-bundle)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3172.5k4](/packages/terminal42-contao-node)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
