Sha256: a1ce0cdd8d6b67528606fc14204c24858a5ceaab11cf40584ae5d2ad11e1c535

Contents?: true

Size: 678 Bytes

Versions: 5

Compression:

Stored size: 678 Bytes

Contents

module Ropenlayer
  module Openlayer
    module BoxControl
      class LayersSelect < Base
        def initialize(map)
          super('layers_select', map, :css_class => 'olControlLayersBoxControl')
          map.layers.uniq.each do |layer|
            @links << { :id      => "'link_to_base_layer_#{ layer.name }'",
                        :class   => "'olControlLayersBoxControl'",
                        :text    => " ยป Usar Mapa #{ layer.config[:description] }",
                        :onclick => "#{ map.js_id }.setBaseLayer(#{ layer.js_id }); #{ map.js_helper.hide_xhtml_element(@js_links_id ) }; return false;" }
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ropenlayer-0.3.5 lib/ropenlayer/openlayer/box_control/layers_select.rb
ropenlayer-0.3.4 lib/ropenlayer/openlayer/box_control/layers_select.rb
ropenlayer-0.3.3 lib/ropenlayer/openlayer/box_control/layers_select.rb
ropenlayer-0.3.1 lib/ropenlayer/openlayer/box_control/layers_select.rb
ropenlayer-0.3.0 lib/ropenlayer/openlayer/box_control/layers_select.rb