Skip to content

Commit

Permalink
feat(layers): Add support for Leaflet.TileLayer.IIP
Browse files Browse the repository at this point in the history
Could not use 'custom' type because of the angular.copy() statement, therefore add case to the switch
  • Loading branch information
Idan Lahav committed Aug 30, 2015
1 parent 138c399 commit ec0fe74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/leafletLayerHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ angular.module("leaflet-directive")
return L.imageOverlay(params.url, params.bounds, params.options);
}
},
iip: {
mustHaveUrl: true,
createLayer: function(params) {
return L.tileLayer.iip(params.url, params.options);
}
},

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

0 comments on commit ec0fe74

Please sign in to comment.