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

Quick correction so that the map bouding code will be working again in all browsers

parent b6c5a735
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -39,7 +39,7 @@ $(document).ready ->
map.addLayer layer
controls.addOverlay layer, text + ' - ' + json.length
if (location.href.contains('maps/') || url.contains('maps.json')) && layer.getBounds()._northEast && layer.getBounds()._southWest
if (/maps\//.test(location.href) || /maps.json/.test url) && layer.getBounds()._northEast && layer.getBounds()._southWest
# Automatic focus to all displayed events
map.fitBounds layer.getBounds()
......
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