OpenLayers OpenLayers

Changeset 1526

Show
Ignore:
Timestamp:
10/02/06 17:48:21 (2 years ago)
Author:
euzuro
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/ve.html

    r1424 r1526  
    2727 
    2828            velayer = new OpenLayers.Layer.VirtualEarth( "VE", 
    29             { minZoomLevel: 4, maxZoomLevel: 6 });  
     29            { minZoomLevel: 4, maxZoomLevel: 6, 'type': VEMapStyle.Aerial});  
    3030            map.addLayer(velayer); 
    3131             
  • trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js

    r1424 r1526  
    5353 
    5454        if (this.vemap != null) { 
     55 
     56            if (this.type != null) { 
     57                this.vemap.SetMapStyle(this.type); 
     58                this.type = null; 
     59            } 
     60     
    5561            var olCenter = this.map.getCenter(); 
    5662            var veCenter = this.getVELatLongFromOLLonLat(olCenter);