[OpenLayers-Users] Going nuts: getDataExtent
Jan Martin
janmartin3 at googlemail.com
Mon Jun 8 08:02:04 EDT 2009
Hi all,
I am going nuts over not beeing able to figure out how to make getDataExtent
work for me.
This is my page NOT working yet:
http://mybestprojects.com/data/test/tracks_layers.html
I try to model after
http://oms.wff.ch/ol_track.htm (tracks work fine, just zoom in on the red
point manually.)
and
http://nuug.no/kart.shtml (automatic zoom by getDataExtent not working for
me.)
Code in question might be:
if( ! map.getCenter() ){
lgpx.events.register('loadend', map,
function(){this.zoomToExtent(lgpx.getDataExtent())});
map.setCenter(null, null);
}
or check out whole page source at
http://mybestprojects.com/data/test/tracks_layers.html
What's wrong?
Thanks,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090608/2737a8e1/attachment.html
More information about the Users
mailing list