2.0.4
This commit is contained in:
parent
2a2e237c0e
commit
c658b28f6e
4 changed files with 16 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.0.4 - 2024-03-01
|
||||||
|
|
||||||
|
* fix zoom and fullscreen not shown by default
|
||||||
|
|
||||||
## 2.0.3 - 2024-03-01
|
## 2.0.3 - 2024-03-01
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
VERSION = "2.0.3"
|
VERSION = "2.0.4"
|
||||||
|
|
|
@ -149,8 +149,8 @@ U.Map = L.Map.extend({
|
||||||
this.name = this.options.name
|
this.name = this.options.name
|
||||||
this.description = this.options.description
|
this.description = this.options.description
|
||||||
this.demoTileInfos = this.options.demoTileInfos
|
this.demoTileInfos = this.options.demoTileInfos
|
||||||
this.options.zoomControl = zoomControl
|
this.options.zoomControl = zoomControl !== undefined ? zoomControl : true
|
||||||
this.options.fullscreenControl = fullscreenControl
|
this.options.fullscreenControl = fullscreenControl !== undefined ? fullscreenControl : true
|
||||||
this.datalayersOnLoad = L.Util.queryString('datalayers')
|
this.datalayersOnLoad = L.Util.queryString('datalayers')
|
||||||
if (this.datalayersOnLoad) {
|
if (this.datalayersOnLoad) {
|
||||||
this.datalayersOnLoad = this.datalayersOnLoad.toString().split(',')
|
this.datalayersOnLoad = this.datalayersOnLoad.toString().split(',')
|
||||||
|
|
|
@ -228,3 +228,12 @@ def test_minimap_on_load(map, live_server, datalayer, page):
|
||||||
map.save()
|
map.save()
|
||||||
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
||||||
expect(page.locator(".leaflet-control-minimap")).to_be_visible()
|
expect(page.locator(".leaflet-control-minimap")).to_be_visible()
|
||||||
|
|
||||||
|
|
||||||
|
def test_zoom_control_on_load(map, live_server, page):
|
||||||
|
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
||||||
|
expect(page.locator(".leaflet-control-zoom")).to_be_visible()
|
||||||
|
map.settings["properties"]["zoomControl"] = False
|
||||||
|
map.save()
|
||||||
|
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
||||||
|
expect(page.locator(".leaflet-control-zoom")).to_be_hidden()
|
||||||
|
|
Loading…
Reference in a new issue