[OpenLayers-Users] VEMapStyle is undefined when using mapcontrol v7.0

Andreas Hocevar ahocevar at opengeo.org
Sun Mar 18 07:04:14 EDT 2012


Hi,

why don't you just switch from Layer.VirtualEarth to Layer.Bing? This
would be much more lightweight, because no JavaScript API is involved
at all.

Andreas.

On Fri, Mar 16, 2012 at 3:42 PM, Takako Tucker <Takako.Tucker at bbc.co.uk> wrote:
> Hello,
>
>
>
> I wonder if you could help.
>
> We are using Openlayers 2.11 and VirtualEarth map.
>
> I’m now trying to upgrade the version of mapcontrol from 6.3 to 7.0 as the
> older version is too heavy.
>
>
>
> Currently I have getMapTypes function in our code
>
>
>
>    getMapTypes: function() {
>
>
>
>         return {
>
>             normal: VEMapStyle.Road,
>
>             satellite: VEMapStyle.Aerial,
>
>             hybrid: VEMapStyle.Hybrid
>
>         };
>
>
>
>     },
>
>
>
> However when switching to 6.3c or 7.0, it throws an error “VEMapStyle” is
> undefined.
>
> I had a look ta mapcontrol 6.3c and 7.0 version and both don’t seem to have
> VEMapStyle references.
>
>
>
> Does anyone know the right way of setting virtual earth tiles using 6.3c or
> 7.0 ?
>
> I tired pulling Bing tile direct, but that also caused an error.
>
>
>
> Thanks for your help in advance.
>
>
>
> Takako
>
>
>
>
>
>
>
> http://www.bbc.co.uk
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance
> on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



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


More information about the Users mailing list