runette / ngx-leaflet-fullscreen

Angular wrapper for the leaflet-fullscreen control
MIT License
6 stars 1 forks source link

How to localize control titles? #10

Closed agentx-cgn closed 1 year ago

agentx-cgn commented 1 year ago

Hi,

it seams to me this should do the trick:

  public fullscreenOptions = {
    title: {
      'false': 'Vollbildansicht einschalten',
      'true':  'Vollbildansicht ausschalten',
    }
  };

  <leaflet-fullscreen-control
    [map]="map"
    [options]="fullscreenOptions"
  ></leaflet-fullscreen-control>

but no success, still 'View Fullscreen', what I'm doing wrong?

runette commented 1 year ago

I am not totally sure.

The wrapper just passes the options object to the parent library - so it should work. Let me try and do some diagnostics and see if I can reproduce the error.

runette commented 1 year ago

I managed to reproduce the problem and it seems to be, as usual for Amgular, a timing issue.

I will push a new version that should fix the problem in the next couple of days