Commit 229bef52 by Tuomas Riihimäki

Add background image to seatmap

1 parent 3563bff6
...@@ -63,6 +63,13 @@ function placemap(opts) ...@@ -63,6 +63,13 @@ function placemap(opts)
var guide_layer = px.element.append("g").attr("id", "guides"); var guide_layer = px.element.append("g").attr("id", "guides");
// Create background // Create background
px.element.selectAll("image").data([0]).enter().append("svg:image")
.attr("xlink:href", "/MoyaWeb/rest/placemap/v1/" + px.map_id + "/background")
.attr("x",0)
.attr("y", 0)
.attr("width", px.element.attr('width'))
.attr("height", px.element.attr('height'));
var background = px.element.append("rect") var background = px.element.append("rect")
.attr("class", "background_2") .attr("class", "background_2")
.attr("width", px.element.attr('width')) .attr("width", px.element.attr('width'))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!