Changeset 815
- Timestamp:
- 11/06/08 14:24:10 (22 months ago)
- Location:
- branches/landgate
- Files:
-
- 2 modified
-
LandgateConfig.js (modified) (2 diffs)
-
Vespucci/Application.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/landgate/LandgateConfig.js
r814 r815 2 2 3 3 LandgateConfig.proxy = "/cgi-bin/proxy.cgi?url=", 4 5 LandgateConfig.mapOptions = { 6 units: "m" 7 } 8 4 9 LandgateConfig.wfsvUrl = "http://geo.openplans.org/geoserver/ows", 5 10 LandgateConfig.wmsUrl = [ 6 //"http://geo.openplans.org/geoserver/gwc/service/wms"7 "http://artois.openplans.org/tc/tilecache.py",11 "http://geo.openplans.org/geoserver/gwc/service/wms" 12 //"http://artois.openplans.org/tc/tilecache.py", 8 13 ]; 9 14 10 15 LandgateConfig.wmsOptions = { 11 layers: " nyc", // "topp:nyc_background", //16 layers: "topp:nyc_background", // 12 17 bgcolor: '0xECECC6', 13 18 format: 'image/png8' … … 169 174 170 175 LandgateConfig.projection = "EPSG:900913"; 171 LandgateConfig.maxExtent = new OpenLayers.Bounds(-8264065.748928515, 4962874.707924211, -8202916.126311328, 4998532.581612859); 176 177 /* 178 * Be careful about changing this maxExtent. 179 * 180 * This needs to line up with the "world wide grid" used for EPSG:900913 on the tiling server. 181 */ 182 LandgateConfig.maxExtent = new OpenLayers.Bounds(-8296780.797031253,4852834.05109375,-8140237.763125002,5009377.085); 183 172 184 LandgateConfig.maxResolution = 38.21851413574219; 173 LandgateConfig.overviewResolutions = [611.49622617187504, 305.74811308593752, 174 152.87405654296876, 76.43702827148438, 175 38.21851413574219, 19.109257067871095, 176 9.5546285339355475, 4.7773142669677737, 177 2.3886571334838869, 1.1943285667419434, 178 0.59716428337097172, 0.29858214168548586, 179 0.14929107084274293, 0.074645535421371464, 180 0.037322767710685732, 0.018661383855342866] 185 181 186 LandgateConfig.defaultZoomLevel = 2; 187 LandgateConfig.defaultZoomCenter = new OpenLayers.LonLat(-8233844.45887568, 4980388.342026915); 182 188 183 189 LandgateConfig.startInViewMode = false; -
branches/landgate/Vespucci/Application.js
r798 r815 77 77 78 78 if (this.configuration.defaultZoomLevel) { 79 this.map. zoomTo(this.configuration.defaultZoomLevel);79 this.map.setCenter(this.configuration.defaultZoomCenter, this.configuration.defaultZoomLevel); 80 80 } else { 81 81 this.map.zoomToMaxExtent(); … … 172 172 var options = { 173 173 projection: this.configuration.projection, 174 units: "m",175 174 maxExtent: this.configuration.maxExtent, 176 175 restrictedExtent: restrictedExtent, … … 180 179 theme: Vespucci._getScriptLocation() + "Vespucci/Theme/map.css" 181 180 }; 181 182 OpenLayers.Util.extend(options, this.configuration.mapOptions); 182 183 183 184 this.map = new OpenLayers.Map(this.configuration.mapDivId, options);
