Commit 30a26e3a authored by Yannick Lehnhausen's avatar Yannick Lehnhausen

Merge branch '117-mapview-active-publish-berucksichtigen' into 'develop'

Resolve "[Mapview] Active/Publish berücksichtigen"

Closes #117

See merge request !121
parents b0272d87 c1853098
Pipeline #29976 passed with stage
in 8 minutes and 34 seconds
......@@ -207,6 +207,12 @@ export class PoiModel implements IModel {
getName(): string { return this.name; }
isActive(): boolean { return this.active; }
getPublishEndDate(): Date { return this.publishEnd; }
getPublishStartDate(): Date { return this.publishStart; }
getLatLng(): L.Marker {
let marker: L.Marker;
marker = L.marker([this.latitude, this.longitude],
......
......@@ -123,6 +123,10 @@ export class MapRendererService {
}
}
private isBetweenTwoDates(start: Date, end: Date, theDate: Date): boolean {
return start <= theDate && end >= theDate;
}
private createMarkerForPoi(poi: PoiModel, id?: string) {
this.poiMarkersPositions.push([poi.getLatLng(), poi]);
if (id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment