Skip to content

Commit 267f626

Browse files
committed
Update sample_map.json.jbuilder
1 parent 72d60fd commit 267f626

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/genomes/sample_map.json.jbuilder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ json.features(
4949
} if sample.lat_lon?
5050
end.compact
5151
else
52-
@sample_set.select(&:lat_lon?).map(&:lon_lat).uniq.map do |lat_lon|
52+
@sample_set.select(&:lat_lon?).map(&:lon_lat).uniq.map do |xy|
5353
{
5454
type: 'Feature',
55-
geometry: { type: 'Point', coordinates: lon_lat }
55+
geometry: { type: 'Point', coordinates: xy }
5656
}
5757
end
5858
end

0 commit comments

Comments
 (0)