1

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?

nasrin.mkh
  • 91
  • 1
  • 2
  • 8
  • Pls share code and/or a live example – Falke Design Jul 02 '20 at 06:19
  • body has this CSS code [direction: rtl] so when i want to edit my drawing map with change points i can not change point in chrome. like this link "http://leaflet.github.io/Leaflet.draw/docs/examples/full.html" if you add this CSS code in inspect element for body, you can not edit drawing map – nasrin.mkh Jul 02 '20 at 06:32

1 Answers1

3

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.

Falke Design
  • 10,635
  • 3
  • 15
  • 30