mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-28 19:13:55 +01:00
Compare commits
8 Commits
feature/pe
...
3.1.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4feeb1b38 | ||
|
|
cb3e9bc8b4 | ||
|
|
6a88ed380b | ||
|
|
4ea2adbb85 | ||
|
|
dc5a0a081e | ||
|
|
79f6efd9f3 | ||
|
|
e7bede78b1 | ||
|
|
997e16891b |
10
.travis.yml
10
.travis.yml
@@ -1,8 +1,16 @@
|
|||||||
|
dist: xenial
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- ant-optional
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- "7.1"
|
- "7.3"
|
||||||
- "7.2"
|
- "7.2"
|
||||||
|
- "7.1"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- CONTAO_VERSION=contao/core-bundle ~4.4.0
|
- CONTAO_VERSION=contao/core-bundle ~4.4.0
|
||||||
|
|||||||
32
CHANGELOG.md
32
CHANGELOG.md
@@ -6,6 +6,38 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## 3.1.3 - 2019-01-10
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.1.2...3.1.3)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix broken api routes in Contao 4.6/Symfony 4 (#69)
|
||||||
|
- Fix broken about.html.twig template. Error block was missing
|
||||||
|
|
||||||
|
## 3.1.2 - 2018-12-18
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.1.1...3.1.2)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix broken MapBox integration: Access token is now required
|
||||||
|
- Fix broken OpenWeatherMap integration: Api key is now required
|
||||||
|
- Fix broken Thunderforest integration: Api key is now required
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Add missing OpenPtMap of leaflet-providers
|
||||||
|
- Add missing OpenRailwayMap of leaflet-providers
|
||||||
|
- Add missing OpenFireMap of leaflet-providers
|
||||||
|
- Add missing SafeCast of leaflet-providers
|
||||||
|
- Add missing map types `normalNightTransit`, `normalNightTransitMobile`, `reducedDay`, `reducedNight`,
|
||||||
|
`hybridDayTransit` and `hybridDayGrey` of HERE provider
|
||||||
|
- Add missing map types `Voyager`, `VoyagerNoLabels`, `VoyagerOnlyLabels` and `VoyagerLabelsUnder` of CartoDB provider
|
||||||
|
- Add missing Wikimedia of leaflet-providers
|
||||||
|
- Add missing GeoportailFrance of leaflet-providers
|
||||||
|
- Add missing OneMapSG of leaflet-providers
|
||||||
|
|
||||||
## 3.1.1 - 2018-12-07
|
## 3.1.1 - 2018-12-07
|
||||||
|
|
||||||
[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.1.0...3.1.1)
|
[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.1.0...3.1.1)
|
||||||
|
|||||||
@@ -34,10 +34,10 @@
|
|||||||
"symfony/http-kernel": "~3.3 || ~4.0",
|
"symfony/http-kernel": "~3.3 || ~4.0",
|
||||||
"symfony/translation": "~3.3 || ~4.0",
|
"symfony/translation": "~3.3 || ~4.0",
|
||||||
"symfony/templating": "~3.3 || ~4.0",
|
"symfony/templating": "~3.3 || ~4.0",
|
||||||
"netzmacht/contao-leaflet-libraries": "^1.0",
|
"netzmacht/contao-leaflet-libraries": "^1.3.4",
|
||||||
"netzmacht/contao-leaflet-geocode-widget": "^1.2",
|
"netzmacht/contao-leaflet-geocode-widget": "^1.2",
|
||||||
"netzmacht/php-javascript-builder": "^1.0",
|
"netzmacht/php-javascript-builder": "^1.0",
|
||||||
"netzmacht/php-leaflet": "^1.0.2",
|
"netzmacht/php-leaflet": "^1.1.0",
|
||||||
"netzmacht/contao-toolkit": "~3.0",
|
"netzmacht/contao-toolkit": "~3.0",
|
||||||
"netzmacht/contao-page-context": "~1.0",
|
"netzmacht/contao-page-context": "~1.0",
|
||||||
"contao-community-alliance/meta-palettes": "^2.0 || ^1.5",
|
"contao-community-alliance/meta-palettes": "^2.0 || ^1.5",
|
||||||
|
|||||||
@@ -1,13 +1,22 @@
|
|||||||
parameters:
|
parameters:
|
||||||
netzmacht.contao_leaflet.providers:
|
netzmacht.contao_leaflet.providers:
|
||||||
OpenStreetMap:
|
OpenStreetMap:
|
||||||
variants: ['Mapnik', 'BlackAndWhite', 'DE', 'France', 'HOT', 'BZH']
|
variants: ['Mapnik', 'BlackAndWhite', 'DE', 'CH', 'France', 'HOT', 'BZH']
|
||||||
|
|
||||||
OpenSeaMap: []
|
OpenSeaMap: []
|
||||||
|
|
||||||
OpenTopoMap: []
|
OpenTopoMap: []
|
||||||
|
|
||||||
|
OpenPtMap: []
|
||||||
|
|
||||||
|
OpenRailwayMap: []
|
||||||
|
|
||||||
|
OpenFireMap: []
|
||||||
|
|
||||||
|
SafeCast: []
|
||||||
|
|
||||||
Thunderforest:
|
Thunderforest:
|
||||||
|
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\ThunderforestProvider'
|
||||||
variants:
|
variants:
|
||||||
- 'OpenCycleMap'
|
- 'OpenCycleMap'
|
||||||
- 'Transport'
|
- 'Transport'
|
||||||
@@ -16,6 +25,9 @@ parameters:
|
|||||||
- 'Landscape'
|
- 'Landscape'
|
||||||
- 'Outdoors'
|
- 'Outdoors'
|
||||||
- 'Pioneer'
|
- 'Pioneer'
|
||||||
|
options:
|
||||||
|
apiKey: 'tile_provider_key'
|
||||||
|
fields: ['tile_provider_key']
|
||||||
|
|
||||||
OpenMapSurfer:
|
OpenMapSurfer:
|
||||||
variants: ['Roads', 'AdminBounds', 'Grayscale']
|
variants: ['Roads', 'AdminBounds', 'Grayscale']
|
||||||
@@ -26,7 +38,8 @@ parameters:
|
|||||||
MapBox:
|
MapBox:
|
||||||
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\MapBoxProvider'
|
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\MapBoxProvider'
|
||||||
options:
|
options:
|
||||||
key: 'tile_provider_key'
|
accessToken: 'tile_provider_key'
|
||||||
|
fields: ['tile_provider_key']
|
||||||
|
|
||||||
Stamen:
|
Stamen:
|
||||||
variants:
|
variants:
|
||||||
@@ -56,6 +69,7 @@ parameters:
|
|||||||
- 'WorldGrayCanvas'
|
- 'WorldGrayCanvas'
|
||||||
|
|
||||||
OpenWeatherMap:
|
OpenWeatherMap:
|
||||||
|
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\OpenWeatherMapProvider'
|
||||||
variants:
|
variants:
|
||||||
- 'Clouds'
|
- 'Clouds'
|
||||||
- 'CloudsClassic'
|
- 'CloudsClassic'
|
||||||
@@ -68,6 +82,9 @@ parameters:
|
|||||||
- 'Wind'
|
- 'Wind'
|
||||||
- 'Temperature'
|
- 'Temperature'
|
||||||
- 'Snow'
|
- 'Snow'
|
||||||
|
options:
|
||||||
|
apiKey: 'tile_provider_key'
|
||||||
|
fields: ['tile_provider_key']
|
||||||
|
|
||||||
HERE:
|
HERE:
|
||||||
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\HereProvider'
|
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\HereProvider'
|
||||||
@@ -83,12 +100,18 @@ parameters:
|
|||||||
- 'normalNightMobile'
|
- 'normalNightMobile'
|
||||||
- 'normalNightGrey'
|
- 'normalNightGrey'
|
||||||
- 'normalNightGreyMobile'
|
- 'normalNightGreyMobile'
|
||||||
|
- 'normalNightTransit'
|
||||||
|
- 'normalNightTransitMobile'
|
||||||
|
- 'reducedDay'
|
||||||
|
- 'reducedNight'
|
||||||
- 'basicMap'
|
- 'basicMap'
|
||||||
- 'mapLabels'
|
- 'mapLabels'
|
||||||
- 'trafficFlow'
|
- 'trafficFlow'
|
||||||
- 'carnavDayGrey'
|
- 'carnavDayGrey'
|
||||||
- 'hybridDay'
|
- 'hybridDay'
|
||||||
- 'hybridDayMobile'
|
- 'hybridDayMobile'
|
||||||
|
- 'hybridDayTransit'
|
||||||
|
- 'hybridDayGrey'
|
||||||
- 'pedestrianDay'
|
- 'pedestrianDay'
|
||||||
- 'pedestrianNight'
|
- 'pedestrianNight'
|
||||||
- 'satelliteDay'
|
- 'satelliteDay'
|
||||||
@@ -123,6 +146,10 @@ parameters:
|
|||||||
- 'DarkMatter'
|
- 'DarkMatter'
|
||||||
- 'DarkMatterNoLabels'
|
- 'DarkMatterNoLabels'
|
||||||
- 'DarkMatterOnlyLabels'
|
- 'DarkMatterOnlyLabels'
|
||||||
|
- 'Voyager'
|
||||||
|
- 'VoyagerNoLabels'
|
||||||
|
- 'VoyagerOnlyLabels'
|
||||||
|
- 'VoyagerLabelsUnder'
|
||||||
|
|
||||||
HikeBike:
|
HikeBike:
|
||||||
variants:
|
variants:
|
||||||
@@ -155,3 +182,20 @@ parameters:
|
|||||||
- 'ModisTerraChlorophyll'
|
- 'ModisTerraChlorophyll'
|
||||||
|
|
||||||
NLS: []
|
NLS: []
|
||||||
|
|
||||||
|
Wikimedia: []
|
||||||
|
|
||||||
|
GeoportailFrance:
|
||||||
|
variants:
|
||||||
|
- 'parcels'
|
||||||
|
- 'ignMaps'
|
||||||
|
- 'maps'
|
||||||
|
- 'orthos'
|
||||||
|
|
||||||
|
OneMapSG:
|
||||||
|
variants:
|
||||||
|
- 'Default'
|
||||||
|
- 'Night'
|
||||||
|
- 'Original'
|
||||||
|
- 'Grey'
|
||||||
|
- 'LandLot'
|
||||||
|
|||||||
@@ -128,11 +128,13 @@ services:
|
|||||||
- { name: Netzmacht\Contao\PageContext\Request\PageIdDeterminator }
|
- { name: Netzmacht\Contao\PageContext\Request\PageIdDeterminator }
|
||||||
|
|
||||||
Netzmacht\Contao\Leaflet\Frontend\Action\LayerDataAction:
|
Netzmacht\Contao\Leaflet\Frontend\Action\LayerDataAction:
|
||||||
|
public: true
|
||||||
arguments:
|
arguments:
|
||||||
- '@netzmacht.contao_leaflet.map.provider'
|
- '@netzmacht.contao_leaflet.map.provider'
|
||||||
- '@netzmacht.contao_leaflet.filter_factory'
|
- '@netzmacht.contao_leaflet.filter_factory'
|
||||||
|
|
||||||
Netzmacht\Contao\Leaflet\Backend\Action\AboutAction:
|
Netzmacht\Contao\Leaflet\Backend\Action\AboutAction:
|
||||||
|
public: true
|
||||||
arguments:
|
arguments:
|
||||||
- '@templating'
|
- '@templating'
|
||||||
- '%kernel.project_dir%'
|
- '%kernel.project_dir%'
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ array_insert(
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (TL_MODE === 'BE') {
|
if (defined('TL_MODE') && TL_MODE === 'BE') {
|
||||||
$GLOBALS['TL_CSS'][] = 'bundles/netzmachtcontaoleaflet/css/backend_global.css';
|
$GLOBALS['TL_CSS'][] = 'bundles/netzmachtcontaoleaflet/css/backend_global.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -232,12 +232,14 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
|
|||||||
'provider' => ['tile_provider', 'tile_provider_variant'],
|
'provider' => ['tile_provider', 'tile_provider_variant'],
|
||||||
],
|
],
|
||||||
'tile_provider' => [
|
'tile_provider' => [
|
||||||
'MapBox' => ['tile_provider_key'],
|
'MapBox' => ['tile_provider_key'],
|
||||||
'HERE' => ['tile_provider_key', 'tile_provider_code'],
|
'HERE' => ['tile_provider_key', 'tile_provider_code'],
|
||||||
|
'OpenWeatherMap' => ['tile_provider_key'],
|
||||||
|
'Thunderforest' => ['tile_provider_key'],
|
||||||
|
],
|
||||||
|
'fileFormat' => [
|
||||||
|
'!' => ['file'],
|
||||||
],
|
],
|
||||||
'fileFormat' => [
|
|
||||||
'!' => ['file']
|
|
||||||
]
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'metasubpalettes' => [
|
'metasubpalettes' => [
|
||||||
@@ -864,7 +866,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
|
|||||||
],
|
],
|
||||||
'sql' => 'mediumtext NULL',
|
'sql' => 'mediumtext NULL',
|
||||||
],
|
],
|
||||||
'fileFormat' => [
|
'fileFormat' => [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['fileFormat'],
|
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['fileFormat'],
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'inputType' => 'select',
|
'inputType' => 'select',
|
||||||
@@ -882,19 +884,19 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
|
|||||||
'sql' => "varchar(32) NOT NULL default ''",
|
'sql' => "varchar(32) NOT NULL default ''",
|
||||||
],
|
],
|
||||||
'file' => [
|
'file' => [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['file'],
|
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['file'],
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'inputType' => 'fileTree',
|
'inputType' => 'fileTree',
|
||||||
'load_callback' => [
|
'load_callback' => [
|
||||||
['netzmacht.contao_leaflet.listeners.dca.layer', 'prepareFileWidget'],
|
['netzmacht.contao_leaflet.listeners.dca.layer', 'prepareFileWidget'],
|
||||||
],
|
],
|
||||||
'eval' => [
|
'eval' => [
|
||||||
'filesOnly' => true,
|
'filesOnly' => true,
|
||||||
'fieldType' => 'radio',
|
'fieldType' => 'radio',
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'tl_class' => 'clr',
|
'tl_class' => 'clr',
|
||||||
],
|
],
|
||||||
'sql' => 'binary(16) NULL',
|
'sql' => 'binary(16) NULL',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -149,6 +149,10 @@ $GLOBALS['TL_LANG']['tl_leaflet_layer']['fileFormat'][0] = 'File
|
|||||||
$GLOBALS['TL_LANG']['tl_leaflet_layer']['fileFormat'][1] = 'Choose which file format is used.';
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['fileFormat'][1] = 'Choose which file format is used.';
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_layer']['file'][0] = 'File';
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['file'][0] = 'File';
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_layer']['file'][1] = 'Choose a file containing geodata. Supported formats are: %s.';
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['file'][1] = 'Choose a file containing geodata. Supported formats are: %s.';
|
||||||
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_key'][0] = 'API key / Access token';
|
||||||
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_key'][1] = 'Please define the API key / access token which is required for this tile provider.';
|
||||||
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_code'][0] = 'App code';
|
||||||
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tile_provider_code'][1] = 'Please define the required app code for this tile provider.';
|
||||||
|
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes']['layer'][0] = 'Layer group';
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes']['layer'][0] = 'Layer group';
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes']['layer'][1] = 'Basic layer group. <br> See <a href="http://leafletjs.com/reference.html#layergroup" target="_blank">http://leafletjs.com/reference.html#layergroup</a>';
|
$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes']['layer'][1] = 'Basic layer group. <br> See <a href="http://leafletjs.com/reference.html#layergroup" target="_blank">http://leafletjs.com/reference.html#layergroup</a>';
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<IfModule !mod_authz_core.c>
|
|
||||||
Order allow,deny
|
|
||||||
Allow from all
|
|
||||||
</IfModule>
|
|
||||||
<IfModule mod_authz_core.c>
|
|
||||||
Require all granted
|
|
||||||
</IfModule>
|
|
||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
{% block headline %}{{ "MOD.leaflet_about.1"|trans({}, 'contao_modules') }}{% endblock %}
|
{% block headline %}{{ "MOD.leaflet_about.1"|trans({}, 'contao_modules') }}{% endblock %}
|
||||||
|
|
||||||
|
{% block error %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="netzmacht-leaflet-credits">
|
<div class="netzmacht-leaflet-credits">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
|||||||
Reference in New Issue
Block a user