0

I am using Leaflet and OpenLayers. When I draw a bounding box I am getting the correct lat and lon if I use OpenStreetMap tilelayer. When I switch to using EarthData tilelayer the bounding box is incorrect. Map

Using this layer bring incorrect bounding box

 L.tileLayer('//gibs-{s}.earthdata.nasa.gov/wmts/epsg4326/best/MODIS_Terra_CorrectedReflectance_TrueColor/default/'+tile_date+'/EPSG4326_250m/{z}/{y}/{x}.jpg

gives correct bounding box.

 L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png    
6
0

Thanks for all the help. I changed the tileLayer to use the default projection for leaflet //gibs-{s}.earthdata.nasa.gov/wmts/epsg3857/best/MODIS_Terra_CorrectedReflectance_TrueColor/default/'+tile_date+'/EPSG3857_250m/{z}/{y}/{x}.jpg

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.