Hi folks

i want to zoom to the extent auf a GML-Layer, after it has been loaded.

My idea is:

  1. defining the layer, name it aLayer
  2. adding a "loadend"-event to the layer
  3. zooming map to maxextent()
  4. within the loadend-function I say
     map.zoomToExtent(aLayer.getExtent());

Theoretically it sounds good, but in partical work there is a problem:

map.zoomToExtent(aLayer.getExtent()); does not redraw my map

any ideas why ?

--
Mit freundlichen Grüßen / Yours faithfully
Carsten Eider

Dipl. Inf. (FH)

Kompetenzzentrum für Innovative Informationssysteme

c/o Fachhochschhule Bingen / University of applied sciences Bingen

Berlinstraße 109
55411 Bingen

Tel: +49 (0) 6721 / 409-179
Fax: +49 (0) 6721 / 409-158
email: [EMAIL PROTECTED]
Internet: iis.fh-bingen.de
begin:vcard
fn:Carsten Eider
n:Eider;Carsten
org:Fachhochschule Bingen;Kompetenzzentrum innovative Informationssysteme
adr;quoted-printable:;;berlinstra=C3=9Fe 109;Bingen;RLP;55411;Deutschland
email;internet:[EMAIL PROTECTED]
title:Dipl.-Inf.
tel;work:067214090179
x-mozilla-html:TRUE
url:iis.fh-bingen.de
version:2.1
end:vcard

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to