If you are interested in Spherical Mercator projected OSM data, you just
grab it directly as a TMS, negating the need to host your own world file.
http://openlayers.com/dev/examples/spherical-mercator.html
On Sat, Jun 6, 2009 at 4:58 AM, Eamorr wrote:
>
> I've been using http://t1.hypercube.tel
OK, I am answering this one myself:
In
http://wiki.openstreetmap.org/wiki/Openlayers_Track_example
right after
map.addLayer(lgpx);
one needs to add:
lgpx.events.register("loadend", lgpx, function() {
this.map.zoomToExtent(this.getDataExtent()) } );
That's all folks.
Jan
On Sat, Jun 6, 2009 at
Hi all,
I am getting more and more frustrated.
After checking out all the examples at http://openlayers.org/dev/examples/
I noticed that in all examples the variables "lat", "lon" and "zoom" are
hard-coded.
However I'd like to load a .gpx file like here:
http://wiki.openstreetmap.org/wiki/Openla
I've been using http://t1.hypercube.telascience.org as my
OpenLayers.Layer.WMS.
I've got this line in my code:
var layer=new
OpenLayers.Layer.WMS("OSM",["http://t1.hypercube.telascience.org/tiles?","http://t2.hypercube.telascience.org/tiles?","http://t3.hypercube.telascience.org/tiles?","http://
Hi All,
This might be a developer post, but I write here, as may be useful for
someone. When displaying large scale maps, over 1:100
the scale is displayed as 1:1M 1:2M even if it is actually 1:150
which is quite inaccurate. I propose to change appropriate part of
OpenLayers/Control/Scale.