mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-28 11:04:08 +01:00
Merge branch 'master' into feature/permissions
This commit is contained in:
11
CHANGELOG.md
11
CHANGELOG.md
@@ -6,7 +6,16 @@ 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.0 - 2018-01-11
|
## 3.1.1 - 2018-12-07
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.1.0...3.1.1)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix missing marker cluster icon.
|
||||||
|
- Ignore markers without coordinates to prevent uncaught exception caused by invalid coordinates.
|
||||||
|
|
||||||
|
## 3.1.0 - 2018-11-01
|
||||||
|
|
||||||
[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.0.4...3.1.0)
|
[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.0.4...3.1.0)
|
||||||
|
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ class LeafletDcaListener
|
|||||||
$data['marker'] = json_encode($latLng);
|
$data['marker'] = json_encode($latLng);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// LatLng throws an exception of value could not be created. Just let the value empty when.
|
// LatLng throws an exception of value could not be created. Just let the value empty when.
|
||||||
|
$data['marker'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->templateEngine->render('toolkit:be:be_leaflet_geocode.html5', $data);
|
return $this->templateEngine->render('toolkit:be:be_leaflet_geocode.html5', $data);
|
||||||
|
|||||||
@@ -44,7 +44,18 @@ class MarkerModel extends AbstractActiveModel
|
|||||||
public static function findByFilter($pid, ?Filter $filter = null)
|
public static function findByFilter($pid, ?Filter $filter = null)
|
||||||
{
|
{
|
||||||
if (!$filter) {
|
if (!$filter) {
|
||||||
return static::findActiveBy('pid', $pid, ['order' => 'sorting']);
|
$table = static::getTable();
|
||||||
|
|
||||||
|
return static::findBy(
|
||||||
|
[
|
||||||
|
$table . '.active=1',
|
||||||
|
$table . '.pid=?',
|
||||||
|
$table . '.latitude>0',
|
||||||
|
$table . '.longitude>0',
|
||||||
|
],
|
||||||
|
[$pid],
|
||||||
|
['order' => 'sorting']
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user