Commit c1853098 authored by Yannick Lehnhausen's avatar Yannick Lehnhausen

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

parent b0272d87
......@@ -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