By rfiorille - Tuesday, July 17, 2012
|
Is it just me or is the variable fSVGZoomExtent not working anymore? When I generate a report my GenoMaps open zoomed in instead of showing the whole genomap. I have tried the following:
1. Set "Show initial view of the SVG graphic as the whole of the GenoMap." to 'yes' in the English Narrative Report dialogue. 2. Customized the config.xml by setting the Default parameter fSVGZoomExtent to "Y". 3. Created a Document Custom Tag named fSVGZoomExtent and set it to Y. 4. I zoomed the genomap in GenoPro to show the whole genomap and bookmarked it then generated the report. 5. I also completely reinstalled GenoPro making sure to delete the skins folder and attempted all the above with a fresh Custom Narrative Report. None of these changes help in showing the whole GenoMap on the initial view. I would like some help in figuring out what it is I'm doing wrong.
|
By genome - Tuesday, July 17, 2012
|
No it is not just you and you are doing nothing wrong.
Zoom extents seems to be broken at present. Probably happened when I updated the zoom/pan code to support most browsers with the 'google map' style control. I noticed a typo in genomap.htm where ShowExtents in the mapInfo object should be ZoomExtent. I just tried this correction but the problem is still not fixed. The genomap is then scaled correctly but is positioned off the page. I hope to have a fix soon so watch this space...
|
By rfiorille - Tuesday, July 17, 2012
|
Thank you Ron for making me feel a little more sane! If it makes you feel any better, I tried the same fix you did with the same results. Happy to know the zoomextent works and looking forward to the fix for the positioning!
|
By genome - Tuesday, July 17, 2012
|
Firstly I have split this thread off as a separate topic as the original title did not match this issue. Unfortunately I have not been able to change this thread's title! Could you edit your 1st post to change the title please. E.g. 'SVG Zoom Extent not working'
I think I have a fix for it. Attached are replacement genomap.htm and scripts/script.es files. I will see if I can prepare a revised skin over the next few days. There are other issues I am hoping to fix first.
|
By rfiorille - Tuesday, July 17, 2012
|
Many many thanks for the fix! I replaced the script.es file and used my old genomap.htm file with the edit to the mapInfo object like you mentioned above and it works. I've made my own previous edits in my genomap.htm so I don't want to redo all the edits if you have only made the one edit. Can you just let me know if you've made more edits to the genomap.htm please! If yes, I will replace and add back in my edits. I notice that the SVG (with the fix) always zooms to show the whole SVG even when you click on a hyperlink to another individual. Is this by design? Was this always the case before when it worked? It seems the genomap should zoom in on an individual if you click on a hyperlink to them. Zooming to extent seems to be appropriate if you access the genomap from outside the genomap, i.e. a link to a genomap. Please let me know if I'm not clear in what I'm describing. If this can't be done, I do remember a while ago having the zoomextent button  in the report. What happened to that? By the way, I don't know if it's the fix, but the zoomextent works really well on the larger genomaps that I have. I was having problems zooming out on them a while back. It's really great what you've done with the svg Ron. I have tried to edit the post title but am having no luck. Hopefully Dan or JC will read and edit it.
|