Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MBARIMike opened this issue Sep 29, 2021 · 6 comments
Labels
good first issue Good for newcomers

Comments

@MBARIMike
Copy link
Contributor

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 MBARIMike added the good first issue Good for newcomers label Sep 29, 2021
@MBARIMike
Copy link
Contributor Author

MBARIMike commented Dec 8, 2021

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
Copy link
Contributor Author

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
Copy link
Collaborator

@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
Copy link
Collaborator

ksalamy commented Jan 18, 2022

@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
Copy link
Collaborator

jbpaduan commented Jun 1, 2024

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

@jbpaduan
Copy link
Collaborator

jbpaduan commented Jun 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants