- Posts: 32
Question maps question
- charris
- Topic Author
- Offline
- New Member
Is the size of the map set by css? Is it something I can change?
The question about opening another is a bit more complicated. Any suggestions would be appreciated.
Folks, the more I work with webtrees the better I like it. This is a great application. Thank you for all you have done.
Carter
Please Log in or Create an account to join the conversation.
- photon flip
- Offline
- Junior Member
I'm thinking that instead of making the map bigger - it's limited by the block width - what about having a full-screen button. There is a module for the interactive chart that adds a full-screen button, I wonder if it would be possible for someone to adapt one for the map?
As for opening in a new window or tab, I duplicate the current window into a new tab or window - I have dual monitors that so I can see then side by side which is great. The windows run independently so you can branch off in different directions.
I agree, webtrees is an amazing piece of software and getting better all the time. Fantastic work by Greg Roach and others.
MurrayJ
MurrayJ
Fuller-Bennett Family Tree
Please Log in or Create an account to join the conversation.
- charris
- Topic Author
- Offline
- New Member
- Posts: 32
My initial response is that the button is probably a good solution. I'm going to play around with it on the interactive tree and make sure. Wonder how difficult it would be to adapt the module for maps?
Thanks again for your response.
Carter
Please Log in or Create an account to join the conversation.
- hermann
- Away
- Elite Member
Hermann
Designer of the custom module "Extended Family"
webtrees 2.1.19 (all custom modules installed, PHP 8.2, MariaDB 10.6) @ ahnen.hartenthaler.eu
Please Log in or Create an account to join the conversation.
- charris
- Topic Author
- Offline
- New Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- charris
- Topic Author
- Offline
- New Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- ddrury
- Offline
- Senior Member
BTW the map code can be found in resources/js/webtrees.js
--
Dave
Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Please Log in or Create an account to join the conversation.
- hermann
- Away
- Elite Member
Maybe you can use the translation function of your browser to read it.
Hermann
Designer of the custom module "Extended Family"
webtrees 2.1.19 (all custom modules installed, PHP 8.2, MariaDB 10.6) @ ahnen.hartenthaler.eu
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
Use a button to toggle a class (e.g. wt-map-fullscreen), which sets position absolute, width/height 100%, etc.
This technique might work on other charts, too.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- charris
- Topic Author
- Offline
- New Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- ddrury
- Offline
- Senior Member
--
Dave
Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
Is this what is desired? I presumed that users would want the entire chart (including the sidebar with facts/births) shown. i.e. similar to the way the interactive tree has a "full screen" mode.
I was thinking of a more generic solution that worked in a similar way to this.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- charris
- Topic Author
- Offline
- New Member
- Posts: 32
Thank you, Greg and All.
Please Log in or Create an account to join the conversation.
- photon flip
- Offline
- Junior Member
I think either way would work well.
MurrayJ
MurrayJ
Fuller-Bennett Family Tree
Please Log in or Create an account to join the conversation.
- ddrury
- Offline
- Senior Member
I presumed that users would want the entire chart (including the sidebar with facts/births)
Simple, as we pass the element to be fullscreened to the fullscreen function just change the element - for the maps
instead of
See image
BTW the plugin (Which I abandoned!) had the full screen control icon attached to the zoom control making a run of three icons. I've left it separate but it's simple to change. Any preference?
...always assuming Greg accepts the PR
--
Dave
Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Please Log in or Create an account to join the conversation.
- ddrury
- Offline
- Senior Member
--
Dave
Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Please Log in or Create an account to join the conversation.
- charris
- Topic Author
- Offline
- New Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- ddrury
- Offline
- Senior Member
It successfully makes the tree fullscreen but reveals a minor problem in that the default background colour for fullscreen mode on as far as I can see on all browsers is black so a bit of css is needed.
--
Dave
Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Please Log in or Create an account to join the conversation.
- charris
- Topic Author
- Offline
- New Member
- Posts: 32
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.