X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d9d515bf18e85f02c0d11571e298586a90003d77..8688edf992a909ca914834a00be58bbcd175f2e1:/app/views/user/view.html.erb?ds=sidebyside diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 04c78a900..e209f853a 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -113,16 +113,14 @@ <%= javascript_include_tag "user" %> <% end %> <% - data = { + user_data = { :lon => @user.home_lon, :lat => @user.home_lat, - :zoom => 12, - :marker => { - :description => render(:partial => "popup", :object => @user, :locals => {:type => "your location"}) - } + :icon => "marker.png", + :description => render(:partial => "popup", :object => @user, :locals => {:type => "your location"}) } %> - <%= content_tag "div", "", :id => "map", :class => "user_map", :data => data %> + <%= content_tag "div", "", :id => "map", :class => "user_map", :data => {:user => user_data} %> <% end %> <% friends = @this_user.friends.collect { |f| f.befriendee } %>