-
Notifications
You must be signed in to change notification settings - Fork 0
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
alternative base maps: naturalearthdata.com #232
Comments
I'm planning on being able to provide web map tiles for all three base maps today :) |
@mfranke93 could you provide the shaded relief you used in #224 ? |
The tiles are available here. You will need the download script from the code repository, though. |
Using QGIS I was able to reproject the raster image "1:10m Cross-blended Hypsometric Tints" from I could do the same with "1:10m Natural Earth II" and could even increase the zoom levels to 0-12. |
@Schoeneh could you maybe upload a ZIP file of the tiles to the cloud? The "download all as ZIP" function of the cloud fails because the files are too large. I would like to download all the files and put it into an interactive map to try it out in full :) I had a cursory glance at some files. The tiles of levels 7 and 8 already look very pixelated. Level 6 looks okay, but not perfect either. Given the x-axis size of 21,600px of the source data, a maximum zoom level of 6 would seem sensible: log₂(21,600/256) ≈ 6.399. The fact that tiles of level 6 have a width of 337.5px in the source image also explains why the tiles look a bit pixelated: aliasing. |
@mfranke93 Here you go; I used different settings with QTiles to render multiple instances of '1:10m Natural Earth II' (zoom 0-7):
|
In total, I like the first version! It is a bit unfortunate that it only goes down to zoom level 7, but it provides a nice reference layer. However, I would suggest using less saturated colors, because the foreground layer (the markers) use color heavily already and need to be distinct from the background. Maybe it does not have to be as greyscale as the Pleiades screenshot you showed, but something in that direction? |
I'm back from DHd2024 and able to work on the base maps again :) But I'll fiddle a bit - at least a less saturated png-version of NE2 is definitely possible! |
@mfranke93 I did some testing: -40 seems the best to me |
@Schoeneh saturation=-40 looks like it could work, but maybe we want to offer an even lower saturation (10–20%) in addition? Regarding the export: that is really weird, as I also see no option for the Y order in the export dialog in the video. OSM map tiles are definitely numbered north-to-south... |
I rendered -40: |
Coincidentally, the tile numbering was correct this time around. Did you change anything, @Schoeneh?
|
@mfranke93 oh yeah! 🎉 Both seem like a good solution for some screenshots :) I'm still working on increasing the resolution; I've got some ideas from https://gis.stackexchange.com/questions/313490/increasing-resolution-of-cartopy-stock-background I unchecked "Use TMS tiles convention (Slippy Map by default)" - that should have done the trick. RE: Sidenote - yes, that seems to be a problem with the original raster image... |
Should I also render a -60-version? |
I personally prefer the -60 to the -40 one. But there should not be too many options, in my opinion. I would suggest you ask the people who are going to use it more often what they prefer, and what is most readable to them. As a sidenote: we could also defer the saturation drop to the frontend. It could just be applied to the Leaflet TileLayer via CSS, and we could add a slider to the settings menu. Then, we would only need one set of tiles (100% saturation), which reduces storage space requirements also. That should not be too hard to implement, but the question is whether the CSS desaturation works in the same color space as that of QGIS. Worth exploring with the browser DevTools, I guess. I can take a look at that with the 100% saturation tiles at some point (maybe not today). |
I tried adding I'm not up to speed as to how leaflet works - I wasn't able to find the the style-options for the different layers... But overall, it looks like the saturation via css looks the same as in QGIS. |
You'd probably want to target the tile pane of Leaflet: .leaflet-pane.leaflet-tile-pane {
filter: saturate(40%);
} But good to know that the results are the same. |
I really like the idea of a slider for the saturation! Maybe even some slider/toggle for the whole map view? |
That would be nice. Of course, it would need to be saved in the user state as well, and have an independent value for each selected base layer of the map (DARE, OSM, ...). That already adds quite a bit of implementation effort... And it needs to be documented as well. I would be willing to implement that base functionality (at some point).
Nice to have, but I really don't have the time right now. We've thought about light and dark mode for Damast in its entirety as well, but it is a lot of effort. If you (@Schoeneh), or anyone else, wants to submit a PR, I would be happy to review it, though 😅 There is a lot to consider already regarding the default colors for the religious groups and contrast. |
I agree completely: Those features would be nice, but are need a considerable effort. I'm no frontend developer; therefore, I don't see myself submitting any PRs... |
But would it be possible to add a simple slider for the whole tiles: a kind of minimal viable product? |
Reproducibility has been a key design aspect in Damast. With this minimum viable product, it is no longer possible to exactly reproduce screenshots from a state file. Besides, not all tile sets need the saturation reduced, so putting it to 50% for all tiles by default is not a good idea. |
I see your point :) |
If it is primarily for the screenshots, it could also be done as you have during testing. Especially if you have the DevTools open anyways. You could also (temporarily) add the CSS to the user stylesheet. I have to ask, though: if all of this is just for the screenshots, why not use the existing shaded relief map tiles, which are in higher level of detail (up to level 12) as well? |
It's not "just for the screenshots", those are just the only kind of time sensitive issues I've got in the back of my mind. :) From my POV: We've got some working solutions. I'm working on a version of NE2 with higher resolution. The implementation of the slider etc. would be nice, but is not required. It would be nice to have a version of NE2 implemented, but a simple tile set with 50% saturation would be enough - I would rather not stress your limited time too much :) But lets talk about that with the others on March 19th |
So, to clarify: We should not make any screenshots for our chapter before that, then? That's why I was asking. |
Well, I'm not the one who ultimately decides... |
@mfranke93 I finally created a base map as proof of concept that I'm happy with: You can find the map tiles here: And a short documentation: Unfortunately it took so long to render that only a part of it is finished - but at least I have something to show... |
Seeing the screenshot now, I have some concerns regarding lightness. We already addressed saturation, but I feel like the dark parts and especially the high-frequency changes between light and dark patches (e.g., the southern Sinai peninsula in your screenshot) could interfere visually with the foreground. I would suggest reducing the contrast of the overall image so that at most 50% of the lightness range (probably 50%–100%) are used. Is that something that can be done in QGIS directly? Otherwise, we could take a look at CSS filters for that as well, but I don't know if it is possible to map lightness precisely that way. For my tiles, I actually only used the upper third of the lightness spectrum. |
That should be possible directly in QGIS. Your input is exactly why I rendered only a proof-of-concept :) |
Simply setting the contrast of the SRTM-layer to The whole proof-of-concept as web-tiles: |
That looks good contrast-wise. Comparison of the previous version, this version, and my shaded relief tiles regarding hue, saturation, and value distribution: Yours without contrast reduction (comment) Yours with contrast reduction (comment) SRTM shaded relief (screenshot used below) Screenshot of SRTM shaded relief + Natural Earth water features |
Some screenshots from within Damast: Without reduced saturationI think reducing saturation is still needed. And maybe the water color is too saturated overall, especially for the rivers. The blue color of the Jewish communities clashes with the Nile, I think. With an additional
|
As discussed in #224 we need map tiles fitting our historical data (at least somewhat).
https://naturalearthdata.com provides vector and raster data useful for historical GIS (but not perfect).
I propose three additional base maps:
a) Similar to the one used by Tom Elliot in his updates for pleiades.stoa.org:
https://pleiades.stoa.org/news/blog/last-week-in-pleiades-12-19-february-2024
https://hcommons.social/@paregorios/111965277256064884
b) Natural Earth 2
https://www.naturalearthdata.com/downloads/10m-raster-data/10m-natural-earth-2/
c) Cross-blended Hypsometric Tints
https://www.naturalearthdata.com/downloads/10m-raster-data/10m-cross-blend-hypso/
The text was updated successfully, but these errors were encountered: