diff --git a/app/assets/javascripts/maps.js b/app/assets/javascripts/maps.js index 3d2d75dc19..27069324bd 100644 --- a/app/assets/javascripts/maps.js +++ b/app/assets/javascripts/maps.js @@ -63,6 +63,8 @@ initialize = function () { get_Data(); get_window_center(); + document.getElementById('map_coords').text = 'Center: \xA0 \xA0 \xA0 \xA0Latitude = ' + center_lat.toFixed(6) + ' , Longitude = ' + center_long.toFixed(6); + map.setCenter(center_lat_long); map.setZoom(gzoom); @@ -100,7 +102,7 @@ initialize = function () { var mapLatLng = event.latLng; lat = mapLatLng.lat(); lng = mapLatLng.lng(); - document.getElementById('taxonworks_link').text = 'TaxonWorks Latitude = ' + lat + ' , Longitude = ' + lng; + document.getElementById('map_coords').text = 'Coordinates: Latitude = ' + lat.toFixed(6) + ' , Longitude = ' + lng.toFixed(6); }); }; diff --git a/app/views/geographic_areas/_attributes.html.erb b/app/views/geographic_areas/_attributes.html.erb index d4a6acd1a6..8ba076ff70 100644 --- a/app/views/geographic_areas/_attributes.html.erb +++ b/app/views/geographic_areas/_attributes.html.erb @@ -54,16 +54,18 @@

<% if @geographic_area.geographic_items.count > 0 -%> -

- "Default" shape: - <%= link_to('(Collecting events within)', tasks_gis_locality_within_path(@geographic_area.geographic_items.first.id)) %> +

+ "Default" shape: + <%= link_to('(Collecting events within)', tasks_gis_locality_within_path(@geographic_area.geographic_items.first.id)) %> +

-

+ +

- + - + <% end %>