TransWikia.com

Adjust pop up container in Leaflet

Geographic Information Systems Asked by MrSalamikuchen on March 26, 2021

I have a problem wit my current project. When I export my QGIS Project via qgis2web there is a strange behaviour of the map pop ups which are not fitting the content.

Leaflet pop up container not fitting the content

It sometimes cuts the container size, but I can not find the reason. It happens randomly. Sometimes it is displayed properly sometimes it looks like on the attached picture.

One Answer

So i figured out what was causing the problem. .leaflet-popup-content { width:auto; padding-right:14px; }

The width setting to auto in the qgis2web.css sheet produced the error. I just changed the value to 100 px and now it looks perfect.

That's how it looks now

Answered by MrSalamikuchen on March 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP