diff --git a/CHANGELOG.md b/CHANGELOG.md index 446a652..8bdd88a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fix ordering changes in layer control element aren't recognized ([#72](https://github.com/netzmacht/contao-leaflet-maps/issues/72)) + - Fix markers with negative coordinates aren't displayed ([#74](https://github.com/netzmacht/contao-leaflet-maps/issues/74)) ## [3.1.3] - 2019-01-10 diff --git a/src/Model/MarkerModel.php b/src/Model/MarkerModel.php index 8064a1d..6a4240b 100644 --- a/src/Model/MarkerModel.php +++ b/src/Model/MarkerModel.php @@ -50,8 +50,8 @@ class MarkerModel extends AbstractActiveModel [ $table . '.active=1', $table . '.pid=?', - $table . '.latitude>0', - $table . '.longitude>0', + $table . '.latitude IS NOT NULL', + $table . '.longitude IS NOT NULL', ], [$pid], ['order' => 'sorting']