Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit ec0fe74

Browse files
author
Idan Lahav
committed
feat(layers): Add support for Leaflet.TileLayer.IIP
Could not use 'custom' type because of the angular.copy() statement, therefore add case to the switch
1 parent 138c399 commit ec0fe74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/leafletLayerHelpers.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,12 @@ angular.module("leaflet-directive")
355355
return L.imageOverlay(params.url, params.bounds, params.options);
356356
}
357357
},
358+
iip: {
359+
mustHaveUrl: true,
360+
createLayer: function(params) {
361+
return L.tileLayer.iip(params.url, params.options);
362+
}
363+
},
358364

359365
// This "custom" type is used to accept every layer that user want to define himself.
360366
// We can wrap these custom layers like heatmap or yandex, but it means a lot of work/code to wrap the world,

0 commit comments

Comments
 (0)