[Users] Add Bing Maps as baselayer

Cédric Moullet cedric.moullet at camptocamp.com
Thu Dec 10 23:15:01 CET 2009


Hi,
I tried to find a solution for this problem and I have found... a
wrokaround. But, maybe, this will help to find a solution ;-)

Have a look at:
http://dev.geoext.org/sandbox/cmoullet/ux/Bing/examples/BingExample.html
The problem comes from the loadMapObject function of
http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js#L103
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,
Cédric

On Thu, Dec 3, 2009 at 2:23 PM, Arnaud Vandecasteele
<arnaud.sig at gmail.com>wrote:

> 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 :
> > 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,
>
> Regards
>
> Arnaud
>
>
> On Thu, Dec 3, 2009 at 2:07 PM, Fabien <fabien.goblet at gmail.com> wrote:
>
>> Thank you for the reply. One day, maybe.
>>
>> Regards,
>> Fabien.
>>
>> On Sun, Nov 29, 2009 at 6:09 PM, Andreas Hocevar <ahocevar at opengeo.org>wrote:
>>
>>> Fabien wrote:
>>>
>>>> Hi,
>>>> I developped a small application in GeoExt to compare baselayers -
>>>> Google vs Yahoo vs OSM :
>>>> http://geotribu.net/applications/baselayers/index.html
>>>> I try to add the bing maps (as baselayer) in a mappanel, but without
>>>> success.
>>>> 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.
>>>>
>>>> It seems that the same problem as following :
>>>> http://www.mapfish.org/pipermail/users/2009-August/001690.html
>>>> But I haven't found any solutions to solve the problem.
>>>>
>>>
>>> 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.
>>>
>>> Having said that, there is no solution yet, and I am not aware of someone
>>> working on it.
>>>
>>> Regards,
>>> Andreas.
>>>
>>>
>>>> Any ideas would be appreciated.
>>>>
>>>> Regards,
>>>> Fabien Goblet.
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at geoext.org
>>>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>
>>>
>>> --
>>> Andreas Hocevar
>>> OpenGeo - http://opengeo.org/
>>> Expert service straight from the developers.
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> --------------------------------------------------------------------
> Van De Casteele Arnaud
> Mines Paris Tech - CRC
> Sophia-Antipolis
> 0698 24 25 29
> SIG - WebMapping - SOLAP - BI
> Web Site : http://geotribu.net/
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>


-- 
CTO Geospatial Camptocamp SA
Cédric Moullet
PSE A
CH-1015 Lausanne
www.camptocamp.com  / www.mapfish.org / twitter.com/cedricmoullet /
mapfishblog.blogspot.com/

+41 79 759 69 83 (mobile)
+41 21 619 10 21 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091210/49ecab53/attachment.htm 


More information about the Users mailing list