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
Henning Treu 2018-02-13 15:25:44 +01:00 committed by Kai Kreuzer
parent 156b8021d3
commit 8988baba82
2 changed files with 16 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -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;
}
};
})