[OpenLayers-Users] Changing extension and map size dinamically

Ivan Grcic igrcic at gmail.com
Fri Jan 9 06:46:53 EST 2009


Hola,

as far as i know, map automatically extends to 100% of its div size.
After you change div size, you call map.updateSize(); to refresh map
dimensions!

something like:
map.events.register('zoomend', map, function(e){
     map.updateSize();
});

Ta lue'

2009/1/9 Eduardo José Vilela Gómez <eduardovg at gmrcanarias.com>:
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Ivan Grcic



More information about the Users mailing list