[OpenLayers-Users] Zoom to GML-Layer after loading
Dipl. Inf. Carsten Eider
eider at fh-bingen.de
Thu Jul 10 07:30:19 EDT 2008
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: eider at fh-bingen.de
Internet: iis.fh-bingen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlayers.org/pipermail/users/attachments/20080710/bb0a4278/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eider.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
Url : http://openlayers.org/pipermail/users/attachments/20080710/bb0a4278/attachment-0001.vcf
More information about the Users
mailing list