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

189
Vistas
Leaflet Fullscreen

I use the framework codeigniter3
bootrsap 5 called in header.php
Leaflet map cdn (in view)
leaflet.fullscreen cdn (in view)
jquery cdn (in view)

1st step in mode fullscreen off (worked fine)

<script>
 $("#map").css('z-index', 0);
 $(".sidebar").css('position', 'absolute')
 $(".sidebar").css('z-index', 1);
 $(".sidebar").draggable();
 $(".card-header-sidebar").css('cursor', 'grab');
</script>

when i change fullscreen ok ( my problem )

i want to keep the sidebar visible

Full screen off
full screen on

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

There are no solution for fullscreen leaflet with extern html content
Other adapted solution:
Add class hidden to sidebar ( Html element )

Create Legend on map

const legend = L.control({
  position: "topleft"
});

Get html content

const legend_html = $('#sidebar').html()

Add this to map

legend.onAdd = function() {
  let div = L.DomUtil.create("div", "leaflet-legend");
  L.DomEvent.disableClickPropagation(div);
  div.insertAdjacentHTML("beforeend", legend_html);
  return div;
};
legend.addTo(map);

Fullscreen result

about 4 years ago · Santiago Trujillo Denunciar
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