lib/jekyll-maps/location_finder.rb in jekyll-maps-2.1.2 vs lib/jekyll-maps/location_finder.rb in jekyll-maps-2.2.0

- old
+ new

@@ -23,10 +23,11 @@ def location_from_options(page) { :latitude => @options[:attributes][:latitude], :longitude => @options[:attributes][:longitude], :title => @options[:attributes][:marker_title] || page["title"], + :icon => @options[:attributes][:marker_icon] || page["marker_icon"], :url => @options[:attributes][:marker_url] || fetch_url(page), :image => @options[:attributes][:marker_img] || page["image"] || "" } end @@ -101,9 +102,10 @@ def convert(document, location) { :latitude => location["latitude"], :longitude => location["longitude"], :title => location["title"] || document["title"], + :icon => location["marker_icon"] || document["marker_icon"], :url => location["url"] || fetch_url(document), :image => location["image"] || document["image"] || "" } end