<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>
<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) %>
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 {