Skip to content

Commit

Permalink
Fix invisible current position marker with position params
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamuteki committed Apr 29, 2016
1 parent f677873 commit 0afdaf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def build_markers(bus_stops, position = nil)
marker.infowindow render partial: 'infowindow', locals: { bus_stop: bus_stop }
end
if position then
hash + Gmaps4rails.build_markers([position]) do |bus_stop, marker|
hash = hash + Gmaps4rails.build_markers([position]) do |bus_stop, marker|
marker.lat position.split(',')[0]
marker.lng position.split(',')[1]
marker.picture({ url: image_path('bluedot.png'), width: '34', height: '34' })
Expand Down

0 comments on commit 0afdaf1

Please sign in to comment.