- Issue created by @daveonaka
- Status changed to Fixed
about 1 year ago 10:16pm 26 August 2023 - 🇮🇹Italy itamair
@daveonaka it is possible to define those (and any other Leaflet Map related parameter throughout the hook_leaflet_map_info() hook documented in the leaflet.api.php, here: https://git.drupalcode.org/project/leaflet/-/blob/10.0.x/leaflet.api.php...
You can always add your own Map (or even multilayers) with specific properties throughout that hook ...
For instance the Leaflet module itself is just defining a sample / default "OSM Mapnik" map style, here: https://git.drupalcode.org/project/leaflet/-/blob/10.0.x/leaflet.module#L65
But everybody is able to define their own new Leaflet map styles, also with the properties you mention (noWrap, bounds or worldCopyJump),
and then select the specific / preferred one on the Leaflet Map View settings.Hope all this is clear enough ...
Automatically closed - issue fixed for 2 weeks with no activity.