0

In my React app, I'd like to edit the text displayed in the cursor tool-tip when using a Geoman tool (and providing texts for different languages like Geoman does). Is there any built-in way to do this or should I use a querySelector ?

FE-P
  • 69
  • 8

1 Answers1

1

You can overwritte the tooltips with your custom translation:

const customTranslation = {
  tooltips: {
    placeMarker: 'Custom Marker Translation',
  },
};

map.pm.setLang('customName', customTranslation, 'en');
Falke Design
  • 10,635
  • 3
  • 15
  • 30