Re: relative positioning of the map
Worked perfectly. Thanks a lot.
When I go walking I convert the track log from the GPS into GPX format
and then lay that over a map. So I'll always know what the max and min
bounds are. Come to think of it, I could work them out as the data is
read from the GPX file, rather than hard coding them by hand.
There's a sample here
http://www.lionheart.me.uk/colaton_raleigh_map.html that now uses
map.spec.getLowestZoomLevel and should work in IE, Firefox and Opera.
I might have missed it, but I couldn't find any mention of
map.spec.getLowestZoomLevel in the docs. Are there other "goodies"
hidden away somewhere?
For example, I prefer my maps to start up in hybrid mode. But on a big
screen (1600 x 1200 on a 21" display) with a small area and the browser
maximised, sometimes the map loads at a zoom level that doesn't have
the hybrid data available.
Rather than gettting that "sorry we don't have any images message" is
it possible to test whether hybrid data is available before the map
displays
i.e.
IF hybrid data not available at this zoom level THEN swtich to ordinary
map mode.
Steve
0 Comments:
Yorum Gönder
<< Home