Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

166
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda