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

Migrate to Leaflet #56

Closed
mojodna opened this issue Nov 10, 2014 · 26 comments
Closed

Migrate to Leaflet #56

mojodna opened this issue Nov 10, 2014 · 26 comments
Assignees
Labels

Comments

@mojodna
Copy link
Collaborator

mojodna commented Nov 10, 2014

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

@mojodna mojodna mentioned this issue Nov 10, 2014
@standardpixel
Copy link
Contributor

I wonder it it would be simpler to define bounding boxes on the viewport and simply change the src attribute on the tile element

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 10, 2014

I'm referring to this treatment:

image

Changing the src attribute seems like it would either result in choppiness or movement rather than masking.

@standardpixel
Copy link
Contributor

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

@standardpixel
Copy link
Contributor

On second thought, I guess making it tile constrained would limit it too much

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 19, 2014

Let's start with just the full-screen views.

/cc @sconnelley

@mojodna mojodna assigned mojodna and sconnelley and unassigned mojodna Nov 19, 2014
@mojodna mojodna added the Knight label Nov 19, 2014
@sconnelley
Copy link
Contributor

Oh this is quite extensive :-)

@danrademacher
Copy link

So this work would be billed to Knight, right @mojodna?

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

@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.

@sconnelley
Copy link
Contributor

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.
I'm retaining the PIP functionality the Shawn Allen implemented which seems to work pretty good. @mojodna is there something wrong in the current PIP functionality?

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

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!

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

FYI, this is how I'm supporting retina tiles within tessera:

https://github.com/mojodna/tessera/blob/master/public/index.html#L64-L74

(Ignore getParameterByName--that was a debugging addition from Brandon)

@sconnelley
Copy link
Contributor

@mojodna - Are all stamen tiles retina-ized?
image

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

Just toner and variants.

@sconnelley
Copy link
Contributor

See
5c56f81
23d3a40

Retina support for "toner" is in there, will expand that to variants in a bit.

@sconnelley
Copy link
Contributor

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?

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

Not now, but there should be. If you have time and interest, maybe tackle #41?

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

Probably drop the attribution and interactivity from these?

image

@sconnelley
Copy link
Contributor

yep, will do

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

Blue link text vs. black:

image

@mojodna
Copy link
Collaborator Author

mojodna commented Nov 20, 2014

err, in that case, white. i was thinking attribution links too.

@sconnelley
Copy link
Contributor

Static mini maps should now be fixed.
Yeah some of the styles are a little messed up probably getting overriden by leaflet styles. Will fix them tonight

@sconnelley
Copy link
Contributor

I can take on #41 as well.

@sconnelley
Copy link
Contributor

closing this as it seems most issues have been resolved. We can kick up specific issues as necessary

@JLuc
Copy link

JLuc commented Jun 20, 2018

It seems the new leaflet version automaticaly request retina version when it thinks it's required... but there is no watercolor retina display version

capture d ecran de 2018-06-20 11-03-26

So what about watercolor @2x version ?

No issue for toner-labels

@almccon
Copy link
Member

almccon commented Jun 20, 2018

@JLuc thanks for this feedback. We have no plans to produce a retina version of watercolor. Maybe there is some other workaround here?

@JLuc
Copy link

JLuc commented Jun 20, 2018

Ok i'll see.
Is watercolor the only one missing retina or do some other stamen layers not provide retina tiles ?

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

No branches or pull requests

6 participants