From f130d3d79aeb610ec2ad5643e8d41f702bf25a91 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Sun, 18 Dec 2016 11:20:31 -0800 Subject: [PATCH] Add test --- leaflet/leaflet-tests.ts | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/leaflet/leaflet-tests.ts b/leaflet/leaflet-tests.ts index 1d3f447ad4..8b988509c6 100644 --- a/leaflet/leaflet-tests.ts +++ b/leaflet/leaflet-tests.ts @@ -297,6 +297,7 @@ map = map .setView(latLngLiteral, 12, zoomPanOptions) .setView(latLngTuple, 12) .setView(latLngTuple, 12, zoomPanOptions) + .setZoom(11) .setZoom(12, zoomPanOptions) // investigate if zoomPanOptions are really required .zoomIn() .zoomIn(1) @@ -309,6 +310,7 @@ map = map .setZoomAround(latLngTuple, 12, zoomOptions) .setZoomAround(point, 12, zoomOptions) .setZoomAround(pointTuple, 11, zoomOptions) + .fitBounds(latLngBounds) .fitBounds(latLngBounds, fitBoundsOptions) // investigate if fit bounds options are really required .fitBounds(latLngBoundsLiteral, fitBoundsOptions) .fitWorld() @@ -354,4 +356,25 @@ let elementToDrag = document.createElement('div'); let draggable = new L.Draggable(elementToDrag); draggable.enable(); draggable.disable(); -draggable.on('drag', () => {}); \ No newline at end of file +draggable.on('drag', () => {}); + +class MyMarker extends L.Marker { + constructor() { + super([12, 13]); + } +} +class MyLayer extends L.Layer { + constructor() { + super(); + } +} +class MyIcon extends L.Icon { + constructor() { + super({iconUrl: 'icon.png'}); + } +} +class MyDivIcon extends L.DivIcon { + constructor() { + super(); + } +}