mirror of
https://github.com/netzmacht/contao-leaflet-geocode-widget.git
synced 2025-11-28 03:33:47 +01:00
Fix links (#8)
This commit is contained in:
14
README.md
14
README.md
@@ -1,13 +1,12 @@
|
||||
Leaflet geocode widget
|
||||
======================
|
||||
|
||||
[](https://travis-ci.org/netzmacht/contao-leaflet-geocode-widget)
|
||||
[](https://github.com/netzmacht/contao-leaflet-geocode-widget/actions)
|
||||
[](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget)
|
||||
[](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget)
|
||||
[](http://packagist.org/packages/netzmacht/contao-leaflet-geocode-widget)
|
||||
[](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
|
||||
--------
|
||||
@@ -17,7 +16,8 @@ See [CHANGELOG](CHANGELOG.md).
|
||||
Requirements
|
||||
------------
|
||||
|
||||
- Contao ~4.4
|
||||
- Contao ^4.13||^5.0
|
||||
- PHP ^7.4||^8.0
|
||||
|
||||
|
||||
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
|
||||
new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('leaflet-libs', $this->getRootDir()),
|
||||
|
||||
|
||||
// Register the bundle
|
||||
new Netzmacht\Contao\Leaflet\GeocodeWidget\LeafletGeocodeWidgetBundle(),
|
||||
```
|
||||
@@ -67,7 +67,7 @@ $GLOBALS['TL_DCA']['tl_example']['fields']['coordinates'] = [
|
||||
#### Coordinates and radius
|
||||
|
||||
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.
|
||||
|
||||
```php
|
||||
@@ -84,7 +84,7 @@ $GLOBALS['TL_DCA']['tl_page']['fields']['coordinates'] = [
|
||||
$GLOBALS['TL_DCA']['tl_page']['fields']['radius'] = [
|
||||
'label' => ['Radius', 'Angabe des Radius in Metern'],
|
||||
'inputType' => 'leaflet_radius', // Optional, you can use a text widget as well
|
||||
'eval' => [
|
||||
'eval' => [
|
||||
'default' => 500,
|
||||
'minval' => 100,
|
||||
'maxval' => 5000,
|
||||
|
||||
@@ -19,9 +19,8 @@
|
||||
],
|
||||
"support": {
|
||||
"email": "mail@netzmacht.de",
|
||||
"issues": "https://github.com/contao-bootstrap/core/issues",
|
||||
"wiki": "http://contao-bootstrap.netzmacht.de",
|
||||
"source": "https://github.com/contao-bootstrap/core"
|
||||
"issues": "https://github.com/netzmacht/contao-leaflet-geocode-widget/issues",
|
||||
"source": "https://github.com/netzmacht/contao-leaflet-geocode-widget"
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.4 || ^8.0",
|
||||
|
||||
Reference in New Issue
Block a user