Fix links (#8)

This commit is contained in:
David Molineus
2022-11-29 11:10:48 +01:00
parent accedc63e4
commit 268372c12a
2 changed files with 9 additions and 10 deletions

View File

@@ -1,13 +1,12 @@
Leaflet geocode widget Leaflet geocode widget
====================== ======================
[![Build Status](http://img.shields.io/travis/netzmacht/contao-leaflet-geocode-widget/master.svg?style=flat-square)](https://travis-ci.org/netzmacht/contao-leaflet-geocode-widget) [![Build Status](https://img.shields.io/github/workflow/status/netzmacht/contao-leaflet-geocode-widget/Code%20Quality%20Diagnostics?logo=githubactions&logoColor=%23fff&style=for-the-badge)](https://github.com/netzmacht/contao-leaflet-geocode-widget/actions)
[![Version](http://img.shields.io/packagist/v/netzmacht/contao-leaflet-geocode-widget.svg?style=flat-square)](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget) [![Version](http://img.shields.io/packagist/v/netzmacht/contao-leaflet-geocode-widget.svg?style=flat-square)](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget)
[![License](http://img.shields.io/packagist/l/netzmacht/contao-leaflet-geocode-widget.svg?style=flat-square)](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget) [![License](http://img.shields.io/packagist/l/netzmacht/contao-leaflet-geocode-widget.svg?style=flat-square)](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget)
[![Downloads](http://img.shields.io/packagist/dt/netzmacht/contao-leaflet-geocode-widget.svg?style=flat-square)](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget) [![Downloads](http://img.shields.io/packagist/dt/netzmacht/contao-leaflet-geocode-widget.svg?style=flat-square)](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget)
[![Contao Community Alliance coding standard](http://img.shields.io/badge/cca-coding_standard-red.svg?style=flat-square)](https://github.com/contao-community-alliance/coding-standard)
This extension provides an widget to pick coordinates from a map. It uses the leaflet framework. This extension provides a widget to pick coordinates from a map. It uses the leaflet framework.
Changlog Changlog
-------- --------
@@ -17,7 +16,8 @@ See [CHANGELOG](CHANGELOG.md).
Requirements Requirements
------------ ------------
- Contao ~4.4 - Contao ^4.13||^5.0
- PHP ^7.4||^8.0
Install Install
@@ -38,7 +38,7 @@ If you use the managed edition of Contao you can skip this step.
// Dependency is automatically installed and has to be registered // Dependency is automatically installed and has to be registered
new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('leaflet-libs', $this->getRootDir()), new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('leaflet-libs', $this->getRootDir()),
// Register the bundle // Register the bundle
new Netzmacht\Contao\Leaflet\GeocodeWidget\LeafletGeocodeWidgetBundle(), new Netzmacht\Contao\Leaflet\GeocodeWidget\LeafletGeocodeWidgetBundle(),
``` ```
@@ -67,7 +67,7 @@ $GLOBALS['TL_DCA']['tl_example']['fields']['coordinates'] = [
#### Coordinates and radius #### Coordinates and radius
To pick the radius in meters as well, you have to configure the `eval.radius` option for the related radius field. To pick the radius in meters as well, you have to configure the `eval.radius` option for the related radius field.
The radius field should be a simle text input. The `default`, `minval` and `maxval` flags are passed to the geocode The radius field should be a simle text input. The `default`, `minval` and `maxval` flags are passed to the geocode
widget so that only radius in that boundary can be chosen. widget so that only radius in that boundary can be chosen.
```php ```php
@@ -84,7 +84,7 @@ $GLOBALS['TL_DCA']['tl_page']['fields']['coordinates'] = [
$GLOBALS['TL_DCA']['tl_page']['fields']['radius'] = [ $GLOBALS['TL_DCA']['tl_page']['fields']['radius'] = [
'label' => ['Radius', 'Angabe des Radius in Metern'], 'label' => ['Radius', 'Angabe des Radius in Metern'],
'inputType' => 'leaflet_radius', // Optional, you can use a text widget as well 'inputType' => 'leaflet_radius', // Optional, you can use a text widget as well
'eval' => [ 'eval' => [
'default' => 500, 'default' => 500,
'minval' => 100, 'minval' => 100,
'maxval' => 5000, 'maxval' => 5000,

View File

@@ -19,9 +19,8 @@
], ],
"support": { "support": {
"email": "mail@netzmacht.de", "email": "mail@netzmacht.de",
"issues": "https://github.com/contao-bootstrap/core/issues", "issues": "https://github.com/netzmacht/contao-leaflet-geocode-widget/issues",
"wiki": "http://contao-bootstrap.netzmacht.de", "source": "https://github.com/netzmacht/contao-leaflet-geocode-widget"
"source": "https://github.com/contao-bootstrap/core"
}, },
"require": { "require": {
"php": "^7.4 || ^8.0", "php": "^7.4 || ^8.0",