projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
356fa7f
)
Support maximize/minimize (systemed/iD#1327)
author
John Firebaugh
<john.firebaugh@gmail.com>
Fri, 19 Apr 2013 22:34:06 +0000
(15:34 -0700)
committer
John Firebaugh
<john.firebaugh@gmail.com>
Fri, 3 May 2013 17:52:43 +0000
(10:52 -0700)
app/views/site/id_iframe.html.erb
patch
|
blob
|
history
diff --git
a/app/views/site/id_iframe.html.erb
b/app/views/site/id_iframe.html.erb
index 3069130685e80bec9bcbce6ae4be4eb34a33a7b1..515c0e8072ab423e31506294e9d29cd8dce93b48 100644
(file)
--- a/
app/views/site/id_iframe.html.erb
+++ b/
app/views/site/id_iframe.html.erb
@@
-52,6
+52,16
@@
Math.max(data.zoom || 15, 13));
});
+ var maximized = false;
+ id.on('toggleFullscreen.embed', function() {
+ if (maximized) {
+ parent.minimiseMap();
+ } else {
+ parent.maximiseMap();
+ }
+ maximized = !maximized;
+ });
+
d3.select('#id-container')
.call(id.ui());
}