question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Add support for projections not supported by Leaflet

See original GitHub issue

The Proj4Leaflet Javascript library adds support for additional projections in Leaflet, beyond the standard projections. Could this also be added to IPyLeaflet so that non-standard projections could be requested? For example:

map = ipyleafletee.Map(
  crs='EPSG:3020',  # http://spatialreference.org/ref/epsg/wgs-84-antarctic-polar-stereographic/
  zoom=6,
  center=[0, 0],
  default_tiles=ipyleaflet.TileLayer(url=SOME_URL_THAT_RETURNS_PROJECTED_TILES)
)
map

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
davidbrochartcommented, May 14, 2020

There is no particular reason not to support it, and it would be great to have. I investigated the use of Proj4Leaflet with vector tiles (that we now have in ipyleaflet), which would have been really nice, but it doesn’t seem to be possible (https://github.com/kartena/Proj4Leaflet/issues/173). If you want to work on that, that would be awesome.

1reaction
betolinkcommented, May 14, 2020

I was going to open this issue but it’s already open so, is there any reason why this is not supported? I think a lot of people work with non standard projections and it would be nice-to-have feature. I can work on it and send a PR for next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

leaflet does not handle projected coordinates and confuses ...
A user asked me why sp and rgdal are broken because leaflet does not display sp objects read in using rgdal. It is...
Read more >
Leaflet proj4leaflet with multiple projections
Conclusion: I got email from Pier Liedman who wrote the Leaflet Proj4 plugin. It is not possible to have two CRS in one...
Read more >
Proj4Leaflet - Support all projections and CRS in Leaflet
Proj4Leaflet makes it possible to use projections and CRS not built into Leaflet. All major projections are supported by using the popular and...
Read more >
proj4leaflet - npm
This Leaflet plugin adds support for using projections supported by Proj4js. Proj4Leaflet uses Leaflet 1.0.3, for compatibility with Leaflet ...
Read more >
Documentation - a JavaScript library for interactive maps
If not specified and at least one GridLayer or TileLayer is in the map, ... subdomains (used sequentially to help with browser parallel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found