Class Ym4r::GmPlugin::GMapType
In: lib/gm_plugin/layer.rb
Parent: Object

Map types of the map

Methods

create   new  

Included Modules

MappingObject

Constants

G_NORMAL_MAP = Variable.new("G_NORMAL_MAP")
G_SATELLITE_MAP = Variable.new("G_SATELLITE_MAP")
G_HYBRID_MAP = Variable.new("G_HYBRID_MAP")

Attributes

layers  [RW] 
name  [RW] 
options  [RW] 
projection  [RW] 

Public Class methods

The options can be any of the GMapType options detailed in the documentation + a :projection.

[Source]

    # File lib/gm_plugin/layer.rb, line 14
14:       def initialize(layers, name, options = {})
15:         @layers = layers
16:         @name = name
17:         @projection = options.delete(:projection) || GMercatorProjection.new
18:         @options = options
19:       end

Public Instance methods

[Source]

    # File lib/gm_plugin/layer.rb, line 21
21:       def create
22:         "new GMapType(#{MappingObject.javascriptify_variable(Array(layers))}, #{MappingObject.javascriptify_variable(projection)}, #{MappingObject.javascriptify_variable(name)}, #{MappingObject.javascriptify_variable(options)})"
23:       end

[Validate]