Did you include the Bing API script in your HTML document, as shown in http://openlayers.org/dev/examples/bing.html?
Other than that, I'd recommend signing up for an API key and using OpenLayers.Layer.Bing. Layer.Bing doesn't need an external mapObject - it is just tiles like any other layer that inherits from OpenLayers.Layer.XYZ. Andreas. On Tue, May 3, 2011 at 4:19 PM, ulao <[email protected]> wrote: > For some reason ve now gives me errors? I use this > > VEAerial = new OpenLayers.Layer.VirtualEarth( "Virtual Earth Raods", > {'type': VEMapStyle.Road ,'sphericalMercator': true , 'maxExtent': new > OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)} ); > > then when adding the base layer I get mapObject is null. I tried to use the > .Bing constructor and use the example given, I get object expected. I do > not have a VE key, its this an issues all of a sudden? > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/mapObject-is-null-using-ve-tp6327434p6327434.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
