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.

Loading 4326 TitleLayer failed, using proj4leaflet to convert CRS

See original GitHub issue
  • Browser and version:


  • Version of Leaflet (L.version):


  • Version of esri Leaflet (L.esri.VERSION):


  • Version of proj4leaflet (L.esri.VERSION): 1.0.1 Steps to reproduce the error:

var crs = new L.Proj.CRS(‘EPSG:4326’, ‘+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs’, { origin: [-400.0, 400.0], resolutions: [ 0.00951784402332112, 0.00475892201166056, 0.0035691915087454206, 0.00237946100583028, 0.0017845957543727103, 0.00118973050291514, 5.9486525145757e-4, 2.97432625728785e-4, 1.5228550437313792e-4, 7.614275218656896e-5, 3.807137609328448e-5, 1.903568804664224e-5, 9.51784402332112e-6, 4.75892201166056e-6, 2.37946100583028e-6, ] });

var map ='map', {
    crs: crs
}).setView([114.37638000000015, 36.063049999999976], 7);

    url: '',
    maxZoom: 12,
    minZoom: 1,

What happens is [X].

Request the title in 404 For example

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

es3154commented, Sep 15, 2017

It’s my problem, the latitude and longitude of the setView method is backwards, so origin can be defined by the definition of the map service, it doesn’t have to be [-180,90].

es3154commented, Sep 14, 2017

But our own map service Origin is [400,-400],tileSize is 256, or failed to load, I don’t know why, I am now trying to publish a map service test of Origin is [-180.0, 90.0] thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert coordinates with Proj4Leaflet from EPSG:25832 to ...
I have a wmts server, and try to add this tiles to leaflet with proj4leaflet. My code is here //this one is fine...
Read more >
Support for ESPG:4326? · Issue #26 · kartena/Proj4Leaflet
Without Proj4Leaflet I came across Leaflet/Leaflet#120 when trying to use ESPG:4326 for testing . Will this plugin use the correct 2:1 tile ...
Read more >
Proj4Leaflet - Support all projections and CRS in Leaflet
Proj4Leaflet makes it possible to use projections and CRS not built into Leaflet. ... Put the scripts after Leaflet has been loaded, like...
Read more >
Proj4Leaflet not working with various tile servers
Set in by default in Map's crs option. Mapbox, CartoDB and OSM all serve EPSG3857 tilesets. From the Mapbox's help page: Mapbox supports...
Read more >
Leaflet API reference - Data Online BMKG
If not specified and at least one GridLayer or TileLayer is in the map, ... Note that, if your page doesn't use HTTPS,...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found