mbari-org / SeafloorMappingDB

Make MBARI seafloor mapping datasets more accessible and useful
GNU General Public License v3.0
3 stars 6 forks source link

Change the base map on the overview home page to one that displays bathymetry #70

Open MBARIMike opened 2 years ago

MBARIMike commented 2 years ago

The current basemap uses OpenStreetMap which isn't the most appropriate for oceanographic data. A better one to use is the ESRI Oceans basemap.

MBARIMike commented 2 years ago

Looks like this merged PR from @ksalamy fixes this issue!

I think we wanted to change the color of the nav_track LineStrings. Here's a stackoverflow answer that seems to show how to do this: https://stackoverflow.com/a/33205959/1281657

Oops, that previous link is for Google Maps. Here an answer for Leaflet: https://stackoverflow.com/a/53837008/1281657

MBARIMike commented 2 years ago

This change makes the lines pink on my dev system:

➜  SeafloorMappingDB git:(main) ✗ git diff smdb/smdb/static/js/map.js
diff --git a/smdb/smdb/static/js/map.js b/smdb/smdb/static/js/map.js
index 14ecf04..3170ef2 100644
--- a/smdb/smdb/static/js/map.js
+++ b/smdb/smdb/static/js/map.js
@@ -15,7 +15,13 @@ const missions = JSON.parse(
   document.getElementById("missions-data").textContent
 );

-let feature = L.geoJSON(missions)
+let feature = L.geoJSON(missions,
+{
+  style: function(){
+    return { color: 'pink' }
+  }
+}
+)
   .bindPopup(
     function (layer) {
       if (layer.feature.properties.thumbnail_image) {
jbpaduan commented 2 years ago

@ksalamy, please make the track line widths thinner again. The low-altitude survey system lines blend together in the closest zoom the map allows, for example, d20141206 and d20141207, which admittedly are re-do's of the same spot. And where there have been many, many surveys, like in the axis of Monterey Canyon, it is getting hard to distinguish between them, such as to see where you might hover the mouse for a different mission. Thanks!

ksalamy commented 2 years ago

@jbpaduan, Hi Jenny. I have decreased the track line stroke width for missions from 5 to 3.5 and sent a pull request. Please let me know if this change is sufficient for you to discern between "re-do's" of the same spot. Thanks.

jbpaduan commented 3 months ago

Please add the filtering functions that are developing on the Mission pages to the overview home page.

72

jbpaduan commented 3 months ago

Please add database search functionality to the polygon and circle drawing tools of the geometry toolbar. Desired behavior would be that the enclosed missions can be listed, perhaps in a pop-up window, hyperlinked to their Mission page, datalists can be output, and eventually (maybe) people could make their own GIS products from them.