Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #726 from GeotrekCE/fix_poi_and_near_pictos
Browse files Browse the repository at this point in the history
Fix near not displayed in detail map
  • Loading branch information
Gaël UTARD authored Sep 13, 2019
2 parents 63cb5b6 + 569f164 commit 60ed206
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
**Bug fixes**

* Show POIs on dive detail page
* Fix POIs and Steps not displayed on sidebar detail page

2.21.1 / 2019-09-11
===================
Expand Down
13 changes: 8 additions & 5 deletions src/app/map/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,13 @@ function mapService($rootScope, $q, $state, $resource, $translate, $filter, util
});

$q.all(promiseArray).finally(function () {
self._clustersLayer.addLayer(self._treksMarkersLayer);
self._clustersLayer.addLayer(self._touristicsMarkersLayer);
if (self._treksMarkersLayer !== null && typeof self._treksMarkersLayer !== 'undefined') {
self._clustersLayer.addLayer(self._treksMarkersLayer);
}

if (self._touristicsMarkersLayer !== null && typeof self._touristicsMarkersLayer !== 'undefined') {
self._clustersLayer.addLayer(self._touristicsMarkersLayer);
}

self.map.invalidateSize();

Expand Down Expand Up @@ -1090,8 +1095,6 @@ function mapService($rootScope, $q, $state, $resource, $translate, $filter, util

self.loadingMarkers = true;

this.clearAllLayers();

if (result.geometry.type !== "Point" && result.geometry.type !== "MultiPoint") {
this.createElevation(result);
currentLayer = self._treksgeoJsonLayer;
Expand Down Expand Up @@ -1129,7 +1132,7 @@ function mapService($rootScope, $q, $state, $resource, $translate, $filter, util
{
self.updateBounds(self._clustersLayer);
},
200
500
);
}
}
Expand Down

0 comments on commit 60ed206

Please sign in to comment.