1

i'm using leaflet to render a map on my site.

The problem is, i use mongoDB to perform some geospatial queries serverside, which use as standard the infamous epsg4326.

It appears that on leaflet there is support for this format, though i wasn't able to find a tile server with this specification.

Can anyone suggest one ?

  • 1
    You would probably be interested in this: gis.stackexchange.com/questions/198073/… – ghybs Jun 21 '16 at 2:01
  • 1
    Unless I'm missing something, the data in MongoDB must be vector data right? In that case, you can keep the map in WebMercator, and just show your data on top of it, as a Vector (i.e. GeoJSON, etc) Layer. – Devdatta Tengshe Jun 21 '16 at 4:07
  • problem is i'm using geojson documents in mongo and geospatial query to retrive data, but the geospatial queries use as projection this format, while on leaflet even if there's support for epsg4326, the tile servers i've found only serve 3857... – darkpirate Jun 21 '16 at 17:12
1

Hmm. Yes, most tile provider use 3857 but, 4326 is also native supported by leaflet.

Before you asked question did you try retrieved data from mongo to use with leaflet? As far as I know it's shouldn't be a problem. When you add geojson with points in 4326 leaflet will internally reproject them to 3857.

  • yeah, deforming them. i've done it. i need leaflet to not projects the points at all – darkpirate Jun 26 '16 at 2:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.