Commit 3563bff6 by Antti Jaakkola Committed by Tuomas Riihimäki

fixed little brain farts

1 parent 7ea72516
......@@ -38,6 +38,7 @@ function placemap(opts)
moyaurl: opts.moyaurl,
map_id: opts.map_id,
onclick: opts.onclick,
editclick: opts.editclick,
clicked_place: undefined,
locale: opts.locale || 'fi'
};
......@@ -60,7 +61,7 @@ function placemap(opts)
};
var guide_layer = map_layer = px.element.append("g").attr("id", "guides");
var guide_layer = px.element.append("g").attr("id", "guides");
// Create background
var background = px.element.append("rect")
.attr("class", "background_2")
......@@ -71,7 +72,7 @@ function placemap(opts)
// Define layers to use
var map_layer = px.element.append("g").attr("id", "places");
var edit_layer = map_layer = px.element.append("g").attr("id", "edit");
var edit_layer = px.element.append("g").attr("id", "edit");
var clicked = false;
......@@ -316,7 +317,7 @@ function placemap(opts)
.attr("width", 10)
.attr("height", 10)
.attr("fill", "#111");
px.editclick(pos.x, pos.y);
px.editclick(pos.x, pos.y);
}
else {
edit_layer.selectAll("circle").remove();
......@@ -360,7 +361,7 @@ function placemap(opts)
px.update = function() {
d3.json(px.moyaurl + "/rest/placemap/v1/" + px.map_id + "/places", function(data) {
draw_places(data.places);
draw_places(data.places, true);
});
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!