Class Ym4r::GmPlugin::PreTiledLayerFromAction
In: lib/gm_plugin/layer.rb
Parent: PreTiledLayer

Represents a pretiled layer (it actually does not really matter where the tiles come from). Calls an action on the server to get back the tiles. It passes the action arguments x, y (coordinates of the tile) and z (zoom level). It can be used, for example, to return default tiles when the requested tile is not present.

Methods

Public Instance methods

[Source]

    # File lib/gm_plugin/layer.rb, line 87
87:       def get_tile_url
88:         "function(a,b) { return '#{base_url}?x=' + a.x + '&y=' + a.y + '&z=' + b ;}"
89:       end

[Validate]