allow VE to specify map type. fix for #273. update ve.html example to show how

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-02 21:48:21 +00:00
parent 14a2418a62
commit 890b2a6ffc
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -52,6 +52,12 @@ OpenLayers.Layer.VirtualEarth.prototype =
moveTo:function(bounds, zoomChanged, minor) {
if (this.vemap != null) {
if (this.type != null) {
this.vemap.SetMapStyle(this.type);
this.type = null;
}
var olCenter = this.map.getCenter();
var veCenter = this.getVELatLongFromOLLonLat(olCenter);