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

197
Vistas
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 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