GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Is there a way to Toggle Layers in a GenoMap?

Click to view RSS...
Author
Posted Saturday, September 16, 2023 - Post #43375
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Tuesday, June 11, 2024
Posts: 252, Visits: 1,691
I've tried various methods to highlight Y-DNA (passed from a father to each son) and mt-DNA (passed from each mother to each child).

I've tried changing the colours inside a gender shape, changing the gender shape outline, changing the colour of the box surrounding a gender shape, changing the colour of drop, marriage, and child lines.

They all end up making it complicated to figure out what is going on in the GenoMap, and what DNA was passed from which person to another, and who might be good candidates for future DNA testing.



My most recent idea is to create a shape (created by hand) that runs down the left side of individuals that inherited a particular Y-DNA, see imagine below:
http://support.genopro.com/Uploads/Images/408a1dad-84e5-44e5-b0ac-897e.png


The shape for mt-DNA would run down the right side and be in a different colour.

My question is, can I create 3 Layers that I can toggle through?  (It would be great if additional layers could be added to the transmission of other types of DNA)
Layer 1 would be the normal GenoMap
Layer 2 would be the Y-DNA, for example
Layer 3 would be the mt-DNA

Layer 1 would always appear, and I could add in Layer 2 or 3, or both Layer 2 and 3.

Here's an example of an easy to follow mt-DNA transmission from this magazine articleMacleans Article on King Richard III
http://support.genopro.com/Uploads/Images/2b8700aa-8f02-4ea3-af86-a221.jpg


Here's a less clear diagram from this site: MI Teaching Tool
http://support.genopro.com/Uploads/Images/428c7985-e404-46eb-b188-5f33.png


And here's my attempt at using Dark Green inside a gender shape to show Y-DNA, and light green to show mt-DNA transmission.  Colour choices could be better, but it's still difficult to follow how the DNA is passed, and where it gets cut off.
http://support.genopro.com/Uploads/Images/423ea763-6f52-41ed-97aa-3564.png
Posted Sunday, September 17, 2023 - Post #43377
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, June 14, 2024
Posts: 3,356, Visits: 25,724
Yes I think this can be achieved in the Narrative Report using for example CSS Classes.  Objects in each layer will have a particular class name e.g. Y-DNA defined in a Custom Tag e.g. _Layer

A drop down list of layers would need to be added to the Narrative Report genomap pages. Clicking a name in this list would toggle that layer on or off by setting the style display attribute of objects in that Class to  inline or none. 
 
I think this would a a very good general feature e.g. layering different centuries or decades.  I'd like to have a stab at scripting this but I'm pretty full on with a Home DIY project at present so it will go on the back burner for now.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, September 17, 2023 - Post #43381
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Tuesday, June 11, 2024
Posts: 252, Visits: 1,691
That would be pretty incredible and very helpful!  Smile Smile Smile

Hope your DIY projects go well, and I'm happy to wait until you can get around to it.
Posted Friday, September 22, 2023 - Post #43401
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, June 14, 2024
Posts: 3,356, Visits: 25,724
Spent some time 'relaxing' in the evenings away from the DIY stuff looking into this. Turns out is was reasonably straight forward but as usual I make many stupid mistakes along the way but got there in the end. So release 2023.09.22 has this functionality, available as usual at Updates to Report Skin Templates since GenoPro 2020 version 3.1.0.1

Just use the GenoPro Tag Editor to create custom Tags for all object types you wish yo include in a 'layer' with a Tag Permanent Name of _Layers. The Tag Display Name can be anything you like e.g. 'GenoMap Layers'. The Tag Description is not used by the skin at present but I may use it for a tooltip on the Layers dropdown list.

Then set a value of your chosen layer name in the _Layers Custom Tag of the objects to be included in that layer. The Narrative Report skin will generate a layer for each unique value of the _layers custom tag. 

I've included an example in the Potter genomap at https://familytrees.genopro.com/genome/HarryPotter/default.htm

Still has an issue or two, e.g. the layers dropdown does not slide over the content below it but just pushes it down the  screen. If any CSS gurus out there can tell me how toget over this that would be great.

Made a silent update to version 2023.09.22 to fix issue of layer dropdown not floating over content below it.  (Googled and found some CSS magic using position:absolute and z-index:100 with some top and right positioning with left: inherit)


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Friday, September 22, 2023 by genome
Posted Thursday, September 28, 2023 - Post #43420
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, June 7, 2024
Posts: 57, Visits: 1,420
Könnte man die Arbeitsschritte des benutzerdefinierten Tags '_Layer' näher beschreiben, damit auch ein 'Laie' nachvollziehen kann, wie dies geht.
Oder auch die neueste HarryPotter.gno zum download einstellen, um darin die Arbeitsschritte nachzusehen.
'Normale' Benutzertags hab ich einige gemacht, aber hier blicke ich nicht durch,... sorry
Posted Friday, September 29, 2023 - Post #43424
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, June 14, 2024
Posts: 3,356, Visits: 25,724
I will put together more detailed instructions on producing layers.

I also realize there may be an issue with non-ascii characters in the layer names. e.g. German eszett and umlaut. I'll look into this and hopefully provide a solution.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, October 1, 2023 - Post #43431
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, June 14, 2024
Posts: 3,356, Visits: 25,724
I have added more detailed instructions on the Potter GenoMap at  https://familytrees.genopro.com/genome/HarryPotter/default.htm and also included a download link on the homepage for the .gno

Using Non-ASCII layer names seems to be Ok, I've added a layer Großraumbüroklimagerätestörung that works fine.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, October 1, 2023 - Post #43432
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Tuesday, June 11, 2024
Posts: 252, Visits: 1,691
WOW!!!! That looks and works amazingly well!!!  Thank you!!
Posted Monday, October 2, 2023 - Post #43438
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, June 7, 2024
Posts: 57, Visits: 1,420
Danke, danke jetzt hab auch ich es kapiert.Tongue
Hat alles geklappt
Posted Thursday, October 5, 2023 - Post #43448
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, June 14, 2024
Posts: 3,356, Visits: 25,724
Version 2023.10.05 fo the Narrative Report Skin template allows drawing objects to be part of more than one layer.  Such objects will be displayed unless all of the layers of which it is a member are turned off.  Layer names set in the _Layers custom tag for such objects must be separated by the vertical bar character i.e. |  

For example in the sample Potter genomap  the Emotional Relationships from Lord Voldemort towards James Potter and Lily Evans are in a layer named 'Emotional Relationships' and also in a layer named 'Violence'

http://support.genopro.com/Uploads/Images/a0164e57-4405-439c-855d-a0d9.png


I have also added a background to the dropdown list and made the layer names clickable as well as the checkbox to make it easier to use.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse