import { Component } from '@angular/core';
import {OpenMapComponent, MapFacade, OpenMapOptions} from 'ngx-open-map-wrapper';

@Component({
  selector: 'app-root',
  imports: [
    OpenMapComponent
  ],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})
export class AppComponent {
  mapOptions: OpenMapOptions = {
    forceRaster: false,
    styleUrl: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
    tileUrl: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
    center: [50.426606229502525, 30.56308375468811],
    zoom: 16
  };

  onMapReady(mapFacade: MapFacade) {
    console.log(mapFacade);
    mapFacade.addMarker([50.426606229502525, 30.56308375468811]);
  }
}
