mirror of
https://github.com/Leaflet/Leaflet.fullscreen.git
synced 2025-07-21 23:47:09 +00:00
Add localization part in readme (#74)
This commit is contained in:
13
README.md
13
README.md
@ -35,6 +35,19 @@ map.on('fullscreenchange', function () {
|
||||
});
|
||||
```
|
||||
|
||||
### Localization
|
||||
|
||||
To change fullscreen control text:
|
||||
|
||||
``` js
|
||||
map.addControl(new L.Control.Fullscreen({
|
||||
title: {
|
||||
'false': 'View Fullscreen',
|
||||
'true': 'Exit Fullscreen'
|
||||
}
|
||||
}));
|
||||
```
|
||||
|
||||
### Including via CDN
|
||||
|
||||
Leaflet.fullscreen is [available through the Mapbox Plugin CDN](https://www.mapbox.com/mapbox.js/plugins/#leaflet-fullscreen) - just copy this include:
|
||||
|
Reference in New Issue
Block a user