Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
How can I prevent Leaflet from splitting on what appears to be 180 longitude?

When setting my bounds for a Leaflet map - in this case, it is the state of Alaska - how can I prevent it from splitting on the 180 longitude line, and having part of the Alaskan islands on the other side of the map?

Here is the JS I'm using:

$.getJSON(myGeoJSONPath,function(data){ 
    geoJsonLayer = L.geoJson(data, {
    clickable: false,
    style: myCustomStyle
  }).addTo(map);
  geojsondata = data;
  map.fitBounds(geoJsonLayer.getBounds());
});

Its hard to explain, but here is an example of where it is happening: https://cartographyvectors.com/map/1205-us-timezones

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda