Show
Ignore:
Timestamp:
11/06/08 14:24:10 (21 months ago)
Author:
sbenthall
Message:

setting maxExtent to fit with tile service's 'world wide grid' to prevent odd tiles (see #372). Also, made mapOptions in configuration to allow map configurability.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/landgate/Vespucci/Application.js

    r798 r815  
    7777         
    7878        if (this.configuration.defaultZoomLevel) { 
    79             this.map.zoomTo(this.configuration.defaultZoomLevel); 
     79            this.map.setCenter(this.configuration.defaultZoomCenter, this.configuration.defaultZoomLevel); 
    8080        } else { 
    8181            this.map.zoomToMaxExtent(); 
     
    172172        var options = { 
    173173            projection: this.configuration.projection, 
    174             units: "m", 
    175174            maxExtent: this.configuration.maxExtent, 
    176175            restrictedExtent: restrictedExtent, 
     
    180179            theme: Vespucci._getScriptLocation() + "Vespucci/Theme/map.css" 
    181180        }; 
     181         
     182        OpenLayers.Util.extend(options, this.configuration.mapOptions); 
    182183         
    183184        this.map = new OpenLayers.Map(this.configuration.mapDivId, options);