Changeset 7928
- Timestamp:
- 09/02/08 11:46:35 (3 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/MapGuide.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/MapGuide.js
r7339 r7928 29 29 * singleTile *and* isBaseLayer false is *not recommend*: it uses synchronous 30 30 * XMLHttpRequests to load tiles, and this will *lock up users browsers* 31 * during requests .31 * during requests if the server fails to respond. 32 32 **/ 33 33 singleTile: false, … … 64 64 * Create a new Mapguide layer, either tiled or untiled. 65 65 * 66 * For tiled layers, the 'groupName' and 'mapDefnition' options 67 * must be specified as options. 68 * 69 * For untiled layers, specify either combination of 'mapName' and 70 * 'session', or 'mapDefinition' and 'locale'. 66 * For tiled layers, the 'groupName' and 'mapDefinition' values 67 * must be specified as parameters in the constructor. 68 * 69 * For untiled base layers, specify either combination of 'mapName' and 70 * 'session', or 'mapDefinition' and 'locale'. 71 * 72 * For untiled overlay layers (singleTile=true and isBaseLayer=false), 73 * mapName and session are required parameters for the Layer constructor. 74 * Also NOTE: untiled overlay layers issues a synchronous AJAX request 75 * before the image request can be issued so the users browser may lock 76 * up if the MG Web tier does not respond in a timely fashion. 77 * 78 * NOTE: MapGuide OS uses a DPI value and degrees to meters conversion 79 * factor that are different than the defaults used in OpenLayers, 80 * so these must be adjusted accordingly in your application. 81 * See the MapGuide example for how to set these values for MGOS. 71 82 * 72 83 * Parameters: … … 75 86 * (e.g. http://localhost:8008/mapguide/mapagent/mapagent.fcgi) 76 87 * params - {Object} hashtable of additional parameters to use. Some 77 * parameters may require additional code on the ser er. The ones that88 * parameters may require additional code on the server. The ones that 78 89 * you may want to use are: 79 90 * - mapDefinition - {String} The MapGuide resource definition … … 117 128 this.SINGLE_TILE_PARAMS 118 129 ); 130 119 131 } else { 120 132 //initialize for tiled layers … … 197 209 //but we first need to call GETVISIBLEMAPEXTENT to set the extent 198 210 var getVisParams = {}; 211 getVisParams = OpenLayers.Util.extend(getVisParams, params); 199 212 getVisParams.operation = "GETVISIBLEMAPEXTENT"; 200 213 getVisParams.version = "1.0.0"; … … 202 215 getVisParams.mapName = this.params.mapName; 203 216 getVisParams.format = 'text/xml'; 204 getVisParams = OpenLayers.Util.extend(getVisParams, params);217 url = this.getFullRequestString( getVisParams ); 205 218 206 OpenLayers.Request.GET({ 207 url: this.url, params: getVisParams, async: false 208 }); 219 OpenLayers.Request.GET({url: url, async: false}); 209 220 } 210 221 … … 226 237 scaleindex: this.resolutions.length - this.map.zoom - 1 227 238 }); 228 }239 } 229 240 230 241 return url;
