albersUsa projection?

160 views
Skip to first unread message

Marjorie Roswell

unread,
Feb 24, 2013, 4:46:59 AM2/24/13
to leafl...@googlegroups.com
d3 has a fabulous US projection, albersUsa
http://bl.ocks.org/mbostock/4090848

It enables us to easily see Alaska and Hawaii in the same view as the contiguous states.

More info at:
https://github.com/mbostock/d3/wiki/Geo-Projections#wiki-albersUsa
and
http://stackoverflow.com/questions/13054741/how-do-i-move-states-in-the-d3-albersusa-projection

Is there a similar projection in Leaflet? If not, how might we go about gaining the albersUSA projection in Leaflet?

(I'm new to both leaflet and D3.... Trying to figure out what I should adopt. Love that Leaflet is more accessible to a variety of browsers, but also love that albersUSA projection. Seeking the best of both worlds: my favorite projection, inside Leaflet. Is it possible? Doable?)




Paulo Vieira

unread,
Feb 24, 2013, 8:34:31 PM2/24/13
to leafl...@googlegroups.com
I don't know if anyone has done plugin with that projection. But if the only think you really need is to have the continental USA + alaska and hawaii in two corners, then a possible workaround could be done by creating two controls with a sort of "minimap" in each, centered in those two states.

Take a look at the minimap plugin for inspiration: https://github.com/Norkart/Leaflet-MiniMap

You could create one minimap on the bottom left corner for hawaii and other on the top left corner for alaska.
> --
>  
> ---
> You received this message because you are subscribed to the Google Groups "Leaflet" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
Reply all
Reply to author
Forward
0 new messages