From 0758614688c8bd9b4f9cab26571b9f53a8f91fbf Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 9 Apr 2015 19:45:00 +0200 Subject: [PATCH] leaflet providers --- app.js | 2 ++ bower.json | 3 ++- lib/map.js | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 1b8f9f9..47c9741 100644 --- a/app.js +++ b/app.js @@ -3,6 +3,7 @@ require.config({ paths: { "leaflet": "../bower_components/leaflet/dist/leaflet", "leaflet.label": "../bower_components/Leaflet.label/dist/leaflet.label", + "leaflet.providers": "../bower_components/leaflet-providers/leaflet-providers", "chroma-js": "../bower_components/chroma-js/chroma.min", "moment": "../bower_components/moment/min/moment-with-locales.min", "tablesort": "../bower_components/tablesort/tablesort.min", @@ -15,6 +16,7 @@ require.config({ }, shim: { "leaflet.label": ["leaflet"], + "leaflet.providers": ["leaflet"], "tablesort": { exports: "Tablesort" }, diff --git a/bower.json b/bower.json index 595bc34..95793ff 100644 --- a/bower.json +++ b/bower.json @@ -22,7 +22,8 @@ "d3": "~3.5.5", "numeraljs": "~1.5.3", "roboto-fontface": "~0.3.0", - "virtual-dom": "~2.0.1" + "virtual-dom": "~2.0.1", + "leaflet-providers": "~1.0.27" }, "authors": [ "Nils Schneider " diff --git a/lib/map.js b/lib/map.js index 791c2d4..0945c4d 100644 --- a/lib/map.js +++ b/lib/map.js @@ -1,4 +1,5 @@ -define(["d3", "leaflet", "moment", "locationmarker", "leaflet.label"], +define(["d3", "leaflet", "moment", "locationmarker", "leaflet.label", + "leaflet.providers"], function (d3, L, moment, LocationMarker) { var options = { worldCopyJump: true, zoomControl: false @@ -40,7 +41,7 @@ define(["d3", "leaflet", "moment", "locationmarker", "leaflet.label"], onClick: function () { this.f(!this.active) } - }) + }) function mkMarker(dict, iconFunc, router) { return function (d) {