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

Represents a mercator projection for zoom levels 0 to 17 (more than that by passing an argument to the constructor)

Methods

create   new  

Included Modules

MappingObject

Attributes

n  [RW] 

Public Class methods

[Source]

    # File lib/gm_plugin/layer.rb, line 32
32:       def initialize(n = nil)
33:         @n = n
34:       end

Public Instance methods

[Source]

    # File lib/gm_plugin/layer.rb, line 36
36:       def create
37:         if n.nil?
38:           return "G_NORMAL_MAP.getProjection()"
39:         else
40:           "new GMercatorProjection(#{@n})"
41:         end
42:       end

[Validate]