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
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to