diff --git a/app/views/main/samplemap.html.erb b/app/views/main/samplemap.html.erb index b6eb94da..51e47f91 100644 --- a/app/views/main/samplemap.html.erb +++ b/app/views/main/samplemap.html.erb @@ -29,7 +29,11 @@ json = <%= @mapjson %>; if (json.length > 0) { $(document).ready(function() { - initFD(); + <% if (@map.arranged) %> + initMAP(); + <% else %> + initFD(); + <% end %> }); }