From efdf87dbd57a88961a7cb7313012dbc20baa5c81 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Wed, 21 Aug 2013 10:19:08 +0200 Subject: [PATCH] [#369] Make image url relative as well, fix tile url --- src/view.map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.map.js b/src/view.map.js index bb22d033..47c2ab9e 100644 --- a/src/view.map.js +++ b/src/view.map.js @@ -397,8 +397,8 @@ my.Map = Backbone.View.extend({ var self = this; this.map = new L.Map(this.$map.get(0)); - var mapUrl = "//otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png"; - var osmAttribution = 'Map data © 2011 OpenStreetMap contributors, Tiles Courtesy of MapQuest '; + var mapUrl = "//otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png"; + var osmAttribution = 'Map data © 2011 OpenStreetMap contributors, Tiles Courtesy of MapQuest '; var bg = new L.TileLayer(mapUrl, {maxZoom: 18, attribution: osmAttribution ,subdomains: '1234'}); this.map.addLayer(bg);