Utilisation de la carte osm standard
This commit is contained in:
parent
75d1eb314b
commit
26522aa4f2
@ -2,11 +2,13 @@ $(document).ready ->
|
|||||||
if $('#map').size() > 0
|
if $('#map').size() > 0
|
||||||
map = L.map('map').setView [46.5, 4], 6
|
map = L.map('map').setView [46.5, 4], 6
|
||||||
|
|
||||||
L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png',
|
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',
|
||||||
id: 'examples.map-i86knfo3',
|
#L.tileLayer('http://{s}.tile.cloudmade.com/{key}/{styleId}/256/{z}/{x}/{y}.png',
|
||||||
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
|
#L.tileLayer('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg',
|
||||||
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
|
#attribution: 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> — Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||||
'Imagery © <a href="http://mapbox.com">Mapbox</a>'
|
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
|
||||||
|
#subdomains: '1234'
|
||||||
|
|
||||||
).addTo map
|
).addTo map
|
||||||
|
|
||||||
$.getJSON '/maps.json', (json) ->
|
$.getJSON '/maps.json', (json) ->
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
#map
|
#map
|
||||||
height: 60em
|
height: 60em
|
||||||
|
@include box-shadow(0 0 1em SteelBlue)
|
||||||
@include transition(none)
|
@include transition(none)
|
||||||
|
Loading…
Reference in New Issue
Block a user