]> git.openstreetmap.org Git - rails.git/commitdiff
Use the small PanZoom control on the user map instead of the
authorTom Hughes <tom@compton.nu>
Thu, 11 Mar 2010 18:29:35 +0000 (18:29 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 11 Mar 2010 18:29:35 +0000 (18:29 +0000)
full PanZoomBar control.

app/views/user/account.html.erb
app/views/user/view.html.erb
public/stylesheets/common.css

index 66c303bb664ef32782eefff4bb8d4022e2ccc6b9..13e8a75643f623b28ea17c8000123324ede2a4bd 100644 (file)
@@ -85,7 +85,7 @@
     <td></td>
     <td>
       <p><%= t 'user.account.update home location on click' %> <input type="checkbox" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" /> </p>
     <td></td>
     <td>
       <p><%= t 'user.account.update home location on click' %> <input type="checkbox" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" /> </p>
-      <div id="map" style="border:1px solid black; position:relative; width:500px; height:400px;"></div>
+      <div id="map" class="user_map" style="border:1px solid black; position:relative; width:500px; height:400px;"></div>
     </td>
   </tr>
   
     </td>
   </tr>
   
index 77ad06a8f7059410a170280f9bef454636ef8885..b333b5c67eef1bb5638b4af34f4045b23e24a49c 100644 (file)
@@ -87,7 +87,7 @@
 <div id="description"><%= htmlize(@this_user.description) %></div>
 
 <% if @user and @this_user.id == @user.id %>
 <div id="description"><%= htmlize(@this_user.description) %></div>
 
 <% if @user and @this_user.id == @user.id %>
-  <div id="map" style="border: 1px solid black; position: relative; width: 400px; height: 400px; float: right;">
+  <div id="map" class="user_map" style="border: 1px solid black; position: relative; width: 400px; height: 400px; float: right;">
     <% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>
       <p style="position: absolute; top: 0; bottom: 0; width: 90%; height: 30%; margin: auto 5%">
         <%= t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name) %>
     <% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>
       <p style="position: absolute; top: 0; bottom: 0; width: 90%; height: 30%; margin: auto 5%">
         <%= t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name) %>
index c42495718a91c03f53a1334354bb1968ddb60f22..c28a3c02cbe85755e2e7c93d0f4b2e2edab1c619 100644 (file)
@@ -560,6 +560,16 @@ hr {
   display: inline !important;
 }
 
   display: inline !important;
 }
 
+/* Rules for the user map */
+
+.user_map .olControlPanZoomBar {
+  display: none;
+}
+
+.user_map .olControlPanZoom {
+  display: block;
+}
+
 /* Rules for user popups on maps */
 
 .user_popup p {
 /* Rules for user popups on maps */
 
 .user_popup p {