-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
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 |
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) { |
@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! |
@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. |
Please add the filtering functions that are developing on the Mission pages to the overview home page. |
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. |
The current basemap uses OpenStreetMap which isn't the most appropriate for oceanographic data. A better one to use is the ESRI Oceans basemap.
The text was updated successfully, but these errors were encountered: