-
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
Allow visualizations to present multiple tiled raster layers #1
Comments
@apercas: If you have new ideas / approach since work started on this already, don't hesitate to share! |
Keeping a few tilesets here for testing purposes. |
Ok, so the problem here is that in order to have the same status of the map everywhere in the builder (widgets, analysis and the map itself) we can't change the map object (Leaflet) without jeopardizing the other two elements. If we do that, we'll lose their power as tools. This means each of the main elements can modify the 'map object' and the refresh of the map is lighter as we don't need to repaint everything every single time. The only way to achieve this (if I'm not wrong here) is adding a new attribute (let's call it baseSlide, for instance) that lives between the basemap and the first (as in bottom) layer that has just the tiles we want to cover the basemap with. And, obviously, having this baseSlide present always, being completely transparent if the basemap URL is blank. Plus, as we will add this as another permanent The worst thing here is that keeping this scheme up with the upstream from Carto will become a pretty little nightmare as the codebase changes interfering with the proper map and the other components would be quite huge. |
Update: I've achieve this hardcoding the Code:
on L33 of |
On it. |
We've already discussed that most of the (complicated) logic I described in this issue about reusing the existing basemap selector can wait/be ignored for now. But one thing I do want to do is put all of this (everything "raster related" behind a feature flag. What do you think @apercas? I would vote for Also, related, I would like a Hubspot event for tracking. Will add these to the issue as sub-tasks. |
I can take care of some of the subtasks once you are done (Hubspot/Segment, for instance). Edit: I actually started on the Segment.io piece today Tuesday 4/4 ... |
All in for the feature-flag. I'd like to see Diego use it before we close this. |
Update (for real):The new and buggy version relies on the by-default CARTO and cartodb.js flow with its mapnik/pgraster/postgis integration. Before you start, make sure you have a georeferenced raster file at reach, I used: https://github.com/MapWorkshops/CartoRecipes/blob/master/postgisraster/loadraster/foto_pnoa.tif To make it run:
[*] Will take care of this *soon That's all :) Happy hacking! |
UPDATED: fix here splashblot/cartodb.js@26daa5a |
Refactoring raster class: splashblot/cartodb.js@991e54e |
Updates on: https://github.com/splashblot/dronedb/tree/tileo-feature/raster-flow-issues
|
|
OK, almost have this ready for a "preview release" 😄 What's going on now that I have merged the If I run
So there are obviously new things that need to be included that So, still working here to get a working image with this feature in mostly functional state. But still a couple more steps to go! 🚶🚶🚶 |
The new Items remaining as far as I can tell from some basic clicking around:
All the above I would probably address before we close this issue. New issues can be created for the below, but feel free to disagree with me, close this and create the whole bunch as new issues (probably too late for our feature flag dreams, no?)
Other thoughts? 💪 work, @apercas! |
Great! |
Interesting, I was just re-testing and the 404 error that I thought was gone when creating the viz from the dashboard (via drag & drop of raster file) re-appeared. It worked the first time, and when I was going to create the second one for another test it popped up again. 😕 |
It would also be interesting to watch/debug the postgres errors that we see when importing rasters:
and
... for example. |
Let's review this together tomorrow, @apercas. Really need to get this branch cleaned up and ready to forget about ... ;-) |
About
This is related with the |
Naming and toggling fixed on tileo-feature/rebased-raster-over-tileo-june2017, |
Checking the thumbnails issue, please ping me for the Hubspot tracking task. |
The task here now is to set Nokia as the default map |
Done. |
Is that all? |
Nananaaaaaa nananaaaaa nananaaaaaaaaa |
We added some fixes to this #69 |
Mapnik/Windshaft rendering implementation deployed to production. |
We keep that ticket open for sentimental reasons... as it is the first open ticket :-D |
I forgot: 🍰🎉🎁Happy Birthday, ticket #1! 🍰🎉🎁 |
For our purposes, we're going to be working with a lot of tiled rasters since it looks like the future of Carto support for visualization of TIFFs is hanging by a thread. As a result we would like to allow for a visualization to contain multiple tiled raster layers that one can easily toggle.
Sub-tasks:
tileo-raster
feature flagWhat we've come up with informally, in the spirit of a quick MVP, is this:
Extend current Custom Basemap UI flow(much better approach was taken! 👍)Treat anything beyond the 1st (custom) basemap definition as a "layer on top" of the 1st (custom) basemapStart with 2 layers for now, extend to multiple later.When more than one custom basemap is defined, make the 1st one unselectable and always display it ... the toggle now acts to select which of the other basemaps should be visible on top of the 1st onePerfectly OK for opacity to be hardcoded for nowOf course, any of this can change as you see fit when implementing.
The text was updated successfully, but these errors were encountered: