Skip to content
Snippets Groups Projects
Commit d3ed2093 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

wip avoid window

parent efb587cb
No related branches found
No related tags found
1 merge request!634Draft: Resolve "[Actualités] - Partage article via RS : image d'illus à la place du logo rés'in"
<div
*ngIf="window"
id="map"
class="body-wrap"
leaflet
......
......@@ -29,6 +29,7 @@ export class MapComponent implements OnChanges {
private readonly maxMobileViewWidth = 980;
private currentStructure: Structure;
public window;
public map: Map;
public mapOptions: MapOptions;
public zoomOptions = { animate: true, duration: 0.5 };
......@@ -49,6 +50,7 @@ export class MapComponent implements OnChanges {
private mapService: MapService,
private geoJsonService: GeojsonService,
) {
this.window = null; // window;
this.initializeMapOptions();
}
......@@ -323,7 +325,8 @@ export class MapComponent implements OnChanges {
}
private get isMobileView(): boolean {
return window.innerWidth <= this.maxMobileViewWidth;
return false;
// return window.innerWidth <= this.maxMobileViewWidth;
}
private centerLeafletMapOnMarker(markerId: string): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment