Sha256: 6eb9146df1d6b578c630d70fc54db04679c641c36dd8657128c8f04d2eb49bcb
Contents?: true
Size: 1.94 KB
Versions: 2
Compression:
Stored size: 1.94 KB
Contents
module Ropenlayer module Openlayer module Layer class ElementsVector < Base def initialize(map) super(:vector_elements, map) end private def self.layers_config { :vector_elements => { :method => "OpenLayers.Layer.Vector", :args => [ "'Capa de Elementos'" ], :propierties => { :styleMap => "#{ Ropenlayer::Openlayer::Js.new_method("OpenLayers.StyleMap", :propierties => { :default => default_vector_style_parameters.to_json }) }" }, :description => 'Capa para marcadores de elements' } } end def self.default_vector_style_parameters { :cursor => '${cursor}', :graphicWidth => '${graphic_width}', :graphicHeight => '${graphic_height}', :strokeColor => '${stroke_color}', :strokeOpacity => '${stroke_opacity}', :strokeWidth => '${stroke_width}', :fillColor => '${fill_color}', :fillOpacity => '${fill_opacity}', :pointRadius => '${point_radius}', :pointerEvents => '${pointer_events}', :fontSize => '${font_size}', :fontWeight => '${font_weight}' } # { :cursor => 'normal', # :graphicWidth => 48, # :graphicHeight => 48, # :strokeColor => '${fillColor}', # :strokeOpacity => 0.8, # :strokeWidth => 5, # :fillColor => '${fillColor}', # :fillOpacity => 0.8, # :pointRadius => 30, # :pointerEvents => 'visiblePainted', # :fontSize => '12px', # :fontWeight => 'bold' } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ropenlayer-0.3.5 | lib/ropenlayer/openlayer/layer/elements_vector.rb |
ropenlayer-0.3.4 | lib/ropenlayer/openlayer/layer/elements_vector.rb |