Parcourir la source

Fix incorrect indentation.

opi il y a 9 ans
Parent
commit
97ba268ef5
2 fichiers modifiés avec 17 ajouts et 18 suppressions
  1. 6 6
      assets/form.js
  2. 11 12
      assets/map.js

+ 6 - 6
assets/form.js

@@ -39,13 +39,13 @@ $( document ).ready(function() {
         $('#longitude').val(m.lng);
     }
 
-	// Display tiny circles on existing public points
-	var GeoJsonPath = $('#map').data('json');
+    // Display tiny circles on existing public points
+    var GeoJsonPath = $('#map').data('json');
     $.getJSON(GeoJsonPath, function(data){
-	    var featureLayer = L.geoJson(data, {
-		    pointToLayer: function (feature, latlng) {
-			    return L.circleMarker(latlng, {color: '#00B300'});
-		    }
+        var featureLayer = L.geoJson(data, {
+            pointToLayer: function (feature, latlng) {
+                return L.circleMarker(latlng, {color: '#00B300'});
+            }
         }).addTo(map);
     });
 

+ 11 - 12
assets/map.js

@@ -8,21 +8,20 @@ $( document ).ready(function() {
     }
 
     // Icons
-
-	var leecherIcon = L.icon({
-        iconUrl: 'assets/leaflet/images/marker-icon.png',
-		iconSize: [25, 41],
-		iconAnchor: [12, 41],
-		popupAnchor: [0, -28]
-	});
+    var leecherIcon = L.icon({
+    iconUrl: 'assets/leaflet/images/marker-icon.png',
+        iconSize: [25, 41],
+        iconAnchor: [12, 41],
+        popupAnchor: [0, -28]
+    });
 
 
     var seederIcon = L.icon({
-        iconUrl: 'assets/leaflet/images/marker-icon-red.png',
-		iconSize: [25, 41],
-		iconAnchor: [12, 41],
-		popupAnchor: [0, -28]
-	});
+    iconUrl: 'assets/leaflet/images/marker-icon-red.png',
+        iconSize: [25, 41],
+        iconAnchor: [12, 41],
+        popupAnchor: [0, -28]
+    });
 
 
     // Create map