app/models/table.rb
##
# Post the style to the tiler
#
Post the style to the tiler
Post the style to the tiler
def send_tile_style_request(data_layer=nil)
    data_layer ||= self.map.data_layers.first
    tile_request('POST', "/tiles/#{self.name}/style?map_key=#{owner.api_key}", {
      'style_version' => data_layer.options["style_version"],
      'style'         => data_layer.options["tile_style"]
    })
  rescue => exception
    raise exception if Rails.env.production? || Rails.env.staging?
  end
def send_tile_style_request ( data_layer = nil ) data_layer ||= self . map . data_layers . first tile_request ( 'POST' , "/tiles/#{self.name}/style?map_key=#{owner.api_key}" , { 'style_version' => data_layer . options [ "style_version" ] , 'style' => data_layer . options [ "tile_style" ] } ) rescue => exception raise exception if Rails . env . production? || Rails . env . staging? end
Post the style to the tiler
Post the style to the tiler
data_layer
<not_specific>