From a252b0a80bd0f71f567520e566c4429fb8ecd272 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 14 May 2017 20:55:49 +0000
Subject: [PATCH] Add attributions to the map
---
map.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/map.js b/map.js
index b462d46..0cbdf09 100644
--- a/map.js
+++ b/map.js
@@ -616,6 +616,7 @@
});
stops_layer = new ol.layer.Vector({
source: stops_source,
+
});
stop_points_source = new ol.source.Vector({
@@ -628,6 +629,7 @@
vehicles_source = new ol.source.Vector({
features: [],
+ attributions: lang.copy_zikit,
});
vehicles_layer = new ol.layer.Vector({
source: vehicles_source,
@@ -635,6 +637,7 @@
route_source = new ol.source.Vector({
features: [],
+ attributions: lang.copy_jacekk,
});
route_layer = new ol.layer.Vector({
source: route_source,
@@ -647,7 +650,9 @@
target: 'map',
layers: [
new ol.layer.Tile({
- source: new ol.source.OSM()
+ source: new ol.source.OSM({
+ attributions: lang.copy_osm,
+ })
}),
route_layer,
stops_layer,
--
Gitblit v1.10.0