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: Sunday, April 12, 2026
Posts: 269, Visits: 1,783
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
Replies
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: Yesterday @ 8:59 PM
Posts: 3,486, Visits: 27,197
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: Sunday, April 12, 2026
Posts: 269, Visits: 1,783
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: Yesterday @ 8:59 PM
Posts: 3,486, Visits: 27,197
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

Threaded View

Expand / Collapse
Threaded View
Forum Post Is there a way to Toggle Layers in a GenoMap? By NiKo ( Saturday, September 16, 2023 )
Forum Post I had some difficulty getting the layers to work correctly. I... By NiKo ( Wednesday, November 22, 2023 )
Forum Post Thank you for implementing it so quickly! Wondering if you could add... By NiKo ( Tuesday, November 7, 2023 )
Forum Post 1. Re 'Date Reference', as you suggest a genomap can only have a... By genome ( Thursday, November 23, 2023 )
Forum Post This is fantastic. Playing with the Layer Names and Check Boxes, I... By NiKo ( Friday, November 3, 2023 )
Forum Post I'm glad you are finding it useful. It was fairly straight forward to... By genome ( Saturday, November 4, 2023 )
Forum Post Danke, danke jetzt hab auch ich es kapiert. :P Hat alles geklappt By albertsali ( Monday, October 2, 2023 )
Forum Post WOW!!!! That looks and works amazingly well!!! Thank you!! By NiKo ( Sunday, October 1, 2023 )
Forum Post Version 2023.10.05 fo the Narrative Report Skin template allows... By genome ( Thursday, October 5, 2023 )
Forum Post Könnte man die Arbeitsschritte des benutzerdefinierten Tags '_Layer'... By albertsali ( Thursday, September 28, 2023 )
Forum Post I will put together more detailed instructions on producing layers.... By genome ( Friday, September 29, 2023 )
Forum Post I have added more detailed instructions on the Potter GenoMap at... By genome ( Sunday, October 1, 2023 )
Forum Post Yes I think this can be achieved in the Narrative Report using for... By genome ( Sunday, September 17, 2023 )
Forum Post That would be pretty incredible and very helpful! :) :) :)... By NiKo ( Sunday, September 17, 2023 )
Forum Post Spent some time 'relaxing' in the evenings away from the DIY stuff... By genome ( Friday, September 22, 2023 )


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse