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

276
Visualizações
Leaflet load more geoJSON data on zoom

I have a leaflet map loading geoJSON data via a search input that queries an api. The data set contains 1300 rows and each row has a field that stores a geoJSON collection object.

My map search returns a few hundred results which are then pushed into a geoJSON feature collection, i then call map.fitBounds(geoMap.getBounds()); and the map zooms nicely to show the polygon areas from the search for geoJSON with the correct zoom level.

When the users moves or zooms the map out I need to load more of the adjacent geoJSON from the source data set.

Does leaflet.js have any in built functions to assist with this? Do I need to manually calculate the search results values and the search through the remaining data to get the 'nearest' adjacent?

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