diff --git a/src/app/modules/public/discover/components/map/map.component.html b/src/app/modules/public/discover/components/map/map.component.html index 812383e..d4f51b6 100644 --- a/src/app/modules/public/discover/components/map/map.component.html +++ b/src/app/modules/public/discover/components/map/map.component.html @@ -3,7 +3,7 @@ #mapa id="map" width="100%" - [center]="center" + [center]="position" [options]="options" [zoom]="zoom" (mapClick)="closeInfoWindow()"> diff --git a/src/app/modules/public/discover/components/map/map.component.html b/src/app/modules/public/discover/components/map/map.component.html index 812383e..d4f51b6 100644 --- a/src/app/modules/public/discover/components/map/map.component.html +++ b/src/app/modules/public/discover/components/map/map.component.html @@ -3,7 +3,7 @@ #mapa id="map" width="100%" - [center]="center" + [center]="position" [options]="options" [zoom]="zoom" (mapClick)="closeInfoWindow()"> diff --git a/src/app/modules/public/discover/components/map/map.component.ts b/src/app/modules/public/discover/components/map/map.component.ts index 6c1f881..ed3be48 100644 --- a/src/app/modules/public/discover/components/map/map.component.ts +++ b/src/app/modules/public/discover/components/map/map.component.ts @@ -22,7 +22,7 @@ mapa?: google.maps.Map; zoom = 17; - center!: google.maps.LatLngLiteral + position!: google.maps.LatLngLiteral markers: any[] = []; info_window_content: Site = { name: "", @@ -33,24 +33,48 @@ } }; options: google.maps.MapOptions = { - zoomControl: false, + zoomControl: true, scrollwheel: false, disableDoubleClickZoom: true, maxZoom: 17, minZoom: 8, noClear: false, + styles: [ + { + "elementType": "labels", + "stylers": [ + { + "visibility": "off" + } + ] + }, + { + "featureType": "administrative.land_parcel", + "stylers": [ + { + "visibility": "off" + } + ] + }, + { + "featureType": "administrative.neighborhood", + "stylers": [ + { + "visibility": "off" + } + ] + } + ], } constructor() { } ngOnInit(): void { - this.center = { + this.position = { lat: 7.376362792514798, lng: -72.65115193327162 }; this.createMarkers(); - /* console.log(this.map) - this.mapa = new google.maps.Map((this.map as unknown) as Element, this.options) */ } createMarkers() {