mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
417 B
TypeScript
17 lines
417 B
TypeScript
import * as L from 'leaflet';
|
|
import 'leaflet.gridlayer.googlemutant';
|
|
|
|
const map = L.map('foo');
|
|
|
|
const roads = L.gridLayer.googleMutant({
|
|
type: 'roadmap'
|
|
}).addTo(map);
|
|
|
|
const styled = L.gridLayer.googleMutant({
|
|
type: 'satellite',
|
|
styles: [
|
|
{ elementType: 'labels', stylers: [ { visibility: 'off' } ] },
|
|
{ featureType: 'water' , stylers: [ { color: '#444444' } ] }
|
|
]
|
|
}).addTo(map);
|