fix the kml-pointtrack.html example
This commit is contained in:
1 parent
1af83576f2
commit
8208241e55
1 file changed
+4
-3
@@ -29,12 +29,13 @@ function init() {
|
||||
var fid, points = [], feature;
|
||||
for (var i=0, len=e.features.length; i<len; i++) {
|
||||
feature = e.features[i];
|
||||
if (feature.fid !== fid || i === len-1) {
|
||||
fid = feature.fid;
|
||||
if ((fid && feature.fid !== fid) || i === len-1) {
|
||||
this.addNodes(points, {silent: true});
|
||||
points = [];
|
||||
} else {
|
||||
points.push(feature);
|
||||
}
|
||||
points.push(feature);
|
||||
fid = feature.fid;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user