Tell OpenLayers when we have resized the map
This commit is contained in:
parent
3b20c87893
commit
6fbdf8cca3
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@
|
|||
<% end -%>
|
||||
$("#map").width($("#content").width() - sidebar_width - left_border - right_border);
|
||||
$("#map").height($("#content").height() - top_border - bottom_border);
|
||||
|
||||
<% if params[:controller] == "site" and params[:action] == "index" -%>
|
||||
map.updateSize();
|
||||
<% end -%>
|
||||
}
|
||||
|
||||
function handleResize() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue