Ticket #794: resolutions.patch
| File resolutions.patch, 6.0 kB (added by tschaub, 2 years ago) |
|---|
-
lib/OpenLayers/Layer.js
old new 100 100 101 101 /** 102 102 * Property: options 103 * {Object} 103 * {Object} An optional object whose properties will be set on the layer. 104 * Any of the layer properties can be set as a property of the options 105 * object and sent to the constructor when the layer is created. 104 106 */ 105 107 options: null, 106 108 107 109 /** 108 * Property: gutter110 * APIProperty: gutter 109 111 * {Integer} Determines the width (in pixels) of the gutter around image 110 112 * tiles to ignore. By setting this property to a non-zero 111 113 * value, images will be requested that are wider and taller … … 118 120 gutter: 0, 119 121 120 122 /** 121 * Property: projection123 * APIProperty: projection 122 124 * {String} Set in the layer options to override the default projection 123 125 * string this layer - also set maxExtent, maxResolution, and 124 126 * units if appropriate. … … 126 128 projection: null, 127 129 128 130 /** 129 * Property: units131 * APIProperty: units 130 132 * {String} The layer map units. Defaults to 'degrees'. Possible values 131 133 * are 'degrees' (or 'dd'), 'm', 'ft', 'km', 'mi', 'inches'. 132 134 */ 133 135 units: null, 134 136 135 137 /** 136 * Property: scales138 * APIProperty: scales 137 139 * {Array} 138 140 */ 139 141 scales: null, 140 142 141 143 /** 142 * Property: resolutions 143 * {Array} 144 * APIProperty: resolutions 145 * {Array} A list of map resolutions (map units per pixel) in descending 146 * order. If this is not set in the layer constructor, it will be set 147 * based on other resolution related properties (maxExtent, maxResolution, 148 * maxScale, etc.). 144 149 */ 145 150 resolutions: null, 146 151 147 152 /** 148 * Property: maxExtent153 * APIProperty: maxExtent 149 154 * {<OpenLayers.Bounds>} 150 155 */ 151 156 maxExtent: null, 152 157 153 158 /** 154 * Property: minExtent159 * APIProperty: minExtent 155 160 * {<OpenLayers.Bounds>} 156 161 */ 157 162 minExtent: null, 158 163 159 164 /** 160 * Property: maxResolution165 * APIProperty: maxResolution 161 166 * {Float} Default max is 360 deg / 256 px, which corresponds to 162 167 * zoom level 0 on gmaps. Specify a different value in the layer 163 168 * options if you are not using a geographic projection and … … 166 171 maxResolution: null, 167 172 168 173 /** 169 * Property: minResolution174 * APIProperty: minResolution 170 175 * {Float} 171 176 */ 172 177 minResolution: null, 173 178 174 179 /** 175 * Property: numZoomLevels180 * APIProperty: numZoomLevels 176 181 * {Integer} 177 182 */ 178 183 numZoomLevels: null, 179 184 180 185 /** 181 * Property: minScale186 * APIProperty: minScale 182 187 * {Float} 183 188 */ 184 189 minScale: null, 185 190 186 191 /** 187 * Property: maxScale192 * APIProperty: maxScale 188 193 * {Float} 189 194 */ 190 195 maxScale: null, 191 196 192 197 /** 193 * Property: displayOutsideMaxExtent198 * APIProperty: displayOutsideMaxExtent 194 199 * {Boolean} Request map tiles that are completely outside of the max extent 195 200 * for this layer. Defaults to false 196 201 */ 197 202 displayOutsideMaxExtent: false, 198 203 199 204 /** 200 * Property: wrapDateLine205 * APIProperty: wrapDateLine 201 206 * {Boolean} #487 for more info. 202 207 */ 203 208 wrapDateLine: false, -
lib/OpenLayers/Map.js
old new 136 136 */ 137 137 viewRequestID: 0, 138 138 139 // Options139 // Options 140 140 141 141 /** 142 142 * APIProperty: tileSize … … 146 146 tileSize: null, 147 147 148 148 /** 149 * Property: projection149 * APIProperty: projection 150 150 * {String} Set in the map options to override the default projection 151 151 * string this map - also set maxExtent, maxResolution, and 152 152 * units if appropriate. … … 154 154 projection: "EPSG:4326", 155 155 156 156 /** 157 * Property: units157 * APIProperty: units 158 158 * {String} The map units. Defaults to 'degrees'. Possible values are 159 159 * 'degrees' (or 'dd'), 'm', 'ft', 'km', 'mi', 'inches'. 160 160 */ 161 161 units: 'degrees', 162 162 163 163 /** 164 * Property: maxResolution 164 * APIProperty: resolutions 165 * {Array} A list of map resolutions (map units per pixel) in descending 166 * order. If this is not set in the layer constructor, it will be set 167 * based on other resolution related properties (maxExtent, maxResolution, 168 * maxScale, etc.). 169 */ 170 resolutions: null, 171 172 /** 173 * APIProperty: maxResolution 165 174 * {Float} Default max is 360 deg / 256 px, which corresponds to 166 175 * zoom level 0 on gmaps. Specify a different value in the map 167 176 * options if you are not using a geographic projection and … … 170 179 maxResolution: 1.40625, 171 180 172 181 /** 173 * Property: minResolution182 * APIProperty: minResolution 174 183 * {Float} 175 184 */ 176 185 minResolution: null, 177 186 178 187 /** 179 * Property: maxScale188 * APIProperty: maxScale 180 189 * {Float} 181 190 */ 182 191 maxScale: null, 183 192 184 193 /** 185 * Property: minScale194 * APIProperty: minScale 186 195 * {Float} 187 196 */ 188 197 minScale: null, 189 198 190 199 /** 191 * Property: maxExtent200 * APIProperty: maxExtent 192 201 * {<OpenLayers.Bounds>} The maximum extent for the map. Defaults to the 193 202 * whole world in decimal degrees 194 203 * (-180, -90, 180, 90). Specify a different … … 199 208 maxExtent: null, 200 209 201 210 /** 202 * Property: minExtent211 * APIProperty: minExtent 203 212 * {<OpenLayers.Bounds>} 204 213 */ 205 214 minExtent: null, 206 215 207 216 /** 208 * Property: numZoomLevels217 * APIProperty: numZoomLevels 209 218 * {Integer} Number of zoom levels for the map. Defaults to 16. Set a 210 219 * different value in the map options if needed. 211 220 */
