[OpenLayers-Users] Can't get VE map to work

chaak haak at agintegrated.com
Thu Oct 9 16:50:01 EDT 2008


Oh yes, that is a fun problem I came across back in the day.  Try putting
this into your options for your Virtual Earth layer:

onMapResize: function() { veLayer.loadMapObject(); }

That should, in theory, work (it works for Yahoo).  I have an extremely
in-depth system, and it doesn't work for me.  To be honest with you, I get
around the problem by destroying the Virtual Earth layer and then re-adding
it to the layer list (using the redraw function would be proper, but that
doesn't work either).  My method is an extreme kluge, but I do what I have
to do.  Maybe someone else reading this will have the proper solution (any
ideas from anyone out there would be appreciated). 

I hope the onMapResize works for you, Lennox.


Chris



Lennox Antoine wrote:
> 
> Hey Chris,
> 
> Thanks for checking it out. I looked at the map in Firebug, and see no
> error. I do have a consistent way to reproduce though. Make sure your
> browser is not maximized. Pan the Google Map that comes up. Switch to
> Virtual Earth, and pan around, that should still work. Resize your
> browser,
> then try to pan that Virtual Earth map again. It goes bonkers for me. I
> have
> tested in Firefox, Chrome.
> 
> Lennox
> 

-- 
View this message in context: http://n2.nabble.com/Can%27t-get-VE-map-to-work-tp1088773p1313931.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list