templates/trip.html

changeset 136
27324a81beca
parent 118
24f5faf6237f
equal deleted inserted replaced
135:ca21302d1a74 136:27324a81beca
166 { 166 {
167 attribution: 'Map data © Maanmittauslaitos', 167 attribution: 'Map data © Maanmittauslaitos',
168 maxZoom: 18, 168 maxZoom: 18,
169 } 169 }
170 ), 170 ),
171 "HSL": L.tileLayer(
172 'https://cdn.digitransit.fi/map/v1/{id}/{z}/{x}/{y}@2x.png',
173 {
174 attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
175 '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
176 maxZoom: 19,
177 tileSize: 512,
178 zoomOffset: -1,
179 id: 'hsl-map'
180 }
181 ),
182 "HSL (svenska)": L.tileLayer(
183 'https://cdn.digitransit.fi/map/v1/{id}/{z}/{x}/{y}@2x.png',
184 {
185 attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
186 '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
187 maxZoom: 19,
188 tileSize: 512,
189 zoomOffset: -1,
190 id: 'hsl-map-sv'
191 }
192 ),
171 } 193 }
172 194
173 var route = [{{shape}}]; 195 var route = [{{shape}}];
174 var mymap = L.map('mapid', {layers: [osm]}).setView([60.45175, 22.26705], 13); 196 var mymap = L.map('mapid', {layers: [osm]}).setView([60.45175, 22.26705], 13);
175 var myIcon = L.icon({ 197 var myIcon = L.icon({

mercurial