-
Notifications
You must be signed in to change notification settings - Fork 34
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
Migrate to Leaflet #56
Comments
I wonder it it would be simpler to define bounding boxes on the viewport and simply change the src attribute on the tile element |
I think there might be a way to hook into the bit of Leaflet which calls the tiles and just override the template. Just a theory but it would be way quicker and simpler if so. at some point I'll try and make it work on Codepen |
On second thought, I guess making it tile constrained would limit it too much |
Let's start with just the full-screen views. /cc @sconnelley |
Oh this is quite extensive :-) |
So this work would be billed to Knight, right @mojodna? |
@sconnelley have a look at the picture-in-picture stuff to see what you think--if it's going to be way complicated (and you can't come up with uses for solutions down the line), step away and we'll bug @stamen/art for an alternate solution. The higher value piece is just updating the full-screen views--those seem like they should be more straightforward, but I could be missing something. I was disappointed that there doesn't appear to be anything that does this already. I'd be curious to hear/read your explanation of how the current system works. @danrademacher yup. |
Well I have maps.stamen.com mainly converted to Leaflet. Just need to figure out a few minor things and do some more testing but it's pretty close to being done. |
Not at all. Starting with minimal Leaflet knowledge (and unaware of how the data attributes worked), I went hunting for plugins that did the same. What you did sounds way better! Nice! |
FYI, this is how I'm supporting retina tiles within tessera: https://github.com/mojodna/tessera/blob/master/public/index.html#L64-L74 (Ignore |
@mojodna - Are all stamen tiles retina-ized? |
Just toner and variants. |
Everything seems to be working like expected, I would like to test a little more before pushing this out to the world. @mojodna - Is there a formal staging server for map.stamen.com? |
Not now, but there should be. If you have time and interest, maybe tackle #41? |
yep, will do |
err, in that case, white. i was thinking attribution links too. |
Static mini maps should now be fixed. |
I can take on #41 as well. |
closing this as it seems most issues have been resolved. We can kick up specific issues as necessary |
It seems the new leaflet version automaticaly request retina version when it thinks it's required... but there is no watercolor retina display version So what about watercolor @2x version ? No issue for toner-labels |
@JLuc thanks for this feedback. We have no plans to produce a retina version of watercolor. Maybe there is some other workaround here? |
Ok i'll see. |
Potential plugins to use to achieve the picture-in-picture effect:
https://github.com/bbecquet/Leaflet.MagnifyingGlass - seems to allow fixed coordinates, but not fixed window locations
https://github.com/turban/Leaflet.Sync - used for MapStack, but unclear how to initially correctly align the inner windows
The text was updated successfully, but these errors were encountered: