Class: Osmaps::PolygonController

Inherits:
Volt::ModelController
  • Object
show all
Defined in:
app/osmaps/controllers/polygon_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
# File 'app/osmaps/controllers/polygon_controller.rb', line 3

def index
end

#polygon(latLongArray, opts = {}) ⇒ Object



6
7
8
9
# File 'app/osmaps/controllers/polygon_controller.rb', line 6

def polygon(latLongArray, opts = {})
    `L.polygon(latLongArray).addTo(map);`
  return nil
end