Skip to content

Commit

Permalink
Add empty coordinates to Geom constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Tran committed Oct 2, 2020
1 parent 66d1924 commit ece2ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyaware/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ function initialize_map() {
});

for (var i = 0; i < data.rings.length; ++i) {
var geom = new ol.geom.LineString();
var geom = new ol.geom.LineString([]);
var points = data.rings[i].points;
if (points.length > 0) {
for (var j = 0; j < points.length; ++j) {
Expand Down

0 comments on commit ece2ea6

Please sign in to comment.