map.component.ts 469 Bytes
Newer Older
Andrew Hrdy's avatar
Andrew Hrdy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Component } from '@angular/core';
import { latLng, tileLayer } from 'leaflet';

@Component({
    selector: 'app-map',
    templateUrl: './map.component.html',
    styleUrls: ['./map.component.scss']
})
export class MapComponent {
    options = {
        layers: [
            tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '...' })
        ],
        zoom: 17,
        center: latLng(38.831493, -77.311485)
    };
}