Add OSM source service (#224)
Also: update logo pointer to new openHAB logo Signed-off-by: Henning Treu <henning.treu@telekom.de>pull/293/head
parent
156b8021d3
commit
8988baba82
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,16 @@
|
|||
/* This file can be be overridden by fragments to include custom JS code */
|
||||
angular.module('PaperUI.extensions', []) //
|
||||
|
||||
.service('mapSourceService', function() {
|
||||
var OSMSource = new ol.source.OSM({
|
||||
tileLoadFunction : function(tile, src) {
|
||||
tile.getImage().src = src + "?openhab";
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
getMapSource : function() {
|
||||
return OSMSource;
|
||||
}
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue