Search code examples
leafletopenstreetmapleaflet-draw

why have i conflict direction right to left in CSS with leaflet?


I used the leaflet draw and now I have a problem editing, the map and editing doesn't work with Google Chrome.I realized that this is a problem with CSS(direction right to left). How can I fix it now?


Solution

  • This because of the Tooltip. Your cursor is clicked on the tooltip and not on the layer.

    Quick Fix: Add following to the tooltip:

    .leaflet-draw-tooltip{
        margin-right: 10px;
    }
    

    Or you use the free Geoman library, it is working better with the RTL but not perfect. I will create a Issue on Geoman-Github and fix it.