Using CVS Revision 1.5 (BTW thanks for the patch to set the default map type)
I have played around with gmap settings and finally managed to display a track at an appropriate zoom level. Now with so many settings for gmap my apologies if am missing something simple here:
Since it is easier to describe by example:
http://neiljacklin.com/cms/2008/03/30/uk/derbyshire/bradwell/brough/hope...
expand the 'Route Map' and you will see what I am getting at.
Looking at the code for trackfield_map.module I presume (I am not a coder I hasten to add!) it should calculate the centre of the track using the boundaries and then zoom to an appropriate level while containing the boundaries.
Looking at the tracks I have uploaded it centers on the start finish point for circular tracks. In this instance some of the track points are not displayed. I could alter the global initial zoom level to accommodate all shapes of track but this could be hit or miss with a large number of nodes containing tracks.
Another problem seems to occur with a linear track where the start and finish points are not the same:
http://neiljacklin.com/cms/2008/04/01/uk/derbyshire/moscar-house/crook-h...
expand the 'Route Map'
This time no zooming seems to occur and the start and endpoint markers overlap.
Hope this all makes sense!
Comments
Comment #1
jupiterchild commentedThought I would try both the above track datasets on the test site and they centre as I would expect, the teaser zoom is perfect but in full view the zoom is a little too much.
http://trackfield.r2b2.net/node/50
On my site I have found if I change the linear track display to have 'No styling' then the track shows as expected, so it would appear the 'Collapsed Fieldset' is creating a problem.
Comment #2
raintonr commentedI imagine this is to do with the projection of the map and assumptions at the moment that pixels per degree are the same for latitude and longitude which is clearly incorrect.
Since #289487: Map magnification and type of map eg Terrain things should be almost there, but I understand the fix isn't perfect. However, as it's close right now will put this as a minor priority.