Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 229bef52
authored
Dec 04, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add background image to seatmap
1 parent
3563bff6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
code/moya-web/WebContent/resources/seatjs/seatmap.js
code/moya-web/WebContent/resources/seatjs/seatmap.js
View file @
229bef5
...
...
@@ -63,6 +63,13 @@ function placemap(opts)
var
guide_layer
=
px
.
element
.
append
(
"g"
).
attr
(
"id"
,
"guides"
);
// 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"
)
.
attr
(
"class"
,
"background_2"
)
.
attr
(
"width"
,
px
.
element
.
attr
(
'width'
))
...
...
@@ -285,7 +292,7 @@ function placemap(opts)
places
.
exit
().
remove
();
}
places
.
filter
(
function
(
d
,
i
){
return
d
.
state
==
"D"
;
}).
remove
();
if
(
px
.
edit_enabled
==
false
)
{
places
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment