Ohhh, Great Job !<br><br>Arnaud <br><br><div class="gmail_quote">2009/12/10 Cédric Moullet <span dir="ltr"><<a href="mailto:cedric.moullet@camptocamp.com">cedric.moullet@camptocamp.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I tried to find a solution for this problem and I have found... a wrokaround. But, maybe, this will help to find a solution ;-)<br><br>Have a look at: <a href="http://dev.geoext.org/sandbox/cmoullet/ux/Bing/examples/BingExample.html" target="_blank">http://dev.geoext.org/sandbox/cmoullet/ux/Bing/examples/BingExample.html</a><br>
The problem comes from the loadMapObject function of <a href="http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js#L103" target="_blank">http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js#L103</a><br>
When this function is called, the map size is 1x1. So,in order to workaround that in the example, I firstly created the mappanel with an empty map and then added the VE layers in the map. Seems to work, but any more elegant solution is welcome,<br>
Cédric<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Dec 3, 2009 at 2:23 PM, Arnaud Vandecasteele <span dir="ltr"><<a href="mailto:arnaud.sig@gmail.com" target="_blank">arnaud.sig@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've tried also to create a slippy GeoExt map with bing as layer. But I don't think it's about the resize of the map. Instead, if I look instead the yellow square with firebug I've got a message which told that :<br>
> The VE Layer was unable to load correctly. To get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner. Most likely, this is because the VirtualEarth library script was not correctly included. Developers: For help getting this working correctly, <br>
<br>Regards<br><br>Arnaud<div><div></div><div><br><br><div class="gmail_quote">On Thu, Dec 3, 2009 at 2:07 PM, Fabien <span dir="ltr"><<a href="mailto:fabien.goblet@gmail.com" target="_blank">fabien.goblet@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for the reply. One day, maybe.<br><br>Regards, <br>Fabien.<br><br><div class="gmail_quote">On Sun, Nov 29, 2009 at 6:09 PM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Fabien wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I developped a small application in GeoExt to compare baselayers - Google vs Yahoo vs OSM : <a href="http://geotribu.net/applications/baselayers/index.html" target="_blank">http://geotribu.net/applications/baselayers/index.html</a><br>
I try to add the bing maps (as baselayer) in a mappanel, but without success.<br>
I use the same method as for google layer but I always have my map in blue with a little piece of yellow in the top left of the map.<br>
<br>
It seems that the same problem as following : <a href="http://www.mapfish.org/pipermail/users/2009-August/001690.html" target="_blank">http://www.mapfish.org/pipermail/users/2009-August/001690.html</a><br>
But I haven't found any solutions to solve the problem.<br>
</blockquote>
<br></div></div>
I can confirm that this is the same problem. I think the reason is that Bing doesn't like to be resized in early stage of loading it's API, and the way a map is created in a GeoExt MapPanel (i.e. without an existing container) makes OpenLayers create a small map first (I guess that's the small yellow rectangle), which will be resized as soon as the container exists. We had similar issues with the Google Layer, but most of these were resolved in OpenLayers.<br>
<br>
Having said that, there is no solution yet, and I am not aware of someone working on it.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<br>
Any ideas would be appreciated.<br>
<br>
Regards,<br>
Fabien Goblet.<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</blockquote></div><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br></div></div>--------------------------------------------------------------------<br>Van De Casteele Arnaud<br>Mines Paris Tech - CRC<br>Sophia-Antipolis<br>0698 24 25 29<br>
SIG - WebMapping - SOLAP - BI<br>
Web Site : <a href="http://geotribu.net/" target="_blank">http://geotribu.net/</a><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br></div></div>CTO Geospatial Camptocamp SA<br>Cédric Moullet<br>PSE A<br>CH-1015 Lausanne<br><a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a> / <a href="http://www.mapfish.org" target="_blank">www.mapfish.org</a> / <a href="http://twitter.com/cedricmoullet" target="_blank">twitter.com/cedricmoullet</a> / <a href="http://mapfishblog.blogspot.com/" target="_blank">mapfishblog.blogspot.com/</a><br>
<br>+41 79 759 69 83 (mobile)<br>+41 21 619 10 21 (direct)<br>+41 21 619 10 10 (centrale)<br>+41 21 619 10 00 (fax)<br>
</blockquote></div><br><br>