Sha256: 1f2397b7a6ec5724d7e73ffc367ebcff4c34655928deb251498c55d27ac326a4
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 Bytes
Contents
module BoundingBoxHelper ## # Builds HTML string for bounding box selector tool. # Calls boundingBoxSelector javascript function and # passes the id of the location input element that it binds to. # @param [Symbol] name of property that holds bounding box string # @return[String] def bbox(property) %( <div id='bbox'></div> <script> boundingBoxSelector({inputId: #{bbox_input_id(property)}}); </script> ).html_safe end ## # Returns id of location input that is bound to bbox selector. # @param [Symbol] name of property that holds bounding box string # @return[String] id of location input element def bbox_input_id(property) "#{curation_concern.class.name.underscore}_#{property}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geo_concerns-0.0.3 | app/helpers/bounding_box_helper.rb |
geo_concerns-0.0.2 | app/helpers/bounding_box_helper.rb |
geo_concerns-0.0.1 | app/helpers/bounding_box_helper.rb |