diff --git a/lib/leaflet-rails/view_helpers.rb b/lib/leaflet-rails/view_helpers.rb
index <HASH>..<HASH> 100644
--- a/lib/leaflet-rails/view_helpers.rb
+++ b/lib/leaflet-rails/view_helpers.rb
@@ -8,7 +8,7 @@ module Leaflet
       options[:container_id] ||= 'map'
 
       output = []
-      output << "<div id='#{options[:container_id]}'></div>"
+      output << "<div id='#{options[:container_id]}'></div>" unless options[:no_container]
       output << "<script>"
       output << "var map = L.map('#{options[:container_id]}')"
       output << "map.setView([#{options[:center][:latlng][0]}, #{options[:center][:latlng][1]}], #{options[:center][:zoom]})"
Add option to disable inserting container

Sometimes it's useful to insert the container manually and use the map
function for the script only. Having an option to disable inserting the
div tag would be a nice addition.

* Add a new option 'no_container'
* Disable inserting the container if 'no_container' is true