-
Notifications
You must be signed in to change notification settings - Fork 4
Open

Description
Hi,
I am getting into using your leaflet plugins (which are excellent!) and I stumbled across an issue with leaflet-ui.
If I set zoomControl :false
and fullscreenControl: true
then the exit fullscreen button does not appear.
For example in the demo on the leaflet-ui page, the following produce the error for me:
var map = L.map('map', {
center: [41.4583, 12.7059],
zoom: 5,
// Optional customizations
mapTypeId: 'topo',
// mapTypeIds: ['streets', 'terrain', 'satellite', 'topo'],
// gestureHandling: true,
// visualClick: true,
zoomControl: false,
// pegmanControl: true,
// locateControl: true,
fullscreenControl: true,
// layersControl: true,
// minimapControl: true,
// editInOSMControl: true,
// loadingControl: true,
// searchControl: true,
// disableDefaultUI: false,
// Experimental feature
rotate: true,
});
I have tried it on Chrome, Firefox and Edge and the issue is on all of them.
I came across this because I would like to implement zoomHome with leaflet-elevation.
hupe13 has implemented this with leaflet-elevation in his leaflet-extensions for wordpress, but I don't think he included leaflet-ui.
I am a beginner with javascript so hopefully I haven't overlooked something simple.
Metadata
Metadata
Assignees
Labels
No labels