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.

DynamicMapLayers don't manage 'Antimeridian artifacts'

See original GitHub issue
  • Browser and version:


  • Version of Leaflet (L.version):


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


Steps to reproduce the error:

  1. create a DynamicMapLayer with geographic coordinate system data crossing the International Date Line (e.g. polygon data on both sides of the IDL along the Alaskan Aleutian islands).
  2. display data on map using ESRI Leaflet

What happens is …

You can view the problem by opening our public ESRI Leaflet application @ Minimize the login sidebar using the hamburger button then open the layer control in the upper right. Click off all the layers except the last (Hydrologic Units (Hu-4/Hu-8)). Pan and zoom the map to the Alaskan Aleutian islands. You’ll see that the polygon data stops at the International Date Line. As it happens, the map server supplies data on the other side of the line that’s not being translated and displayed correctly.

I was expecting all our data from the map service to be rendered without issue.

There’s a base Leaflet plugin designed to resolve this problem: We’re just missing a solution for DynamicMapLayers, which we use because of the complex rendering we need to apply for our layers. Deconstructing the object itself into GeoJSON to apply the solution offered by this plugin seems to be a misplaced solution if it might be better addressed in the ESRI Leaflet API itself.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

UsgsMonkeycommented, Oct 23, 2018

Actually, no I hadn’t. Thank you! - can you advise or offer any thoughts about what this offers vis-a-vis our problem?

Update: Ok looking at their implementation it seems pretty cut/dry… I’ll give it a shot and see if we get lucky 😃 Thanks for the tip!

jgravoiscommented, Oct 24, 2018

no worries at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrapping lines/polygons across the antimeridian in Leaflet.js
Once you have a file with several polygons which don't cross the antimeridian, they should render fine. You will hit artifacts (namely, ...
Read more >
Dealing with the antimeridian in spatial software - TIB AV-Portal
Falling off the edge of the world: Dealing with the antimeridian in spatial software. ... Establishing a Serverless Dynamic Tile Generation Workflow in...
Read more >
Becketts bar berkeley, Live 105.3 last songs played, Umetrics pls, 3 nov lotto numbers ... Barbara sampson art, Capet bgb 2015, B.s.n.l online...
Read more >
rasterio Documentation - Read the Docs
Because Rasterio's dataset objects mimic Python's file objects and implement Python's context manager protocol, it is.
Read more >
Testo e traduzione milow you don t know, Gangtok darjeeling itinerary, Futmex, ... Music played on dancing with the stars, Clarice haddad farah...
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