Native Support for Alternate Geospatial CRS (EPSG:4326)? #6216
-
Hi! Over the past ~year I have made multiple unsuccessful attempts (5607 , 6090) at trying to leverage CRS EPSG:4326 tile sources with deck in a geospatial capacity. Was curious what the process is to nominate a feature request to prioritize adding native support for alternate geospatial CRS’ other than EPSG:3857? Namely adding support to MapController/MapView to support EPSG:4326? When working on attempt 6090 @Pessimistress made mention of this RFC (https://github.com/visgl/deck.gl/blob/master/dev-docs/RFCs/proposals/projection-mode-improvements-rfc.md) from 2017. When working on attempt 5607 @kylebarron mentioned this proposed draft (#5504) as a possibility. My current solution is less than ideal as I have stood up a MapProxy server that reprojects tiles from EPSG:4326 to EPSG:3857. Would love to be able to leverage decks MapController/MapView without having to do this reprojection via MapProxy. Others appear to have expressed similar interest… Thanks so much for your consideration and all you are doing creating such an awesome framework. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
We have a large feature backlog. I am personally maintaining this project on my own time, so I cannot promise an ETA for this particular feature. Here are things you can do:
|
Beta Was this translation helpful? Give feedback.
-
I did some work to make Mapbox and deck.gl support 4326 projection. online demo, maybe a little slow, because some js files are deployed on Chinese server. I modified Mapbox to support 4326 projection. aimap.srs = 'epsg:4326'; And I modified deck.gl base on v8.6.5 to support 4326 projection. this file: <script src="https://location-dev.newayz.com/aimap-gl-js/libs/deck-4326.min.js"></script> mostly change functions about projection between web-mercator and lnglat. |
Beta Was this translation helpful? Give feedback.
-
When I modified deck.gl for supporting 4326 projection, I found this code in 'viewport.js': get projectionMode() {
if (this.isGeospatial) {
// I modified
return PROJECTION_MODE.WEB_MERCATOR;
// deck.gl source code
// return this.zoom < 12
// ? PROJECTION_MODE.WEB_MERCATOR
// : PROJECTION_MODE.WEB_MERCATOR_AUTO_OFFSET;
}
return PROJECTION_MODE.IDENTITY;
} @Pessimistress I don't understand why projection mode changed to mercator-auto-offset when the map zoom level bigger than 12? |
Beta Was this translation helpful? Give feedback.
We have a large feature backlog. I am personally maintaining this project on my own time, so I cannot promise an ETA for this particular feature. Here are things you can do: