Skip to content
Extraits de code Groupes Projets
Valider 3618f320 rédigé par echarp's avatar echarp
Parcourir les fichiers

Attempt to modify the map size

parent abaa1536
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# Setting up OpenStreeMap from a generic #map element
$(document).ready ->
$('#map.events').each ->
map = L.map 'map'
......@@ -19,7 +20,7 @@ $(document).ready ->
if (feature.properties && feature.properties.popupContent)
layer.bindPopup feature.properties.popupContent
map.addLayer L.markerClusterGroup().addLayer layer
map.addLayer L.markerClusterGroup( maxClusterRadius: 30 ).addLayer layer
if (layer.getBounds()._northEast && layer.getBounds()._southWest)
# Automatic focus to all displayed events
......@@ -49,6 +50,6 @@ $(document).ready ->
if (feature.properties && feature.properties.popupContent)
layer.bindPopup(feature.properties.popupContent)
map.addLayer L.markerClusterGroup().addLayer layer
map.addLayer L.markerClusterGroup( maxClusterRadius: 30 ).addLayer layer
marker = L.marker([coord[0], coord[1]]).addTo map
......@@ -14,12 +14,11 @@
&.event
height: 20em
.tags
#map
width: 40%
height: 60em
margin: 1.6em 2%
+inline-block()
.tags #map
width: 40%
height: 60em
margin: 1.6em 2%
+inline-block()
html.iframe #map
width: 100%
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter