Hi all,<br><br>I am getting more and more frustrated.<br><br>After checking out all the examples at <a href="http://openlayers.org/dev/examples/">http://openlayers.org/dev/examples/</a><br>I noticed that in all examples the variables &quot;lat&quot;, &quot;lon&quot; and &quot;zoom&quot; are hard-coded.<br>

<br>However I&#39;d like to load a .gpx file like here:<br><a href="http://wiki.openstreetmap.org/wiki/Openlayers_Track_example">http://wiki.openstreetmap.org/wiki/Openlayers_Track_example</a><br><br>Then dynamically calculate the &quot;lat&quot;, &quot;lon&quot; and &quot;zoom&quot; variables from the .gpx data, so the map will always just fit.<br>

<br>I mean, websites like <a href="http://www.gpsvisualizer.com">http://www.gpsvisualizer.com</a> and <a href="http://utrack.crempa.net">http://utrack.crempa.net</a> handle tracks this way, so why not openlayers?<br><br>
Thanks,<br>
Jan<br><br><br>