class Mapbox::Overlay::Marker

Marker class

Constants

MAKI

Public Instance Methods

arguments_check() click to toggle source
# File lib/mapbox/overlay/marker.rb, line 24
def arguments_check
  return if @label.nil?
  fail ArgumentError, ":label not found: #{@label}" if MAKI.include?(@label) == false
end
generate_overlay() click to toggle source
# File lib/mapbox/overlay/marker.rb, line 29
def generate_overlay
  oly = []
  oly << "pin-#{@size}"
  oly << "-#{@label}" unless @label.nil?
  oly << "+#{@color}" unless @color.nil?
  oly << "(#{@lat},#{@lon})"
  oly.join
end