app/models/named_map/presenter.rb
def load_named_map_data
      	named_maps = NamedMaps.new(
            {
              name:     @options.fetch(:user_name),
              api_key:  @options.fetch(:api_key)
            },
            {
              protocol:   @configuration[:tiler]['internal']['protocol'],
              domain:     @configuration[:tiler]['internal']['domain'],
              port:       @configuration[:tiler]['internal']['port'],
              verifycert: (@configuration[:tiler]['internal']['verifycert'] rescue true)
            }
          )
      	@named_map = named_maps.get(NamedMap.normalize_name(@visualization.id))
        @named_map_template = @named_map.template.fetch(:template) unless @named_map.nil?
      	@loaded = true
      end
# Loads the data of a given named map
Loads the data of a given named map
Loads the data of a given named map
def load_named_map_data
      	named_maps = NamedMaps.new(
            {
              name:     @options.fetch(:user_name),
              api_key:  @options.fetch(:api_key)
            },
            {
              protocol:   @configuration[:tiler]['internal']['protocol'],
              domain:     @configuration[:tiler]['internal']['domain'],
              port:       @configuration[:tiler]['internal']['port'],
              verifycert: (@configuration[:tiler]['internal']['verifycert'] rescue true)
            }
          )
      	@named_map = named_maps.get(NamedMap.normalize_name(@visualization.id))
        @named_map_template = @named_map.template.fetch(:template) unless @named_map.nil?
      	@loaded = true
      end
def load_named_map_data named_maps = NamedMaps . new ( { name : @options . fetch ( :user_name ) , api_key : @options . fetch ( :api_key ) } , { protocol : @configuration [ :tiler ] [ 'internal' ] [ 'protocol' ] , domain : @configuration [ :tiler ] [ 'internal' ] [ 'domain' ] , port : @configuration [ :tiler ] [ 'internal' ] [ 'port' ] , verifycert : ( @configuration [ :tiler ] [ 'internal' ] [ 'verifycert' ] rescue true ) } ) @named_map = named_maps . get ( NamedMap . normalize_name ( @visualization . id ) ) @named_map_template = @named_map . template . fetch ( :template ) unless @named_map . nil? @loaded = true end
Loads the data of a given named map
Loads the data of a given named map