Download the PHP package cowegis/cowegis-contao-draw-widget-bundle without Composer
On this page you can find all versions of the php package cowegis/cowegis-contao-draw-widget-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cowegis-contao-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
- PHP: ^8.2
- Contao: ^5.3
Installation
To install the Draw Widget Bundle, use Composer. Run the following command in your terminal:
Configuration
The widget uses the cowegis-editor HTML element using the awesome 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.
If you need to customize the whole configuration, you may define a callback. See the initial config in
\Cowegis\Bundle\ContaoDrawWidget\Widget\DrawWidget::editorOptions()
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
The radius for a circle is defined meters, see https://leafletjs.com/reference.html#circle.
Circle marker
The radius for a circle marker is defined in pixels, see https://leafletjs.com/reference.html#circlemarker.
All versions of cowegis-contao-draw-widget-bundle with dependencies
contao/core-bundle Version ^5.3
cowegis/cowegis-client-bundle Version ^1.0
cowegis/cowegis-geojson Version ^1.0
symfony/dependency-injection Version ^6.4 || ^7.4
symfony/http-kernel Version ^6.4 || ^7.4