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

215
Visualizações
Leaflet : how Prevent user to drag to gray scale area?

I use Leaflet map and i have problem om map that when user reach the edge of map it show gray back ground

Like This

and i like to prevent user to reach here and being stopped when reach the edge... is this CSS problem or i can fix it with leaflet plugin or function. Note: I use orginal sample of LEAFLET JS.

here is the map tiles configuration :

 var map = L.map('map').setView([51.505, -0.09], 3);
    L.tileLayer('https://api.maptiler.com/maps/streets/{z}/{x}/{y}.png?key=bQviwia3GEIWmWxoXm52', {
        attribution: '<a href="https://www.sample.yohaa" target="_blank">&trade; Samad</a> <a href="https://www.google.com/" target="_blank">&copy; Samad street map</a>',
        zoom: 3,
        minZoom: 3,
        maxZoom: 17,
        zoomCntrol: false,
        noWrap: true,
        id: 'mapbox/streets-v11',
        tileSize: 512,
        zoomOffset: -1,
    

    }).addTo(map);
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