fixed the whitespace and also removed the quotes in object keys

This commit is contained in:
Calvin Metcalf 2013-01-14 07:25:34 -05:00
parent 0529a92589
commit 0ebbd7553e

View File

@ -91,19 +91,19 @@ L.Util.extend(L.GeoJSON, {
latlngs = this.coordsToLatLngs(coords, 1);
return new L.MultiPolyline(latlngs);
case "MultiPolygon":
case 'MultiPolygon':
latlngs = this.coordsToLatLngs(coords, 2);
return new L.MultiPolygon(latlngs);
case "GeometryCollection":
for (i = 0, len = geometry.geometries.length; i < len; i++) {
layer = this.geometryToLayer({
"geometry": geometry.geometries[i],
"type": "Feature",
"properties": geojson.properties
}, pointToLayer);
layers.push(layer);
}
case 'GeometryCollection':
for (i = 0, len = geometry.geometries.length; i < len; i++) {
layer = this.geometryToLayer({
geometry: geometry.geometries[i],
type: 'Feature',
properties: geojson.properties
}, pointToLayer);
layers.push(layer);
}
return new L.FeatureGroup(layers);
default: