Skip to content

Commit

Permalink
change call pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
timmysiauw committed Dec 20, 2019
1 parent 6a0379d commit 161701a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions modemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,11 @@ var modemap = function() {

var plot = {

any: function(map_id, center, default_zoom, query_name, row_fun) {
any: function(map, content, row_fun) {

var content = mode.get_query_content(query_name)

var map = mapping.init(map_id, center, default_zoom)

for (var i=0; i<content.length; i++) {row_fun(map, content, i)}
for (var i=0; i<content.length; i++) {
row_fun(map, content, i)
}

return map
},
Expand Down

0 comments on commit 161701a

Please sign in to comment.