Add localization part in readme (#74)

This commit is contained in:
Drakkins
2018-02-12 19:55:09 +01:00
committed by John Firebaugh
parent 958f2efd63
commit 7f010544f5

View File

@ -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: