[OpenLayers-Users] How to calculate Bounds for Image Layer Example?

Ilya Braude ilya at drakontas.com
Wed Jun 24 13:37:34 EDT 2009



Andreas Hocevar wrote:
> As for calculating the image size and the aspect ratio: that's exactly
> what we do for externalGraphic point symbols
> (http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Renderer/VML.js#L365).
> So if you want to do this, the solution is to register an
> onreadystatechange listener before setting img.src.
>    

Thanks!  That's a great piece of code that will help me solve a number 
of problems, along with the styling with filters in the GeoRSS flikr 
example.


Ilya



More information about the Users mailing list