[OpenLayers-Dev] VirtualEarth onResize() event.

Andreas Hocevar ahocevar at opengeo.org
Wed Jun 17 12:27:21 EDT 2009


Hi Matt,

On Wed, Jun 17, 2009 at 2:41 AM, Diez, Matthew<Matthew.Diez at iem.com> wrote:
> I believe that the VirtualEarth layer needs to have the following method
> attached:
>
>        onMapResize: function() {
>                this.mapObject.Resize(this.map.size.w, this.map.size.h);
>    },

Our other commercial layer wrappers also have something similar in
onMapResize. I can confirm that the issue exists, and that the above
fixes it.

Can you please create a ticket, provide a patch and submit a
Contributors License Agreement (if you haven't already)? For details,
see http://trac.openlayers.org/wiki/HowToContribute

Thanks!
Andreas.

>
> Unlike other types of 900913 layers, VirtualEarth doesn't automatically
> recalculate its bounds on the SetCenter (or SetCenterAndZoom) methods.
>
> This, at least, fixes a handful of my problems. Can anyone else confirm
> it? Shall I build out and post a test case to explain my rationale?
>
> Matthew D. Diez
> Software Engineer - GIS and Meteorology
> Innovative Emergency Management, Inc.
> 8550 United Plaza Boulevard, Suite 501
> Baton Rouge, LA 70809
> (225) 952-8279
>
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Dev mailing list