[OpenLayers-Users] need help with vectors

Marco Zühlke Marco.Zuehlke at brockmann-consult.de
Wed Dec 27 04:16:43 EST 2006


Adam Eskreis wrote:
> I know the vectors are still in development but if someone could help me 
> it would be most appreciated.  I'm pretty sure my code is right, but for 
> some reason the program keeps messing up when i try to add the features 
> to the vector.  here is the relevant code:
> 

Hi Adam,

try adding the command:

"map.zoomToMaxExtent();"

before you add any feature to the vector layer, but after you have added 
the vector layer to the map. For me this solved the problem.

Regards,
Marco


-- 
Marco Zühlke (Brockmann Consult)
phone: +49 4152 889 312 web: http://www.brockmann-consult.de



More information about the Users mailing list