15.4 MB
/srv/reproducible-results/rbuild-debian/r-b-build.lNvZiMu7/b1/openlayers_2.13.1+ds2-11_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.lNvZiMu7/b2/openlayers_2.13.1+ds2-11_amd64.changes
230 B
Files
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
  
1 ·29dfe7b960a8cccf3cd90c017b0f7895·708480·javascript·optional·libjs-openlayers_2.13.1+ds2-11_all.deb1 ·7f24c5f1887f3777877f076501d4536a·716092·javascript·optional·libjs-openlayers_2.13.1+ds2-11_all.deb
15.4 MB
libjs-openlayers_2.13.1+ds2-11_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2025-03-06·18:35:30.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-03-06·18:35:30.000000·debian-binary
2 -rw-r--r--···0········0········0·····3684·2025-03-06·18:35:30.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3680·2025-03-06·18:35:30.000000·control.tar.xz
3 -rw-r--r--···0········0········0···704604·2025-03-06·18:35:30.000000·data.tar.xz3 -rw-r--r--···0········0········0···712220·2025-03-06·18:35:30.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
15.4 MB
data.tar.xz
15.4 MB
data.tar
5.19 MB
./usr/share/javascript/openlayers/OpenLayers.js
5.19 MB
js-beautify {}
    
Offset 136, 14 lines modifiedOffset 136, 647 lines modified
136 ·····*·(code)136 ·····*·(code)
137 ·····*···<link·rel="stylesheet"·href="/path/to/default/style.css"··type="text/css">137 ·····*···<link·rel="stylesheet"·href="/path/to/default/style.css"··type="text/css">
138 ·····*·(end·code)138 ·····*·(end·code)
139 ·····*/139 ·····*/
140 ····ImgPath:·''140 ····ImgPath:·''
141 };141 };
142 /*·======================================================================142 /*·======================================================================
 143 ····OpenLayers/BaseTypes/Class.js
 144 ···======================================================================·*/
  
 145 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for
 146 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.
 147 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the
 148 ·*·full·text·of·the·license.·*/
  
 149 /**
 150 ·*·@requires·OpenLayers/SingleFile.js
 151 ·*/
  
 152 /**
 153 ·*·Constructor:·OpenLayers.Class
 154 ·*·Base·class·used·to·construct·all·other·classes.·Includes·support·for·
 155 ·*·····multiple·inheritance.·
 156 ·*·····
 157 ·*·This·constructor·is·new·in·OpenLayers·2.5.··At·OpenLayers·3.0,·the·old·
 158 ·*·····syntax·for·creating·classes·and·dealing·with·inheritance·
 159 ·*·····will·be·removed.
 160 ·*·
 161 ·*·To·create·a·new·OpenLayers-style·class,·use·the·following·syntax:
 162 ·*·(code)
 163 ·*·····var·MyClass·=·OpenLayers.Class(prototype);
 164 ·*·(end)
 165 ·*
 166 ·*·To·create·a·new·OpenLayers-style·class·with·multiple·inheritance,·use·the
 167 ·*·····following·syntax:
 168 ·*·(code)
 169 ·*·····var·MyClass·=·OpenLayers.Class(Class1,·Class2,·prototype);
 170 ·*·(end)
 171 ·*·
 172 ·*·Note·that·instanceof·reflection·will·only·reveal·Class1·as·superclass.
 173 ·*
 174 ·*/
 175 OpenLayers.Class·=·function()·{
 176 ····var·len·=·arguments.length;
 177 ····var·P·=·arguments[0];
 178 ····var·F·=·arguments[len·-·1];
  
 179 ····var·C·=·typeof·F.initialize·==·"function"·?
 180 ········F.initialize·:
 181 ········function()·{
 182 ············P.prototype.initialize.apply(this,·arguments);
 183 ········};
  
 184 ····if·(len·>·1)·{
 185 ········var·newArgs·=·[C,·P].concat(
 186 ············Array.prototype.slice.call(arguments).slice(1,·len·-·1),·F);
 187 ········OpenLayers.inherit.apply(null,·newArgs);
 188 ····}·else·{
 189 ········C.prototype·=·F;
 190 ····}
 191 ····return·C;
 192 };
  
 193 /**
 194 ·*·Function:·OpenLayers.inherit
 195 ·*
 196 ·*·Parameters:
 197 ·*·C·-·{Object}·the·class·that·inherits
 198 ·*·P·-·{Object}·the·superclass·to·inherit·from
 199 ·*
 200 ·*·In·addition·to·the·mandatory·C·and·P·parameters,·an·arbitrary·number·of
 201 ·*·objects·can·be·passed,·which·will·extend·C.
 202 ·*/
 203 OpenLayers.inherit·=·function(C,·P)·{
 204 ····var·F·=·function()·{};
 205 ····F.prototype·=·P.prototype;
 206 ····C.prototype·=·new·F;
 207 ····var·i,·l,·o;
 208 ····for·(i·=·2,·l·=·arguments.length;·i·<·l;·i++)·{
 209 ········o·=·arguments[i];
 210 ········if·(typeof·o·===·"function")·{
 211 ············o·=·o.prototype;
 212 ········}
 213 ········OpenLayers.Util.extend(C.prototype,·o);
 214 ····}
 215 };
  
 216 /**
 217 ·*·APIFunction:·extend
 218 ·*·Copy·all·properties·of·a·source·object·to·a·destination·object.··Modifies
 219 ·*·····the·passed·in·destination·object.··Any·properties·on·the·source·object
 220 ·*·····that·are·set·to·undefined·will·not·be·(re)set·on·the·destination·object.
 221 ·*
 222 ·*·Parameters:
 223 ·*·destination·-·{Object}·The·object·that·will·be·modified
 224 ·*·source·-·{Object}·The·object·with·properties·to·be·set·on·the·destination
 225 ·*
 226 ·*·Returns:
 227 ·*·{Object}·The·destination·object.
 228 ·*/
 229 OpenLayers.Util·=·OpenLayers.Util·||·{};
 230 OpenLayers.Util.extend·=·function(destination,·source)·{
 231 ····destination·=·destination·||·{};
 232 ····if·(source)·{
 233 ········for·(var·property·in·source)·{
 234 ············var·value·=·source[property];
 235 ············if·(value·!==·undefined)·{
 236 ················destination[property]·=·value;
 237 ············}
 238 ········}
  
 239 ········/**
 240 ·········*·IE·doesn't·include·the·toString·property·when·iterating·over·an·object's
 241 ·········*·properties·with·the·for(property·in·object)·syntax.··Explicitly·check·if
 242 ·········*·the·source·has·its·own·toString·property.
 243 ·········*/
  
 244 ········/*
 245 ·········*·FF/Windows·<·2.0.0.13·reports·"Illegal·operation·on·WrappedNative
 246 ·········*·prototype·object"·when·calling·hawOwnProperty·if·the·source·object
 247 ·········*·is·an·instance·of·window.Event.
 248 ·········*/
  
 249 ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&
 250 ············source·instanceof·window.Event;
  
 251 ········if·(!sourceIsEvt·&&
Max diff block lines reached; 5420062/5441957 bytes (99.60%) of diff not shown.
1.57 MB
./usr/share/javascript/openlayers/OpenLayers.light.js
1.57 MB
js-beautify {}
    
Offset 11246, 24479 lines modifiedOffset 11246, 20717 lines modified
11246 OpenLayers.Map.TILE_WIDTH·=·256;11246 OpenLayers.Map.TILE_WIDTH·=·256;
11247 /**11247 /**
11248 ·*·Constant:·TILE_HEIGHT11248 ·*·Constant:·TILE_HEIGHT
11249 ·*·{Integer}·256·Default·tile·height·(unless·otherwise·specified)11249 ·*·{Integer}·256·Default·tile·height·(unless·otherwise·specified)
11250 ·*/11250 ·*/
11251 OpenLayers.Map.TILE_HEIGHT·=·256;11251 OpenLayers.Map.TILE_HEIGHT·=·256;
11252 /*·======================================================================11252 /*·======================================================================
11253 ····OpenLayers/Strategy.js11253 ····OpenLayers/Format.js
11254 ···======================================================================·*/11254 ···======================================================================·*/
  
11255 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for11255 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for
11256 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.11256 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.
11257 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the11257 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the
11258 ·*·full·text·of·the·license.·*/11258 ·*·full·text·of·the·license.·*/
  
11259 /**11259 /**
11260 ·*·@requires·OpenLayers/BaseTypes/Class.js11260 ·*·@requires·OpenLayers/BaseTypes/Class.js
 11261 ·*·@requires·OpenLayers/Util.js
11261 ·*/11262 ·*/
  
11262 /**11263 /**
11263 ·*·Class:·OpenLayers.Strategy11264 ·*·Class:·OpenLayers.Format
11264 ·*·Abstract·vector·layer·strategy·class.··Not·to·be·instantiated·directly.··Use 
11265 ·*·····one·of·the·strategy·subclasses·instead.11265 ·*·Base·class·for·format·reading/writing·a·variety·of·formats.··Subclasses
 11266 ·*·····of·OpenLayers.Format·are·expected·to·have·read·and·write·methods.
11266 ·*/11267 ·*/
11267 OpenLayers.Strategy·=·OpenLayers.Class({11268 OpenLayers.Format·=·OpenLayers.Class({
  
11268 ····/**11269 ····/**
11269 ·····*·Property:·layer 
11270 ·····*·{<OpenLayers.Layer.Vector>}·The·layer·this·strategy·belongs·to.11270 ·····*·Property:·options
 11271 ·····*·{Object}·A·reference·to·options·passed·to·the·constructor.
11271 ·····*/11272 ·····*/
11272 ····layer:·null,11273 ····options:·null,
  
11273 ····/**11274 ····/**
11274 ·····*·Property:·options 
11275 ·····*·{Object}·Any·options·sent·to·the·constructor.11275 ·····*·APIProperty:·externalProjection
 11276 ·····*·{<OpenLayers.Projection>}·When·passed·a·externalProjection·and
 11277 ·····*·····internalProjection,·the·format·will·reproject·the·geometries·it
 11278 ·····*·····reads·or·writes.·The·externalProjection·is·the·projection·used·by
 11279 ·····*·····the·content·which·is·passed·into·read·or·which·comes·out·of·write.
 11280 ·····*·····In·order·to·reproject,·a·projection·transformation·function·for·the
 11281 ·····*·····specified·projections·must·be·available.·This·support·may·be·
 11282 ·····*·····provided·via·proj4js·or·via·a·custom·transformation·function.·See
 11283 ·····*·····{<OpenLayers.Projection.addTransform>}·for·more·information·on
 11284 ·····*·····custom·transformations.
11276 ·····*/11285 ·····*/
11277 ····options:·null,11286 ····externalProjection:·null,
  
11278 ····/**·11287 ····/**
11279 ·····*·Property:·active· 
11280 ·····*·{Boolean}·The·control·is·active.11288 ·····*·APIProperty:·internalProjection
 11289 ·····*·{<OpenLayers.Projection>}·When·passed·a·externalProjection·and
 11290 ·····*·····internalProjection,·the·format·will·reproject·the·geometries·it
 11291 ·····*·····reads·or·writes.·The·internalProjection·is·the·projection·used·by
 11292 ·····*·····the·geometries·which·are·returned·by·read·or·which·are·passed·into
 11293 ·····*·····write.··In·order·to·reproject,·a·projection·transformation·function
 11294 ·····*·····for·the·specified·projections·must·be·available.·This·support·may·be
 11295 ·····*·····provided·via·proj4js·or·via·a·custom·transformation·function.·See
 11296 ·····*·····{<OpenLayers.Projection.addTransform>}·for·more·information·on
 11297 ·····*·····custom·transformations.
11281 ·····*/11298 ·····*/
11282 ····active:·null,11299 ····internalProjection:·null,
  
11283 ····/**11300 ····/**
 11301 ·····*·APIProperty:·data
 11302 ·····*·{Object}·When·<keepData>·is·true,·this·is·the·parsed·string·sent·to
 11303 ·····*·····<read>.
11284 ·····*·Property:·autoActivate 
11285 ·····*·{Boolean}·The·creator·of·the·strategy·can·set·autoActivate·to·false 
11286 ·····*······to·fully·control·when·the·protocol·is·activated·and·deactivated. 
11287 ·····*······Defaults·to·true. 
11288 ·····*/11304 ·····*/
11289 ····autoActivate:·true,11305 ····data:·null,
  
11290 ····/**11306 ····/**
 11307 ·····*·APIProperty:·keepData
 11308 ·····*·{Object}·Maintain·a·reference·(<data>)·to·the·most·recently·read·data.
 11309 ·····*·····Default·is·false.
11291 ·····*·Property:·autoDestroy 
11292 ·····*·{Boolean}·The·creator·of·the·strategy·can·set·autoDestroy·to·false 
11293 ·····*······to·fully·control·when·the·strategy·is·destroyed.·Defaults·to 
11294 ·····*······true. 
11295 ·····*/11310 ·····*/
11296 ····autoDestroy:·true,11311 ····keepData:·false,
  
11297 ····/**11312 ····/**
11298 ·····*·Constructor:·OpenLayers.Strategy11313 ·····*·Constructor:·OpenLayers.Format
11299 ·····*·Abstract·class·for·vector·strategies.··Create·instances·of·a·subclass.11314 ·····*·Instances·of·this·class·are·not·useful.··See·one·of·the·subclasses.
11300 ·····*11315 ·····*
11301 ·····*·Parameters:11316 ·····*·Parameters:
11302 ·····*·options·-·{Object}·Optional·object·whose·properties·will·be·set·on·the11317 ·····*·options·-·{Object}·An·optional·object·with·properties·to·set·on·the
11303 ·····*·····instance.11318 ·····*···········format
 11319 ·····*
 11320 ·····*·Valid·options:
 11321 ·····*·keepData·-·{Boolean}·If·true,·upon·<read>,·the·data·property·will·be
 11322 ·····*·····set·to·the·parsed·object·(e.g.·the·json·or·xml·object).
 11323 ·····*
 11324 ·····*·Returns:
 11325 ·····*·An·instance·of·OpenLayers.Format
11304 ·····*/11326 ·····*/
11305 ····initialize:·function(options)·{11327 ····initialize:·function(options)·{
11306 ········OpenLayers.Util.extend(this,·options);11328 ········OpenLayers.Util.extend(this,·options);
11307 ········this.options·=·options;11329 ········this.options·=·options;
11308 ········//·set·the·active·property·here,·so·that·user·cannot·override·it 
11309 ········this.active·=·false; 
11310 ····},11330 ····},
  
11311 ····/**11331 ····/**
11312 ·····*·APIMethod:·destroy11332 ·····*·APIMethod:·destroy
11313 ·····*·Clean·up·the·strategy.11333 ·····*·Clean·up.
11314 ·····*/11334 ·····*/
11315 ····destroy:·function()·{11335 ····destroy:·function()·{},
11316 ········this.deactivate(); 
11317 ········this.layer·=·null; 
11318 ········this.options·=·null; 
11319 ····}, 
  
11320 ····/**11336 ····/**
11321 ·····*·Method:·setLayer11337 ·····*·Method:·read
11322 ·····*·Called·to·set·the·<layer>·property.11338 ·····*·Read·data·from·a·string,·and·return·an·object·whose·type·depends·on·the
 11339 ·····*·subclass.·
11323 ·····*11340 ·····*·
11324 ·····*·Parameters:11341 ·····*·Parameters:
 11342 ·····*·data·-·{string}·Data·to·read/parse.
11325 ·····*·layer·-·{<OpenLayers.Layer.Vector>} 
Max diff block lines reached; 1635719/1641368 bytes (99.66%) of diff not shown.
465 KB
./usr/share/javascript/openlayers/OpenLayers.light.min.js
465 KB
js-beautify {}
    
Offset 4283, 4858 lines modifiedOffset 4283, 14 lines modified
4283 ············}4283 ············}
4284 ········}4284 ········}
4285 ····},4285 ····},
4286 ····CLASS_NAME:·"OpenLayers.Map"4286 ····CLASS_NAME:·"OpenLayers.Map"
4287 });4287 });
4288 OpenLayers.Map.TILE_WIDTH·=·256;4288 OpenLayers.Map.TILE_WIDTH·=·256;
4289 OpenLayers.Map.TILE_HEIGHT·=·256;4289 OpenLayers.Map.TILE_HEIGHT·=·256;
4290 OpenLayers.Strategy·=·OpenLayers.Class({ 
4291 ····layer:·null, 
4292 ····options:·null, 
4293 ····active:·null, 
4294 ····autoActivate:·true, 
4295 ····autoDestroy:·true, 
4296 ····initialize:·function(options)·{ 
4297 ········OpenLayers.Util.extend(this,·options); 
4298 ········this.options·=·options; 
4299 ········this.active·=·false 
4300 ····}, 
4301 ····destroy:·function()·{ 
4302 ········this.deactivate(); 
4303 ········this.layer·=·null; 
4304 ········this.options·=·null 
4305 ····}, 
4306 ····setLayer:·function(layer)·{ 
4307 ········this.layer·=·layer 
4308 ····}, 
4309 ····activate:·function()·{ 
4310 ········if·(!this.active)·{ 
4311 ············this.active·=·true; 
4312 ············return·true 
4313 ········} 
4314 ········return·false 
4315 ····}, 
4316 ····deactivate:·function()·{ 
4317 ········if·(this.active)·{ 
4318 ············this.active·=·false; 
4319 ············return·true 
4320 ········} 
4321 ········return·false 
4322 ····}, 
4323 ····CLASS_NAME:·"OpenLayers.Strategy" 
4324 }); 
4325 OpenLayers.Strategy.Fixed·=·OpenLayers.Class(OpenLayers.Strategy,·{ 
4326 ····preload:·false, 
4327 ····activate:·function()·{ 
4328 ········var·activated·=·OpenLayers.Strategy.prototype.activate.apply(this,·arguments); 
4329 ········if·(activated)·{ 
4330 ············this.layer.events.on({ 
4331 ················refresh:·this.load, 
4332 ················scope:·this 
4333 ············}); 
4334 ············if·(this.layer.visibility·==·true·||·this.preload)·{ 
4335 ················this.load() 
4336 ············}·else·{ 
4337 ················this.layer.events.on({ 
4338 ····················visibilitychanged:·this.load, 
4339 ····················scope:·this 
4340 ················}) 
4341 ············} 
4342 ········} 
4343 ········return·activated 
4344 ····}, 
4345 ····deactivate:·function()·{ 
4346 ········var·deactivated·=·OpenLayers.Strategy.prototype.deactivate.call(this); 
4347 ········if·(deactivated)·{ 
4348 ············this.layer.events.un({ 
4349 ················refresh:·this.load, 
4350 ················visibilitychanged:·this.load, 
4351 ················scope:·this 
4352 ············}) 
4353 ········} 
4354 ········return·deactivated 
4355 ····}, 
4356 ····load:·function(options)·{ 
4357 ········var·layer·=·this.layer; 
4358 ········layer.events.triggerEvent("loadstart",·{ 
4359 ············filter:·layer.filter 
4360 ········}); 
4361 ········layer.protocol.read(OpenLayers.Util.applyDefaults({ 
4362 ············callback:·this.merge, 
4363 ············filter:·layer.filter, 
4364 ············scope:·this 
4365 ········},·options)); 
4366 ········layer.events.un({ 
4367 ············visibilitychanged:·this.load, 
4368 ············scope:·this 
4369 ········}) 
4370 ····}, 
4371 ····merge:·function(resp)·{ 
4372 ········var·layer·=·this.layer; 
4373 ········layer.destroyFeatures(); 
4374 ········var·features·=·resp.features; 
4375 ········if·(features·&&·features.length·>·0)·{ 
4376 ············var·remote·=·layer.projection; 
4377 ············var·local·=·layer.map.getProjectionObject(); 
4378 ············if·(!local.equals(remote))·{ 
4379 ················var·geom; 
4380 ················for·(var·i·=·0,·len·=·features.length;·i·<·len;·++i)·{ 
4381 ····················geom·=·features[i].geometry; 
4382 ····················if·(geom)·{ 
4383 ························geom.transform(remote,·local) 
4384 ····················} 
4385 ················} 
4386 ············} 
4387 ············layer.addFeatures(features) 
4388 ········} 
4389 ········layer.events.triggerEvent("loadend",·{ 
4390 ············response:·resp 
4391 ········}) 
4392 ····}, 
4393 ····CLASS_NAME:·"OpenLayers.Strategy.Fixed" 
4394 }); 
4395 OpenLayers.Filter·=·OpenLayers.Class({ 
4396 ····initialize:·function(options)·{ 
4397 ········OpenLayers.Util.extend(this,·options) 
4398 ····}, 
4399 ····destroy:·function()·{}, 
4400 ····evaluate:·function(context)·{ 
4401 ········return·true 
4402 ····}, 
4403 ····clone:·function()·{ 
4404 ········return·null 
4405 ····}, 
4406 ····toString:·function()·{ 
4407 ········var·string; 
4408 ········if·(OpenLayers.Format·&&·OpenLayers.Format.CQL)·{ 
4409 ············string·=·OpenLayers.Format.CQL.prototype.write(this) 
Max diff block lines reached; 281087/476028 bytes (59.05%) of diff not shown.
1.98 MB
./usr/share/javascript/openlayers/OpenLayers.min.js
1.98 MB
js-beautify {}
    
Offset 17, 14 lines modifiedOffset 17, 263 lines modified
17 ········}17 ········}
18 ········return·function()·{18 ········return·function()·{
19 ············return·l19 ············return·l
20 ········}20 ········}
21 ····}(),21 ····}(),
22 ····ImgPath:·""22 ····ImgPath:·""
23 };23 };
 24 OpenLayers.Class·=·function()·{
 25 ····var·len·=·arguments.length;
 26 ····var·P·=·arguments[0];
 27 ····var·F·=·arguments[len·-·1];
 28 ····var·C·=·typeof·F.initialize·==·"function"·?·F.initialize·:·function()·{
 29 ········P.prototype.initialize.apply(this,·arguments)
 30 ····};
 31 ····if·(len·>·1)·{
 32 ········var·newArgs·=·[C,·P].concat(Array.prototype.slice.call(arguments).slice(1,·len·-·1),·F);
 33 ········OpenLayers.inherit.apply(null,·newArgs)
 34 ····}·else·{
 35 ········C.prototype·=·F
 36 ····}
 37 ····return·C
 38 };
 39 OpenLayers.inherit·=·function(C,·P)·{
 40 ····var·F·=·function()·{};
 41 ····F.prototype·=·P.prototype;
 42 ····C.prototype·=·new·F;
 43 ····var·i,·l,·o;
 44 ····for·(i·=·2,·l·=·arguments.length;·i·<·l;·i++)·{
 45 ········o·=·arguments[i];
 46 ········if·(typeof·o·===·"function")·{
 47 ············o·=·o.prototype
 48 ········}
 49 ········OpenLayers.Util.extend(C.prototype,·o)
 50 ····}
 51 };
 52 OpenLayers.Util·=·OpenLayers.Util·||·{};
 53 OpenLayers.Util.extend·=·function(destination,·source)·{
 54 ····destination·=·destination·||·{};
 55 ····if·(source)·{
 56 ········for·(var·property·in·source)·{
 57 ············var·value·=·source[property];
 58 ············if·(value·!==·undefined)·{
 59 ················destination[property]·=·value
 60 ············}
 61 ········}
 62 ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&·source·instanceof·window.Event;
 63 ········if·(!sourceIsEvt·&&·source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{
 64 ············destination.toString·=·source.toString
 65 ········}
 66 ····}
 67 ····return·destination
 68 };
 69 OpenLayers.Geometry·=·OpenLayers.Class({
 70 ····id:·null,
 71 ····parent:·null,
 72 ····bounds:·null,
 73 ····initialize:·function()·{
 74 ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_")
 75 ····},
 76 ····destroy:·function()·{
 77 ········this.id·=·null;
 78 ········this.bounds·=·null
 79 ····},
 80 ····clone:·function()·{
 81 ········return·new·OpenLayers.Geometry
 82 ····},
 83 ····setBounds:·function(bounds)·{
 84 ········if·(bounds)·{
 85 ············this.bounds·=·bounds.clone()
 86 ········}
 87 ····},
 88 ····clearBounds:·function()·{
 89 ········this.bounds·=·null;
 90 ········if·(this.parent)·{
 91 ············this.parent.clearBounds()
 92 ········}
 93 ····},
 94 ····extendBounds:·function(newBounds)·{
 95 ········var·bounds·=·this.getBounds();
 96 ········if·(!bounds)·{
 97 ············this.setBounds(newBounds)
 98 ········}·else·{
 99 ············this.bounds.extend(newBounds)
 100 ········}
 101 ····},
 102 ····getBounds:·function()·{
 103 ········if·(this.bounds·==·null)·{
 104 ············this.calculateBounds()
 105 ········}
 106 ········return·this.bounds
 107 ····},
 108 ····calculateBounds:·function()·{},
 109 ····distanceTo:·function(geometry,·options)·{},
 110 ····getVertices:·function(nodes)·{},
 111 ····atPoint:·function(lonlat,·toleranceLon,·toleranceLat)·{
 112 ········var·atPoint·=·false;
 113 ········var·bounds·=·this.getBounds();
 114 ········if·(bounds·!=·null·&&·lonlat·!=·null)·{
 115 ············var·dX·=·toleranceLon·!=·null·?·toleranceLon·:·0;
 116 ············var·dY·=·toleranceLat·!=·null·?·toleranceLat·:·0;
 117 ············var·toleranceBounds·=·new·OpenLayers.Bounds(this.bounds.left·-·dX,·this.bounds.bottom·-·dY,·this.bounds.right·+·dX,·this.bounds.top·+·dY);
 118 ············atPoint·=·toleranceBounds.containsLonLat(lonlat)
 119 ········}
 120 ········return·atPoint
 121 ····},
 122 ····getLength:·function()·{
 123 ········return·0
 124 ····},
 125 ····getArea:·function()·{
 126 ········return·0
 127 ····},
 128 ····getCentroid:·function()·{
 129 ········return·null
 130 ····},
 131 ····toString:·function()·{
 132 ········var·string;
 133 ········if·(OpenLayers.Format·&&·OpenLayers.Format.WKT)·{
 134 ············string·=·OpenLayers.Format.WKT.prototype.write(new·OpenLayers.Feature.Vector(this))
 135 ········}·else·{
 136 ············string·=·Object.prototype.toString.call(this)
 137 ········}
 138 ········return·string
 139 ····},
 140 ····CLASS_NAME:·"OpenLayers.Geometry"
 141 });
 142 OpenLayers.Geometry.fromWKT·=·function(wkt)·{
 143 ····var·geom;
Max diff block lines reached; 2063460/2071890 bytes (99.59%) of diff not shown.
844 KB
./usr/share/javascript/openlayers/OpenLayers.mobile.js
844 KB
js-beautify {}
    
Offset 136, 14 lines modifiedOffset 136, 576 lines modified
136 ·····*·(code)136 ·····*·(code)
137 ·····*···<link·rel="stylesheet"·href="/path/to/default/style.css"··type="text/css">137 ·····*···<link·rel="stylesheet"·href="/path/to/default/style.css"··type="text/css">
138 ·····*·(end·code)138 ·····*·(end·code)
139 ·····*/139 ·····*/
140 ····ImgPath:·''140 ····ImgPath:·''
141 };141 };
142 /*·======================================================================142 /*·======================================================================
 143 ····OpenLayers/BaseTypes/Class.js
 144 ···======================================================================·*/
  
 145 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for
 146 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.
 147 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the
 148 ·*·full·text·of·the·license.·*/
  
 149 /**
 150 ·*·@requires·OpenLayers/SingleFile.js
 151 ·*/
  
 152 /**
 153 ·*·Constructor:·OpenLayers.Class
 154 ·*·Base·class·used·to·construct·all·other·classes.·Includes·support·for·
 155 ·*·····multiple·inheritance.·
 156 ·*·····
 157 ·*·This·constructor·is·new·in·OpenLayers·2.5.··At·OpenLayers·3.0,·the·old·
 158 ·*·····syntax·for·creating·classes·and·dealing·with·inheritance·
 159 ·*·····will·be·removed.
 160 ·*·
 161 ·*·To·create·a·new·OpenLayers-style·class,·use·the·following·syntax:
 162 ·*·(code)
 163 ·*·····var·MyClass·=·OpenLayers.Class(prototype);
 164 ·*·(end)
 165 ·*
 166 ·*·To·create·a·new·OpenLayers-style·class·with·multiple·inheritance,·use·the
 167 ·*·····following·syntax:
 168 ·*·(code)
 169 ·*·····var·MyClass·=·OpenLayers.Class(Class1,·Class2,·prototype);
 170 ·*·(end)
 171 ·*·
 172 ·*·Note·that·instanceof·reflection·will·only·reveal·Class1·as·superclass.
 173 ·*
 174 ·*/
 175 OpenLayers.Class·=·function()·{
 176 ····var·len·=·arguments.length;
 177 ····var·P·=·arguments[0];
 178 ····var·F·=·arguments[len·-·1];
  
 179 ····var·C·=·typeof·F.initialize·==·"function"·?
 180 ········F.initialize·:
 181 ········function()·{
 182 ············P.prototype.initialize.apply(this,·arguments);
 183 ········};
  
 184 ····if·(len·>·1)·{
 185 ········var·newArgs·=·[C,·P].concat(
 186 ············Array.prototype.slice.call(arguments).slice(1,·len·-·1),·F);
 187 ········OpenLayers.inherit.apply(null,·newArgs);
 188 ····}·else·{
 189 ········C.prototype·=·F;
 190 ····}
 191 ····return·C;
 192 };
  
 193 /**
 194 ·*·Function:·OpenLayers.inherit
 195 ·*
 196 ·*·Parameters:
 197 ·*·C·-·{Object}·the·class·that·inherits
 198 ·*·P·-·{Object}·the·superclass·to·inherit·from
 199 ·*
 200 ·*·In·addition·to·the·mandatory·C·and·P·parameters,·an·arbitrary·number·of
 201 ·*·objects·can·be·passed,·which·will·extend·C.
 202 ·*/
 203 OpenLayers.inherit·=·function(C,·P)·{
 204 ····var·F·=·function()·{};
 205 ····F.prototype·=·P.prototype;
 206 ····C.prototype·=·new·F;
 207 ····var·i,·l,·o;
 208 ····for·(i·=·2,·l·=·arguments.length;·i·<·l;·i++)·{
 209 ········o·=·arguments[i];
 210 ········if·(typeof·o·===·"function")·{
 211 ············o·=·o.prototype;
 212 ········}
 213 ········OpenLayers.Util.extend(C.prototype,·o);
 214 ····}
 215 };
  
 216 /**
 217 ·*·APIFunction:·extend
 218 ·*·Copy·all·properties·of·a·source·object·to·a·destination·object.··Modifies
 219 ·*·····the·passed·in·destination·object.··Any·properties·on·the·source·object
 220 ·*·····that·are·set·to·undefined·will·not·be·(re)set·on·the·destination·object.
 221 ·*
 222 ·*·Parameters:
 223 ·*·destination·-·{Object}·The·object·that·will·be·modified
 224 ·*·source·-·{Object}·The·object·with·properties·to·be·set·on·the·destination
 225 ·*
 226 ·*·Returns:
 227 ·*·{Object}·The·destination·object.
 228 ·*/
 229 OpenLayers.Util·=·OpenLayers.Util·||·{};
 230 OpenLayers.Util.extend·=·function(destination,·source)·{
 231 ····destination·=·destination·||·{};
 232 ····if·(source)·{
 233 ········for·(var·property·in·source)·{
 234 ············var·value·=·source[property];
 235 ············if·(value·!==·undefined)·{
 236 ················destination[property]·=·value;
 237 ············}
 238 ········}
  
 239 ········/**
 240 ·········*·IE·doesn't·include·the·toString·property·when·iterating·over·an·object's
 241 ·········*·properties·with·the·for(property·in·object)·syntax.··Explicitly·check·if
 242 ·········*·the·source·has·its·own·toString·property.
 243 ·········*/
  
 244 ········/*
 245 ·········*·FF/Windows·<·2.0.0.13·reports·"Illegal·operation·on·WrappedNative
 246 ·········*·prototype·object"·when·calling·hawOwnProperty·if·the·source·object
 247 ·········*·is·an·instance·of·window.Event.
 248 ·········*/
  
 249 ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&
 250 ············source·instanceof·window.Event;
  
 251 ········if·(!sourceIsEvt·&&
Max diff block lines reached; 846239/863728 bytes (97.98%) of diff not shown.
475 KB
./usr/share/javascript/openlayers/OpenLayers.mobile.min.js
475 KB
js-beautify {}
    
Offset 17, 14 lines modifiedOffset 17, 249 lines modified
17 ········}17 ········}
18 ········return·function()·{18 ········return·function()·{
19 ············return·l19 ············return·l
20 ········}20 ········}
21 ····}(),21 ····}(),
22 ····ImgPath:·""22 ····ImgPath:·""
23 };23 };
 24 OpenLayers.Class·=·function()·{
 25 ····var·len·=·arguments.length;
 26 ····var·P·=·arguments[0];
 27 ····var·F·=·arguments[len·-·1];
 28 ····var·C·=·typeof·F.initialize·==·"function"·?·F.initialize·:·function()·{
 29 ········P.prototype.initialize.apply(this,·arguments)
 30 ····};
 31 ····if·(len·>·1)·{
 32 ········var·newArgs·=·[C,·P].concat(Array.prototype.slice.call(arguments).slice(1,·len·-·1),·F);
 33 ········OpenLayers.inherit.apply(null,·newArgs)
 34 ····}·else·{
 35 ········C.prototype·=·F
 36 ····}
 37 ····return·C
 38 };
 39 OpenLayers.inherit·=·function(C,·P)·{
 40 ····var·F·=·function()·{};
 41 ····F.prototype·=·P.prototype;
 42 ····C.prototype·=·new·F;
 43 ····var·i,·l,·o;
 44 ····for·(i·=·2,·l·=·arguments.length;·i·<·l;·i++)·{
 45 ········o·=·arguments[i];
 46 ········if·(typeof·o·===·"function")·{
 47 ············o·=·o.prototype
 48 ········}
 49 ········OpenLayers.Util.extend(C.prototype,·o)
 50 ····}
 51 };
 52 OpenLayers.Util·=·OpenLayers.Util·||·{};
 53 OpenLayers.Util.extend·=·function(destination,·source)·{
 54 ····destination·=·destination·||·{};
 55 ····if·(source)·{
 56 ········for·(var·property·in·source)·{
 57 ············var·value·=·source[property];
 58 ············if·(value·!==·undefined)·{
 59 ················destination[property]·=·value
 60 ············}
 61 ········}
 62 ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&·source·instanceof·window.Event;
 63 ········if·(!sourceIsEvt·&&·source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{
 64 ············destination.toString·=·source.toString
 65 ········}
 66 ····}
 67 ····return·destination
 68 };
 69 OpenLayers.Util·=·OpenLayers.Util·||·{};
 70 OpenLayers.Util.vendorPrefix·=·function()·{
 71 ····"use·strict";
 72 ····var·VENDOR_PREFIXES·=·["",·"O",·"ms",·"Moz",·"Webkit"],
 73 ········divStyle·=·document.createElement("div").style,
 74 ········cssCache·=·{},
 75 ········jsCache·=·{};
  
 76 ····function·domToCss(prefixedDom)·{
 77 ········if·(!prefixedDom)·{
 78 ············return·null
 79 ········}
 80 ········return·prefixedDom.replace(/([A-Z])/g,·function(c)·{
 81 ············return·"-"·+·c.toLowerCase()
 82 ········}).replace(/^ms-/,·"-ms-")
 83 ····}
  
 84 ····function·css(property)·{
 85 ········if·(cssCache[property]·===·undefined)·{
 86 ············var·domProperty·=·property.replace(/(-[\s\S])/g,·function(c)·{
 87 ················return·c.charAt(1).toUpperCase()
 88 ············});
 89 ············var·prefixedDom·=·style(domProperty);
 90 ············cssCache[property]·=·domToCss(prefixedDom)
 91 ········}
 92 ········return·cssCache[property]
 93 ····}
  
 94 ····function·js(obj,·property)·{
 95 ········if·(jsCache[property]·===·undefined)·{
 96 ············var·tmpProp,·i·=·0,
 97 ················l·=·VENDOR_PREFIXES.length,
 98 ················prefix,·isStyleObj·=·typeof·obj.cssText·!==·"undefined";
 99 ············jsCache[property]·=·null;
 100 ············for·(;·i·<·l;·i++)·{
 101 ················prefix·=·VENDOR_PREFIXES[i];
 102 ················if·(prefix)·{
 103 ····················if·(!isStyleObj)·{
 104 ························prefix·=·prefix.toLowerCase()
 105 ····················}
 106 ····················tmpProp·=·prefix·+·property.charAt(0).toUpperCase()·+·property.slice(1)
 107 ················}·else·{
 108 ····················tmpProp·=·property
 109 ················}
 110 ················if·(obj[tmpProp]·!==·undefined)·{
 111 ····················jsCache[property]·=·tmpProp;
 112 ····················break
 113 ················}
 114 ············}
 115 ········}
 116 ········return·jsCache[property]
 117 ····}
  
 118 ····function·style(property)·{
 119 ········return·js(divStyle,·property)
 120 ····}
 121 ····return·{
 122 ········css:·css,
 123 ········js:·js,
 124 ········style:·style,
 125 ········cssCache:·cssCache,
 126 ········jsCache:·jsCache
 127 ····}
 128 }();
 129 OpenLayers.Animation·=·function(window)·{
 130 ····var·requestAnimationFrame·=·OpenLayers.Util.vendorPrefix.js(window,·"requestAnimationFrame");
 131 ····var·isNative·=·!!requestAnimationFrame;
 132 ····var·requestFrame·=·function()·{
 133 ········var·request·=·window[requestAnimationFrame]·||·function(callback,·element)·{
 134 ············window.setTimeout(callback,·16)
 135 ········};
 136 ········return·function(callback,·element)·{
 137 ············request.apply(window,·[callback,·element])
 138 ········}
 139 ····}();
Max diff block lines reached; 478356/485984 bytes (98.43%) of diff not shown.
3.48 MB
./usr/share/javascript/openlayers/OpenLayers.tests.js
3.47 MB
js-beautify {}
    
Offset 33176, 2380 lines modifiedOffset 33176, 14 lines modified
  
33176 /**33176 /**
33177 ·*·Constant:·CORNER_SIZE33177 ·*·Constant:·CORNER_SIZE
33178 ·*·{Integer}·5.·Border·space·for·the·RICO·corners.33178 ·*·{Integer}·5.·Border·space·for·the·RICO·corners.
33179 ·*/33179 ·*/
33180 OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5;33180 OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5;
33181 /*·======================================================================33181 /*·======================================================================
33182 ····OpenLayers/Handler.js 
33183 ···======================================================================·*/ 
  
33184 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for 
33185 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. 
33186 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the 
33187 ·*·full·text·of·the·license.·*/ 
  
33188 /** 
33189 ·*·@requires·OpenLayers/BaseTypes/Class.js 
33190 ·*·@requires·OpenLayers/Events.js 
33191 ·*/ 
  
33192 /** 
33193 ·*·Class:·OpenLayers.Handler 
33194 ·*·Base·class·to·construct·a·higher-level·handler·for·event·sequences.··All 
33195 ·*·····handlers·have·activate·and·deactivate·methods.··In·addition,·they·have 
33196 ·*·····methods·named·like·browser·events.··When·a·handler·is·activated,·any 
33197 ·*·····additional·methods·named·like·a·browser·event·is·registered·as·a 
33198 ·*·····listener·for·the·corresponding·event.··When·a·handler·is·deactivated, 
33199 ·*·····those·same·methods·are·unregistered·as·event·listeners. 
33200 ·* 
33201 ·*·Handlers·also·typically·have·a·callbacks·object·with·keys·named·like 
33202 ·*·····the·abstracted·events·or·event·sequences·that·they·are·in·charge·of 
33203 ·*·····handling.··The·controls·that·wrap·handlers·define·the·methods·that 
33204 ·*·····correspond·to·these·abstract·events·-·so·instead·of·listening·for 
33205 ·*·····individual·browser·events,·they·only·listen·for·the·abstract·events 
33206 ·*·····defined·by·the·handler. 
33207 ·*····· 
33208 ·*·Handlers·are·created·by·controls,·which·ultimately·have·the·responsibility 
33209 ·*·····of·making·changes·to·the·the·state·of·the·application.··Handlers 
33210 ·*·····themselves·may·make·temporary·changes,·but·in·general·are·expected·to 
33211 ·*·····return·the·application·in·the·same·state·that·they·found·it. 
33212 ·*/ 
33213 OpenLayers.Handler·=·OpenLayers.Class({ 
  
33214 ····/** 
33215 ·····*·Property:·id 
33216 ·····*·{String} 
33217 ·····*/ 
33218 ····id:·null, 
  
33219 ····/** 
33220 ·····*·APIProperty:·control 
33221 ·····*·{<OpenLayers.Control>}.·The·control·that·initialized·this·handler.··The 
33222 ·····*·····control·is·assumed·to·have·a·valid·map·property·-·that·map·is·used 
33223 ·····*·····in·the·handler's·own·setMap·method. 
33224 ·····*/ 
33225 ····control:·null, 
  
33226 ····/** 
33227 ·····*·Property:·map 
33228 ·····*·{<OpenLayers.Map>} 
33229 ·····*/ 
33230 ····map:·null, 
  
33231 ····/** 
33232 ·····*·APIProperty:·keyMask 
33233 ·····*·{Integer}·Use·bitwise·operators·and·one·or·more·of·the·OpenLayers.Handler 
33234 ·····*·····constants·to·construct·a·keyMask.··The·keyMask·is·used·by 
33235 ·····*·····<checkModifiers>.··If·the·keyMask·matches·the·combination·of·keys 
33236 ·····*·····down·on·an·event,·checkModifiers·returns·true. 
33237 ·····* 
33238 ·····*·Example: 
33239 ·····*·(code) 
33240 ·····*·····//·handler·only·responds·if·the·Shift·key·is·down 
33241 ·····*·····handler.keyMask·=·OpenLayers.Handler.MOD_SHIFT; 
33242 ·····* 
33243 ·····*·····//·handler·only·responds·if·Ctrl-Shift·is·down 
33244 ·····*·····handler.keyMask·=·OpenLayers.Handler.MOD_SHIFT·| 
33245 ·····*·······················OpenLayers.Handler.MOD_CTRL; 
33246 ·····*·(end) 
33247 ·····*/ 
33248 ····keyMask:·null, 
  
33249 ····/** 
33250 ·····*·Property:·active 
33251 ·····*·{Boolean} 
33252 ·····*/ 
33253 ····active:·false, 
  
33254 ····/** 
33255 ·····*·Property:·evt 
33256 ·····*·{Event}·This·property·references·the·last·event·handled·by·the·handler. 
33257 ·····*·····Note·that·this·property·is·not·part·of·the·stable·API.··Use·of·the 
33258 ·····*·····evt·property·should·be·restricted·to·controls·in·the·library 
33259 ·····*·····or·other·applications·that·are·willing·to·update·with·changes·to 
33260 ·····*·····the·OpenLayers·code. 
33261 ·····*/ 
33262 ····evt:·null, 
  
33263 ····/** 
33264 ·····*·Property:·touch 
33265 ·····*·{Boolean}·Indicates·the·support·of·touch·events.·When·touch·events·are· 
33266 ·····*·····started·touch·will·be·true·and·all·mouse·related·listeners·will·do· 
33267 ·····*·····nothing. 
33268 ·····*/ 
33269 ····touch:·false, 
  
33270 ····/** 
33271 ·····*·Constructor:·OpenLayers.Handler 
33272 ·····*·Construct·a·handler. 
33273 ·····* 
33274 ·····*·Parameters: 
33275 ·····*·control·-·{<OpenLayers.Control>}·The·control·that·initialized·this 
33276 ·····*·····handler.··The·control·is·assumed·to·have·a·valid·map·property;·that 
33277 ·····*·····map·is·used·in·the·handler's·own·setMap·method.··If·a·map·property 
33278 ·····*·····is·present·in·the·options·argument·it·will·be·used·instead. 
33279 ·····*·callbacks·-·{Object}·An·object·whose·properties·correspond·to·abstracted 
33280 ·····*·····events·or·sequences·of·browser·events.··The·values·for·these 
33281 ·····*·····properties·are·functions·defined·by·the·control·that·get·called·by 
33282 ·····*·····the·handler. 
33283 ·····*·options·-·{Object}·An·optional·object·whose·properties·will·be·set·on 
33284 ·····*·····the·handler. 
33285 ·····*/ 
33286 ····initialize:·function(control,·callbacks,·options)·{ 
33287 ········OpenLayers.Util.extend(this,·options); 
33288 ········this.control·=·control; 
33289 ········this.callbacks·=·callbacks; 
  
Max diff block lines reached; 3570736/3643762 bytes (98.00%) of diff not shown.
1.43 MB
./usr/share/javascript/openlayers/OpenLayers.tests.min.js
1.43 MB
js-beautify {}
    
Offset 13318, 721 lines modifiedOffset 13318, 14 lines modified
13318 ········var·corner·=·OpenLayers.Bounds.oppositeQuadrant(this.relativePosition);13318 ········var·corner·=·OpenLayers.Bounds.oppositeQuadrant(this.relativePosition);
13319 ········OpenLayers.Util.removeItem(corners,·corner);13319 ········OpenLayers.Util.removeItem(corners,·corner);
13320 ········return·corners.join("·")13320 ········return·corners.join("·")
13321 ····},13321 ····},
13322 ····CLASS_NAME:·"OpenLayers.Popup.AnchoredBubble"13322 ····CLASS_NAME:·"OpenLayers.Popup.AnchoredBubble"
13323 });13323 });
13324 OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5;13324 OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5;
13325 OpenLayers.Handler·=·OpenLayers.Class({ 
13326 ····id:·null, 
13327 ····control:·null, 
13328 ····map:·null, 
13329 ····keyMask:·null, 
13330 ····active:·false, 
13331 ····evt:·null, 
13332 ····touch:·false, 
13333 ····initialize:·function(control,·callbacks,·options)·{ 
13334 ········OpenLayers.Util.extend(this,·options); 
13335 ········this.control·=·control; 
13336 ········this.callbacks·=·callbacks; 
13337 ········var·map·=·this.map·||·control.map; 
13338 ········if·(map)·{ 
13339 ············this.setMap(map) 
13340 ········} 
13341 ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_") 
13342 ····}, 
13343 ····setMap:·function(map)·{ 
13344 ········this.map·=·map 
13345 ····}, 
13346 ····checkModifiers:·function(evt)·{ 
13347 ········if·(this.keyMask·==·null)·{ 
13348 ············return·true 
13349 ········} 
13350 ········var·keyModifiers·=·(evt.shiftKey·?·OpenLayers.Handler.MOD_SHIFT·:·0)·|·(evt.ctrlKey·?·OpenLayers.Handler.MOD_CTRL·:·0)·|·(evt.altKey·?·OpenLayers.Handler.MOD_ALT·:·0)·|·(evt.metaKey·?·OpenLayers.Handler.MOD_META·:·0); 
13351 ········return·keyModifiers·==·this.keyMask 
13352 ····}, 
13353 ····activate:·function()·{ 
13354 ········if·(this.active)·{ 
13355 ············return·false 
13356 ········} 
13357 ········var·events·=·OpenLayers.Events.prototype.BROWSER_EVENTS; 
13358 ········for·(var·i·=·0,·len·=·events.length;·i·<·len;·i++)·{ 
13359 ············if·(this[events[i]])·{ 
13360 ················this.register(events[i],·this[events[i]]) 
13361 ············} 
13362 ········} 
13363 ········this.active·=·true; 
13364 ········return·true 
13365 ····}, 
13366 ····deactivate:·function()·{ 
13367 ········if·(!this.active)·{ 
13368 ············return·false 
13369 ········} 
13370 ········var·events·=·OpenLayers.Events.prototype.BROWSER_EVENTS; 
13371 ········for·(var·i·=·0,·len·=·events.length;·i·<·len;·i++)·{ 
13372 ············if·(this[events[i]])·{ 
13373 ················this.unregister(events[i],·this[events[i]]) 
13374 ············} 
13375 ········} 
13376 ········this.touch·=·false; 
13377 ········this.active·=·false; 
13378 ········return·true 
13379 ····}, 
13380 ····startTouch:·function()·{ 
13381 ········if·(!this.touch)·{ 
13382 ············this.touch·=·true; 
13383 ············var·events·=·["mousedown",·"mouseup",·"mousemove",·"click",·"dblclick",·"mouseout"]; 
13384 ············for·(var·i·=·0,·len·=·events.length;·i·<·len;·i++)·{ 
13385 ················if·(this[events[i]])·{ 
13386 ····················this.unregister(events[i],·this[events[i]]) 
13387 ················} 
13388 ············} 
13389 ········} 
13390 ····}, 
13391 ····callback:·function(name,·args)·{ 
13392 ········if·(name·&&·this.callbacks[name])·{ 
13393 ············this.callbacks[name].apply(this.control,·args) 
13394 ········} 
13395 ····}, 
13396 ····register:·function(name,·method)·{ 
13397 ········this.map.events.registerPriority(name,·this,·method); 
13398 ········this.map.events.registerPriority(name,·this,·this.setEvent) 
13399 ····}, 
13400 ····unregister:·function(name,·method)·{ 
13401 ········this.map.events.unregister(name,·this,·method); 
13402 ········this.map.events.unregister(name,·this,·this.setEvent) 
13403 ····}, 
13404 ····setEvent:·function(evt)·{ 
13405 ········this.evt·=·evt; 
13406 ········return·true 
13407 ····}, 
13408 ····destroy:·function()·{ 
13409 ········this.deactivate(); 
13410 ········this.control·=·this.map·=·null 
13411 ····}, 
13412 ····CLASS_NAME:·"OpenLayers.Handler" 
13413 }); 
13414 OpenLayers.Handler.MOD_NONE·=·0; 
13415 OpenLayers.Handler.MOD_SHIFT·=·1; 
13416 OpenLayers.Handler.MOD_CTRL·=·2; 
13417 OpenLayers.Handler.MOD_ALT·=·4; 
13418 OpenLayers.Handler.MOD_META·=·8; 
13419 OpenLayers.Strategy·=·OpenLayers.Class({ 
13420 ····layer:·null, 
13421 ····options:·null, 
13422 ····active:·null, 
13423 ····autoActivate:·true, 
13424 ····autoDestroy:·true, 
13425 ····initialize:·function(options)·{ 
13426 ········OpenLayers.Util.extend(this,·options); 
13427 ········this.options·=·options; 
13428 ········this.active·=·false 
13429 ····}, 
13430 ····destroy:·function()·{ 
13431 ········this.deactivate(); 
13432 ········this.layer·=·null; 
13433 ········this.options·=·null 
13434 ····}, 
13435 ····setLayer:·function(layer)·{ 
13436 ········this.layer·=·layer 
13437 ····}, 
13438 ····activate:·function()·{ 
13439 ········if·(!this.active)·{ 
13440 ············this.active·=·true; 
13441 ············return·true 
13442 ········} 
13443 ········return·false 
13444 ····}, 
Max diff block lines reached; 1478737/1502841 bytes (98.40%) of diff not shown.