+ var latLngs = new Array(feature.nodes.length);
+
+ for (var j = 0; j < feature.nodes.length; j++) {
+ latLngs[j] = feature.nodes[j].latLng;
+ }
+
+ if (this.isWayArea(feature)) {
+ latLngs.pop(); // Remove last == first.
+ layer = L.polygon(latLngs, this.options.styles.area);
+ } else {
+ layer = L.polyline(latLngs, this.options.styles.way);
+ }