Module: OpenLayers

Defined in:
lib/map_layers/open_layers.rb

Class Method Summary collapse

Class Method Details

.const_missing(sym) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/map_layers/open_layers.rb', line 3

def self.const_missing(sym)
  if OpenLayers.const_defined?(sym)
    OpenLayers.const_get(sym)
  else
    OpenLayers.const_set(sym, Class.new(MapLayers::JsClass))
  end
end