14.3 MB
/srv/reproducible-results/rbuild-debian/r-b-build.GFeAtFh3/b1/openlayers_2.13.1+ds2-10_i386.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.GFeAtFh3/b2/openlayers_2.13.1+ds2-10_i386.changes
230 B
Files
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
  
1 ·e10e99197b80e8001ad4aeb43e1d6b32·721476·javascript·optional·libjs-openlayers_2.13.1+ds2-10_all.deb1 ·cb91a6b8575e4068f69c2c211e993efc·724396·javascript·optional·libjs-openlayers_2.13.1+ds2-10_all.deb
14.3 MB
libjs-openlayers_2.13.1+ds2-10_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2023-01-14·13:27:41.000000·debian-binary1 -rw-r--r--···0········0········0········4·2023-01-14·13:27:41.000000·debian-binary
2 -rw-r--r--···0········0········0·····3680·2023-01-14·13:27:41.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3676·2023-01-14·13:27:41.000000·control.tar.xz
3 -rw-r--r--···0········0········0···717604·2023-01-14·13:27:41.000000·data.tar.xz3 -rw-r--r--···0········0········0···720528·2023-01-14·13:27:41.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
14.3 MB
data.tar.xz
14.3 MB
data.tar
3.78 MB
./usr/share/javascript/openlayers/OpenLayers.js
3.78 MB
js-beautify {}
    
Offset 52, 37 lines modifiedOffset 52, 14 lines modified
52 ·*·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS52 ·*·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS
53 ·*·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN53 ·*·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN
54 ·*·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE)54 ·*·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE)
55 ·*·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE·55 ·*·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE·
56 ·*·POSSIBILITY·OF·SUCH·DAMAGE.56 ·*·POSSIBILITY·OF·SUCH·DAMAGE.
57 ·*/57 ·*/
58 /*·======================================================================58 /*·======================================================================
59 ····Rico/license.js 
60 ···======================================================================·*/ 
  
61 /** 
62 ·*·@license·Apache·2· 
63 ·*·· 
64 ·*·Contains·portions·of·Rico·<http://openrico.org/> 
65 ·*· 
66 ·*·Copyright·2005·Sabre·Airline·Solutions·· 
67 ·* 
68 ·*·Licensed·under·the·Apache·License,·Version·2.0·(the·"License");·you 
69 ·*·may·not·use·this·file·except·in·compliance·with·the·License.·You 
70 ·*·may·obtain·a·copy·of·the·License·at 
71 ·* 
72 ·*·····http://www.apache.org/licenses/LICENSE-2.0·· 
73 ·* 
74 ·*·Unless·required·by·applicable·law·or·agreed·to·in·writing,·software 
75 ·*·distributed·under·the·License·is·distributed·on·an·"AS·IS"·BASIS, 
76 ·*·WITHOUT·WARRANTIES·OR·CONDITIONS·OF·ANY·KIND,·either·express·or 
77 ·*·implied.·See·the·License·for·the·specific·language·governing 
78 ·*·permissions·and·limitations·under·the·License.· 
79 ·*/ 
80 /*·====================================================================== 
81 ····OpenLayers/SingleFile.js59 ····OpenLayers/SingleFile.js
82 ···======================================================================·*/60 ···======================================================================·*/
  
83 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for61 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for
84 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.62 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.
85 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the63 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the
86 ·*·full·text·of·the·license.·*/64 ·*·full·text·of·the·license.·*/
Offset 286, 268 lines modifiedOffset 263, 14 lines modified
286 ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{263 ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{
287 ············destination.toString·=·source.toString;264 ············destination.toString·=·source.toString;
288 ········}265 ········}
289 ····}266 ····}
290 ····return·destination;267 ····return·destination;
291 };268 };
292 /*·======================================================================269 /*·======================================================================
293 ····OpenLayers/Console.js 
294 ···======================================================================·*/ 
  
295 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for 
296 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. 
297 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the 
298 ·*·full·text·of·the·license.·*/ 
  
299 /** 
300 ·*·@requires·OpenLayers/BaseTypes/Class.js 
301 ·*/ 
  
302 /** 
303 ·*·Namespace:·OpenLayers.Console 
304 ·*·The·OpenLayers.Console·namespace·is·used·for·debugging·and·error·logging. 
305 ·*·If·the·Firebug·Lite·(../Firebug/firebug.js)·is·included·before·this·script, 
306 ·*·calls·to·OpenLayers.Console·methods·will·get·redirected·to·window.console. 
307 ·*·This·makes·use·of·the·Firebug·extension·where·available·and·allows·for 
308 ·*·cross-browser·debugging·Firebug·style. 
309 ·* 
310 ·*·Note: 
311 ·*·Note·that·behavior·will·differ·with·the·Firebug·extention·and·Firebug·Lite. 
312 ·*·Most·notably,·the·Firebug·Lite·console·does·not·currently·allow·for 
313 ·*·hyperlinks·to·code·or·for·clicking·on·object·to·explore·their·properties. 
314 ·*· 
315 ·*/ 
316 OpenLayers.Console·=·{ 
317 ····/** 
318 ·····*·Create·empty·functions·for·all·console·methods.··The·real·value·of·these 
319 ·····*·properties·will·be·set·if·Firebug·Lite·(../Firebug/firebug.js·script)·is 
320 ·····*·included.··We·explicitly·require·the·Firebug·Lite·script·to·trigger 
321 ·····*·functionality·of·the·OpenLayers.Console·methods. 
322 ·····*/ 
  
323 ····/** 
324 ·····*·APIFunction:·log 
325 ·····*·Log·an·object·in·the·console.··The·Firebug·Lite·console·logs·string 
326 ·····*·representation·of·objects.··Given·multiple·arguments,·they·will 
327 ·····*·be·cast·to·strings·and·logged·with·a·space·delimiter.··If·the·first 
328 ·····*·argument·is·a·string·with·printf-like·formatting,·subsequent·arguments 
329 ·····*·will·be·used·in·string·substitution.··Any·additional·arguments·(beyond 
330 ·····*·the·number·substituted·in·a·format·string)·will·be·appended·in·a·space- 
331 ·····*·delimited·line. 
332 ·····*· 
333 ·····*·Parameters: 
334 ·····*·object·-·{Object} 
335 ·····*/ 
336 ····log:·function()·{}, 
  
337 ····/** 
338 ·····*·APIFunction:·debug 
339 ·····*·Writes·a·message·to·the·console,·including·a·hyperlink·to·the·line 
340 ·····*·where·it·was·called. 
341 ·····* 
342 ·····*·May·be·called·with·multiple·arguments·as·with·OpenLayers.Console.log(). 
343 ·····*· 
344 ·····*·Parameters: 
345 ·····*·object·-·{Object} 
346 ·····*/ 
347 ····debug:·function()·{}, 
  
348 ····/** 
349 ·····*·APIFunction:·info 
350 ·····*·Writes·a·message·to·the·console·with·the·visual·"info"·icon·and·color 
351 ·····*·coding·and·a·hyperlink·to·the·line·where·it·was·called. 
352 ·····* 
353 ·····*·May·be·called·with·multiple·arguments·as·with·OpenLayers.Console.log(). 
354 ·····*· 
355 ·····*·Parameters: 
356 ·····*·object·-·{Object} 
357 ·····*/ 
358 ····info:·function()·{}, 
  
359 ····/** 
360 ·····*·APIFunction:·warn 
361 ·····*·Writes·a·message·to·the·console·with·the·visual·"warning"·icon·and 
362 ·····*·color·coding·and·a·hyperlink·to·the·line·where·it·was·called. 
363 ·····* 
364 ·····*·May·be·called·with·multiple·arguments·as·with·OpenLayers.Console.log(). 
365 ·····*· 
366 ·····*·Parameters: 
367 ·····*·object·-·{Object} 
Max diff block lines reached; 3952907/3963220 bytes (99.74%) of diff not shown.
1.11 MB
./usr/share/javascript/openlayers/OpenLayers.light.js
1.11 MB
js-beautify {}
    
Offset 5950, 252 lines modifiedOffset 5950, 177 lines modified
5950 ·*·{Array}·prefixes·of·the·sld·symbolizers.·These·are·the5950 ·*·{Array}·prefixes·of·the·sld·symbolizers.·These·are·the
5951 ·*·same·as·the·main·geometry·types5951 ·*·same·as·the·main·geometry·types
5952 ·*/5952 ·*/
5953 OpenLayers.Style.SYMBOLIZER_PREFIXES·=·['Point',·'Line',·'Polygon',·'Text',5953 OpenLayers.Style.SYMBOLIZER_PREFIXES·=·['Point',·'Line',·'Polygon',·'Text',
5954 ····'Raster'5954 ····'Raster'
5955 ];5955 ];
5956 /*·======================================================================5956 /*·======================================================================
5957 ····OpenLayers/Rule.js5957 ····OpenLayers/StyleMap.js
5958 ···======================================================================·*/5958 ···======================================================================·*/
  
5959 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for5959 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for
5960 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.5960 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.
5961 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the5961 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the
5962 ·*·full·text·of·the·license.·*/5962 ·*·full·text·of·the·license.·*/
  
  
5963 /**5963 /**
5964 ·*·@requires·OpenLayers/BaseTypes/Class.js5964 ·*·@requires·OpenLayers/BaseTypes/Class.js
5965 ·*·@requires·OpenLayers/Util.js 
5966 ·*·@requires·OpenLayers/Style.js5965 ·*·@requires·OpenLayers/Style.js
 5966 ·*·@requires·OpenLayers/Feature/Vector.js
5967 ·*/5967 ·*/
  
5968 /**5968 /**
5969 ·*·Class:·OpenLayers.Rule5969 ·*·Class:·OpenLayers.StyleMap
5970 ·*·This·class·represents·an·SLD·Rule,·as·being·used·for·rule-based·SLD·styling. 
5971 ·*/5970 ·*/
5972 OpenLayers.Rule·=·OpenLayers.Class({5971 OpenLayers.StyleMap·=·OpenLayers.Class({
  
5973 ····/** 
5974 ·····*·Property:·id 
5975 ·····*·{String}·A·unique·id·for·this·session. 
5976 ·····*/ 
5977 ····id:·null, 
  
5978 ····/** 
5979 ·····*·APIProperty:·name 
5980 ·····*·{String}·name·of·this·rule 
5981 ·····*/ 
5982 ····name:·null, 
  
5983 ····/** 
5984 ·····*·Property:·title 
5985 ·····*·{String}·Title·of·this·rule·(set·if·included·in·SLD) 
5986 ·····*/ 
5987 ····title:·null, 
  
5988 ····/** 
5989 ·····*·Property:·description 
5990 ·····*·{String}·Description·of·this·rule·(set·if·abstract·is·included·in·SLD) 
5991 ·····*/ 
5992 ····description:·null, 
  
5993 ····/** 
5994 ·····*·Property:·context 
5995 ·····*·{Object}·An·optional·object·with·properties·that·the·rule·should·be 
5996 ·····*·evaluated·against.·If·no·context·is·specified,·feature.attributes·will 
5997 ·····*·be·used. 
5998 ·····*/ 
5999 ····context:·null, 
  
6000 ····/** 
6001 ·····*·Property:·filter 
6002 ·····*·{<OpenLayers.Filter>}·Optional·filter·for·the·rule. 
6003 ·····*/ 
6004 ····filter:·null, 
  
6005 ····/** 
6006 ·····*·Property:·elseFilter 
6007 ·····*·{Boolean}·Determines·whether·this·rule·is·only·to·be·applied·only·if 
6008 ·····*·no·other·rules·match·(ElseFilter·according·to·the·SLD·specification).· 
6009 ·····*·Default·is·false.··For·instances·of·OpenLayers.Rule,·if·elseFilter·is 
6010 ·····*·false,·the·rule·will·always·apply.··For·subclasses,·the·else·property·is· 
6011 ·····*·ignored. 
6012 ·····*/ 
6013 ····elseFilter:·false, 
  
6014 ····/** 
6015 ·····*·Property:·symbolizer 
6016 ·····*·{Object}·Symbolizer·or·hash·of·symbolizers·for·this·rule.·If·hash·of 
6017 ·····*·symbolizers,·keys·are·one·or·more·of·["Point",·"Line",·"Polygon"].·The 
6018 ·····*·latter·if·useful·if·it·is·required·to·style·e.g.·vertices·of·a·line 
6019 ·····*·with·a·point·symbolizer.·Note,·however,·that·this·is·not·implemented 
6020 ·····*·yet·in·OpenLayers,·but·it·is·the·way·how·symbolizers·are·defined·in 
6021 ·····*·SLD. 
6022 ·····*/ 
6023 ····symbolizer:·null, 
  
6024 ····/**5972 ····/**
6025 ·····*·Property:·symbolizers5973 ·····*·Property:·styles
 5974 ·····*·{Object}·Hash·of·{<OpenLayers.Style>},·keyed·by·names·of·well·known
 5975 ·····*·rendering·intents·(e.g.·"default",·"temporary",·"select",·"delete").
6026 ·····*·{Array}·Collection·of·symbolizers·associated·with·this·rule.··If· 
6027 ·····*·····provided·at·construction,·the·symbolizers·array·has·precedence 
6028 ·····*·····over·the·deprecated·symbolizer·property.··Note·that·multiple· 
6029 ·····*·····symbolizers·are·not·currently·supported·by·the·vector·renderers. 
6030 ·····*·····Rules·with·multiple·symbolizers·are·currently·only·useful·for 
6031 ·····*·····maintaining·elements·in·an·SLD·document. 
6032 ·····*/5976 ·····*/
6033 ····symbolizers:·null,5977 ····styles:·null,
  
6034 ····/**5978 ····/**
6035 ·····*·APIProperty:·minScaleDenominator 
6036 ·····*·{Number}·or·{String}·minimum·scale·at·which·to·draw·the·feature. 
6037 ·····*·In·the·case·of·a·String,·this·can·be·a·combination·of·text·and 
6038 ·····*·propertyNames·in·the·form·"literal·${propertyName}"5979 ·····*·Property:·extendDefault
 5980 ·····*·{Boolean}·if·true,·every·render·intent·will·extend·the·symbolizers
 5981 ·····*·specified·for·the·"default"·intent·at·rendering·time.·Otherwise,·every
 5982 ·····*·rendering·intent·will·be·treated·as·a·completely·independent·style.
6039 ·····*/5983 ·····*/
6040 ····minScaleDenominator:·null,5984 ····extendDefault:·true,
  
6041 ····/**5985 ····/**
6042 ·····*·APIProperty:·maxScaleDenominator 
6043 ·····*·{Number}·or·{String}·maximum·scale·at·which·to·draw·the·feature. 
6044 ·····*·In·the·case·of·a·String,·this·can·be·a·combination·of·text·and 
6045 ·····*·propertyNames·in·the·form·"literal·${propertyName}" 
6046 ·····*/ 
6047 ····maxScaleDenominator:·null, 
  
6048 ····/**· 
6049 ·····*·Constructor:·OpenLayers.Rule5986 ·····*·Constructor:·OpenLayers.StyleMap
6050 ·····*·Creates·a·Rule. 
6051 ·····* 
6052 ·····*·Parameters: 
6053 ·····*·options·-·{Object}·An·optional·object·with·properties·to·set·on·the 
6054 ·····*···········rule 
Max diff block lines reached; 1156645/1161273 bytes (99.60%) of diff not shown.
377 KB
./usr/share/javascript/openlayers/OpenLayers.light.min.js
377 KB
js-beautify {}
    
Offset 2189, 98 lines modifiedOffset 2189, 82 lines modified
2189 ····if·(typeof·value·==·"string"·&&·value.indexOf("${")·!=·-1)·{2189 ····if·(typeof·value·==·"string"·&&·value.indexOf("${")·!=·-1)·{
2190 ········value·=·OpenLayers.String.format(value,·context,·[feature,·property]);2190 ········value·=·OpenLayers.String.format(value,·context,·[feature,·property]);
2191 ········value·=·isNaN(value)·||·!value·?·value·:·parseFloat(value)2191 ········value·=·isNaN(value)·||·!value·?·value·:·parseFloat(value)
2192 ····}2192 ····}
2193 ····return·value2193 ····return·value
2194 };2194 };
2195 OpenLayers.Style.SYMBOLIZER_PREFIXES·=·["Point",·"Line",·"Polygon",·"Text",·"Raster"];2195 OpenLayers.Style.SYMBOLIZER_PREFIXES·=·["Point",·"Line",·"Polygon",·"Text",·"Raster"];
2196 OpenLayers.Rule·=·OpenLayers.Class({2196 OpenLayers.StyleMap·=·OpenLayers.Class({
2197 ····id:·null, 
2198 ····name:·null, 
2199 ····title:·null,2197 ····styles:·null,
 2198 ····extendDefault:·true,
2200 ····description:·null, 
2201 ····context:·null, 
2202 ····filter:·null, 
2203 ····elseFilter:·false, 
2204 ····symbolizer:·null, 
2205 ····symbolizers:·null, 
2206 ····minScaleDenominator:·null, 
2207 ····maxScaleDenominator:·null, 
2208 ····initialize:·function(options)·{2199 ····initialize:·function(style,·options)·{
2209 ········this.symbolizer·=·{};2200 ········this.styles·=·{
2210 ········OpenLayers.Util.extend(this,·options); 
2211 ········if·(this.symbolizers)·{ 
2212 ············delete·this.symbolizer2201 ············default:·new·OpenLayers.Style(OpenLayers.Feature.Vector.style["default"]),
 2202 ············select:·new·OpenLayers.Style(OpenLayers.Feature.Vector.style["select"]),
 2203 ············temporary:·new·OpenLayers.Style(OpenLayers.Feature.Vector.style["temporary"]),
 2204 ············delete:·new·OpenLayers.Style(OpenLayers.Feature.Vector.style["delete"])
 2205 ········};
 2206 ········if·(style·instanceof·OpenLayers.Style)·{
 2207 ············this.styles["default"]·=·style;
 2208 ············this.styles["select"]·=·style;
 2209 ············this.styles["temporary"]·=·style;
 2210 ············this.styles["delete"]·=·style
 2211 ········}·else·if·(typeof·style·==·"object")·{
 2212 ············for·(var·key·in·style)·{
 2213 ················if·(style[key]·instanceof·OpenLayers.Style)·{
 2214 ····················this.styles[key]·=·style[key]
 2215 ················}·else·if·(typeof·style[key]·==·"object")·{
 2216 ····················this.styles[key]·=·new·OpenLayers.Style(style[key])
 2217 ················}·else·{
 2218 ····················this.styles["default"]·=·new·OpenLayers.Style(style);
 2219 ····················this.styles["select"]·=·new·OpenLayers.Style(style);
 2220 ····················this.styles["temporary"]·=·new·OpenLayers.Style(style);
 2221 ····················this.styles["delete"]·=·new·OpenLayers.Style(style);
 2222 ····················break
 2223 ················}
 2224 ············}
2213 ········}2225 ········}
2214 ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_")2226 ········OpenLayers.Util.extend(this,·options)
2215 ····},2227 ····},
2216 ····destroy:·function()·{2228 ····destroy:·function()·{
2217 ········for·(var·i·in·this.symbolizer)·{2229 ········for·(var·key·in·this.styles)·{
2218 ············this.symbolizer[i]·=·null2230 ············this.styles[key].destroy()
2219 ········}2231 ········}
2220 ········this.symbolizer·=·null;2232 ········this.styles·=·null
2221 ········delete·this.symbolizers 
2222 ····},2233 ····},
 2234 ····createSymbolizer:·function(feature,·intent)·{
 2235 ········if·(!feature)·{
 2236 ············feature·=·new·OpenLayers.Feature.Vector
2223 ····evaluate:·function(feature)·{ 
2224 ········var·context·=·this.getContext(feature); 
2225 ········var·applies·=·true; 
2226 ········if·(this.minScaleDenominator·||·this.maxScaleDenominator)·{ 
2227 ············var·scale·=·feature.layer.map.getScale() 
2228 ········} 
2229 ········if·(this.minScaleDenominator)·{ 
2230 ············applies·=·scale·>=·OpenLayers.Style.createLiteral(this.minScaleDenominator,·context) 
2231 ········} 
2232 ········if·(applies·&&·this.maxScaleDenominator)·{ 
2233 ············applies·=·scale·<·OpenLayers.Style.createLiteral(this.maxScaleDenominator,·context) 
2234 ········} 
2235 ········if·(applies·&&·this.filter)·{ 
2236 ············if·(this.filter.CLASS_NAME·==·"OpenLayers.Filter.FeatureId")·{ 
2237 ················applies·=·this.filter.evaluate(feature) 
2238 ············}·else·{ 
2239 ················applies·=·this.filter.evaluate(context) 
2240 ············} 
2241 ········}2237 ········}
 2238 ········if·(!this.styles[intent])·{
 2239 ············intent·=·"default"
2242 ········return·applies 
2243 ····}, 
2244 ····getContext:·function(feature)·{ 
2245 ········var·context·=·this.context; 
2246 ········if·(!context)·{ 
2247 ············context·=·feature.attributes·||·feature.data 
2248 ········}2240 ········}
2249 ········if·(typeof·this.context·==·"function")·{ 
2250 ············context·=·this.context(feature)2241 ········feature.renderIntent·=·intent;
 2242 ········var·defaultSymbolizer·=·{};
 2243 ········if·(this.extendDefault·&&·intent·!=·"default")·{
 2244 ············defaultSymbolizer·=·this.styles["default"].createSymbolizer(feature)
2251 ········}2245 ········}
2252 ········return·context2246 ········return·OpenLayers.Util.extend(defaultSymbolizer,·this.styles[intent].createSymbolizer(feature))
2253 ····},2247 ····},
 2248 ····addUniqueValueRules:·function(renderIntent,·property,·symbolizers,·context)·{
 2249 ········var·rules·=·[];
2254 ····clone:·function()·{ 
2255 ········var·options·=·OpenLayers.Util.extend({},·this); 
2256 ········if·(this.symbolizers)·{ 
2257 ············var·len·=·this.symbolizers.length; 
2258 ············options.symbolizers·=·new·Array(len); 
2259 ············for·(var·i·=·0;·i·<·len;·++i)·{ 
2260 ················options.symbolizers[i]·=·this.symbolizers[i].clone() 
2261 ············} 
2262 ········}·else·{ 
2263 ············options.symbolizer·=·{}; 
2264 ············var·value,·type; 
2265 ············for·(var·key·in·this.symbolizer)·{2250 ········for·(var·value·in·symbolizers)·{
2266 ················value·=·this.symbolizer[key]; 
2267 ················type·=·typeof·value; 
2268 ················if·(type·===·"object")·{ 
2269 ····················options.symbolizer[key]·=·OpenLayers.Util.extend({},·value) 
2270 ················}·else·if·(type·===·"string")·{ 
2271 ····················options.symbolizer[key]·=·value2251 ············rules.push(new·OpenLayers.Rule({
 2252 ················symbolizer:·symbolizers[value],
 2253 ················context:·context,
 2254 ················filter:·new·OpenLayers.Filter.Comparison({
 2255 ····················type:·OpenLayers.Filter.Comparison.EQUAL_TO,
 2256 ····················property:·property,
 2257 ····················value:·value
2272 ················}2258 ················})
2273 ············}2259 ············}))
2274 ········}2260 ········}
 2261 ········this.styles[renderIntent].addRules(rules)
Max diff block lines reached; 380235/386264 bytes (98.44%) of diff not shown.
1.84 MB
./usr/share/javascript/openlayers/OpenLayers.min.js
1.84 MB
js-beautify {}
    
Offset 62, 47 lines modifiedOffset 62, 14 lines modified
62 ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&·source·instanceof·window.Event;62 ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&·source·instanceof·window.Event;
63 ········if·(!sourceIsEvt·&&·source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{63 ········if·(!sourceIsEvt·&&·source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{
64 ············destination.toString·=·source.toString64 ············destination.toString·=·source.toString
65 ········}65 ········}
66 ····}66 ····}
67 ····return·destination67 ····return·destination
68 };68 };
69 OpenLayers.Console·=·{ 
70 ····log:·function()·{}, 
71 ····debug:·function()·{}, 
72 ····info:·function()·{}, 
73 ····warn:·function()·{}, 
74 ····error:·function()·{}, 
75 ····userError:·function(error)·{ 
76 ········alert(error) 
77 ····}, 
78 ····assert:·function()·{}, 
79 ····dir:·function()·{}, 
80 ····dirxml:·function()·{}, 
81 ····trace:·function()·{}, 
82 ····group:·function()·{}, 
83 ····groupEnd:·function()·{}, 
84 ····time:·function()·{}, 
85 ····timeEnd:·function()·{}, 
86 ····profile:·function()·{}, 
87 ····profileEnd:·function()·{}, 
88 ····count:·function()·{}, 
89 ····CLASS_NAME:·"OpenLayers.Console" 
90 }; 
91 (function()·{ 
92 ····var·scripts·=·document.getElementsByTagName("script"); 
93 ····for·(var·i·=·0,·len·=·scripts.length;·i·<·len;·++i)·{ 
94 ········if·(scripts[i].src.indexOf("firebug.js")·!=·-1)·{ 
95 ············if·(console)·{ 
96 ················OpenLayers.Util.extend(OpenLayers.Console,·console); 
97 ················break 
98 ············} 
99 ········} 
100 ····} 
101 })(); 
102 OpenLayers.String·=·{69 OpenLayers.String·=·{
103 ····startsWith:·function(str,·sub)·{70 ····startsWith:·function(str,·sub)·{
104 ········return·str.indexOf(sub)·==·071 ········return·str.indexOf(sub)·==·0
105 ····},72 ····},
106 ····contains:·function(str,·sub)·{73 ····contains:·function(str,·sub)·{
107 ········return·str.indexOf(sub)·!=·-174 ········return·str.indexOf(sub)·!=·-1
108 ····},75 ····},
Offset 561, 14 lines modifiedOffset 528, 79 lines modified
561 };528 };
562 OpenLayers.Bounds.oppositeQuadrant·=·function(quadrant)·{529 OpenLayers.Bounds.oppositeQuadrant·=·function(quadrant)·{
563 ····var·opp·=·"";530 ····var·opp·=·"";
564 ····opp·+=·quadrant.charAt(0)·==·"t"·?·"b"·:·"t";531 ····opp·+=·quadrant.charAt(0)·==·"t"·?·"b"·:·"t";
565 ····opp·+=·quadrant.charAt(1)·==·"l"·?·"r"·:·"l";532 ····opp·+=·quadrant.charAt(1)·==·"l"·?·"r"·:·"l";
566 ····return·opp533 ····return·opp
567 };534 };
 535 OpenLayers.Element·=·{
 536 ····visible:·function(element)·{
 537 ········return·OpenLayers.Util.getElement(element).style.display·!=·"none"
 538 ····},
 539 ····toggle:·function()·{
 540 ········for·(var·i·=·0,·len·=·arguments.length;·i·<·len;·i++)·{
 541 ············var·element·=·OpenLayers.Util.getElement(arguments[i]);
 542 ············var·display·=·OpenLayers.Element.visible(element)·?·"none"·:·"";
 543 ············element.style.display·=·display
 544 ········}
 545 ····},
 546 ····remove:·function(element)·{
 547 ········element·=·OpenLayers.Util.getElement(element);
 548 ········element.parentNode.removeChild(element)
 549 ····},
 550 ····getHeight:·function(element)·{
 551 ········element·=·OpenLayers.Util.getElement(element);
 552 ········return·element.offsetHeight
 553 ····},
 554 ····hasClass:·function(element,·name)·{
 555 ········var·names·=·element.className;
 556 ········return·!!names·&&·new·RegExp("(^|\\s)"·+·name·+·"(\\s|$)").test(names)
 557 ····},
 558 ····addClass:·function(element,·name)·{
 559 ········if·(!OpenLayers.Element.hasClass(element,·name))·{
 560 ············element.className·+=·(element.className·?·"·"·:·"")·+·name
 561 ········}
 562 ········return·element
 563 ····},
 564 ····removeClass:·function(element,·name)·{
 565 ········var·names·=·element.className;
 566 ········if·(names)·{
 567 ············element.className·=·OpenLayers.String.trim(names.replace(new·RegExp("(^|\\s+)"·+·name·+·"(\\s+|$)"),·"·"))
 568 ········}
 569 ········return·element
 570 ····},
 571 ····toggleClass:·function(element,·name)·{
 572 ········if·(OpenLayers.Element.hasClass(element,·name))·{
 573 ············OpenLayers.Element.removeClass(element,·name)
 574 ········}·else·{
 575 ············OpenLayers.Element.addClass(element,·name)
 576 ········}
 577 ········return·element
 578 ····},
 579 ····getStyle:·function(element,·style)·{
 580 ········element·=·OpenLayers.Util.getElement(element);
 581 ········var·value·=·null;
 582 ········if·(element·&&·element.style)·{
 583 ············value·=·element.style[OpenLayers.String.camelize(style)];
 584 ············if·(!value)·{
 585 ················if·(document.defaultView·&&·document.defaultView.getComputedStyle)·{
 586 ····················var·css·=·document.defaultView.getComputedStyle(element,·null);
 587 ····················value·=·css·?·css.getPropertyValue(style)·:·null
 588 ················}·else·if·(element.currentStyle)·{
 589 ····················value·=·element.currentStyle[OpenLayers.String.camelize(style)]
 590 ················}
 591 ············}
 592 ············var·positions·=·["left",·"top",·"right",·"bottom"];
 593 ············if·(window.opera·&&·OpenLayers.Util.indexOf(positions,·style)·!=·-1·&&·OpenLayers.Element.getStyle(element,·"position")·==·"static")·{
 594 ················value·=·"auto"
 595 ············}
 596 ········}
 597 ········return·value·==·"auto"·?·null·:·value
 598 ····}
 599 };
568 OpenLayers.LonLat·=·OpenLayers.Class({600 OpenLayers.LonLat·=·OpenLayers.Class({
569 ····lon:·0,601 ····lon:·0,
570 ····lat:·0,602 ····lat:·0,
571 ····initialize:·function(lon,·lat)·{603 ····initialize:·function(lon,·lat)·{
572 ········if·(OpenLayers.Util.isArray(lon))·{604 ········if·(OpenLayers.Util.isArray(lon))·{
573 ············lat·=·lon[1];605 ············lat·=·lon[1];
574 ············lon·=·lon[0]606 ············lon·=·lon[0]
Max diff block lines reached; 1929067/1933600 bytes (99.77%) of diff not shown.
1.41 MB
./usr/share/javascript/openlayers/OpenLayers.mobile.js
1.41 MB
js-beautify {}
    
Offset 4895, 14 lines modifiedOffset 4895, 308 lines modified
  
4895 ········//·used·for·testing4895 ········//·used·for·testing
4896 ········cssCache:·cssCache,4896 ········cssCache:·cssCache,
4897 ········jsCache:·jsCache4897 ········jsCache:·jsCache
4898 ····};4898 ····};
4899 }());4899 }());
4900 /*·======================================================================4900 /*·======================================================================
 4901 ····OpenLayers/Animation.js
 4902 ···======================================================================·*/
  
 4903 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for
 4904 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.
 4905 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the
 4906 ·*·full·text·of·the·license.·*/
  
 4907 /**
 4908 ·*·@requires·OpenLayers/SingleFile.js
 4909 ·*·@requires·OpenLayers/Util/vendorPrefix.js
 4910 ·*/
  
 4911 /**
 4912 ·*·Namespace:·OpenLayers.Animation
 4913 ·*·A·collection·of·utility·functions·for·executing·methods·that·repaint·a·
 4914 ·*·····portion·of·the·browser·window.··These·methods·take·advantage·of·the
 4915 ·*·····browser's·scheduled·repaints·where·requestAnimationFrame·is·available.
 4916 ·*/
 4917 OpenLayers.Animation·=·(function(window)·{
  
 4918 ····/**
 4919 ·····*·Property:·isNative
 4920 ·····*·{Boolean}·true·if·a·native·requestAnimationFrame·function·is·available
 4921 ·····*/
 4922 ····var·requestAnimationFrame·=·OpenLayers.Util.vendorPrefix.js(window,·"requestAnimationFrame");
 4923 ····var·isNative·=·!!(requestAnimationFrame);
  
 4924 ····/**
 4925 ·····*·Function:·requestFrame
 4926 ·····*·Schedule·a·function·to·be·called·at·the·next·available·animation·frame.
 4927 ·····*·····Uses·the·native·method·where·available.··Where·requestAnimationFrame·is
 4928 ·····*·····not·available,·setTimeout·will·be·called·with·a·16ms·delay.
 4929 ·····*
 4930 ·····*·Parameters:
 4931 ·····*·callback·-·{Function}·The·function·to·be·called·at·the·next·animation·frame.
 4932 ·····*·element·-·{DOMElement}·Optional·element·that·visually·bounds·the·animation.
 4933 ·····*/
 4934 ····var·requestFrame·=·(function()·{
 4935 ········var·request·=·window[requestAnimationFrame]·||
 4936 ············function(callback,·element)·{
 4937 ················window.setTimeout(callback,·16);
 4938 ············};
 4939 ········//·bind·to·window·to·avoid·illegal·invocation·of·native·function
 4940 ········return·function(callback,·element)·{
 4941 ············request.apply(window,·[callback,·element]);
 4942 ········};
 4943 ····})();
  
 4944 ····//·private·variables·for·animation·loops
 4945 ····var·counter·=·0;
 4946 ····var·loops·=·{};
  
 4947 ····/**
 4948 ·····*·Function:·start
 4949 ·····*·Executes·a·method·with·<requestFrame>·in·series·for·some·
 4950 ·····*·····duration.
 4951 ·····*
 4952 ·····*·Parameters:
 4953 ·····*·callback·-·{Function}·The·function·to·be·called·at·the·next·animation·frame.
 4954 ·····*·duration·-·{Number}·Optional·duration·for·the·loop.··If·not·provided,·the
 4955 ·····*·····animation·loop·will·execute·indefinitely.
 4956 ·····*·element·-·{DOMElement}·Optional·element·that·visually·bounds·the·animation.
 4957 ·····*
 4958 ·····*·Returns:
 4959 ·····*·{Number}·Identifier·for·the·animation·loop.··Used·to·stop·animations·with
 4960 ·····*·····<stop>.
 4961 ·····*/
 4962 ····function·start(callback,·duration,·element)·{
 4963 ········duration·=·duration·>·0·?·duration·:·Number.POSITIVE_INFINITY;
 4964 ········var·id·=·++counter;
 4965 ········var·start·=·+new·Date;
 4966 ········loops[id]·=·function()·{
 4967 ············if·(loops[id]·&&·+new·Date·-·start·<=·duration)·{
 4968 ················callback();
 4969 ················if·(loops[id])·{
 4970 ····················requestFrame(loops[id],·element);
 4971 ················}
 4972 ············}·else·{
 4973 ················delete·loops[id];
 4974 ············}
 4975 ········};
 4976 ········requestFrame(loops[id],·element);
 4977 ········return·id;
 4978 ····}
  
 4979 ····/**
 4980 ·····*·Function:·stop
 4981 ·····*·Terminates·an·animation·loop·started·with·<start>.
 4982 ·····*
 4983 ·····*·Parameters:
 4984 ·····*·id·-·{Number}·Identifier·returned·from·<start>.
 4985 ·····*/
 4986 ····function·stop(id)·{
 4987 ········delete·loops[id];
 4988 ····}
  
 4989 ····return·{
 4990 ········isNative:·isNative,
 4991 ········requestFrame:·requestFrame,
 4992 ········start:·start,
 4993 ········stop:·stop
 4994 ····};
  
 4995 })(window);
 4996 /*·======================================================================
 4997 ····OpenLayers/Kinetic.js
 4998 ···======================================================================·*/
  
 4999 /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for
 5000 ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license.
 5001 ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the
 5002 ·*·full·text·of·the·license.·*/
  
 5003 /**
 5004 ·*·@requires·OpenLayers/BaseTypes/Class.js
 5005 ·*·@requires·OpenLayers/Animation.js
 5006 ·*/
  
 5007 OpenLayers.Kinetic·=·OpenLayers.Class({
Max diff block lines reached; 1466814/1475823 bytes (99.39%) of diff not shown.
520 KB
./usr/share/javascript/openlayers/OpenLayers.mobile.min.js
520 KB
js-beautify {}
    
Offset 1805, 14 lines modifiedOffset 1805, 140 lines modified
1805 ········css:·css,1805 ········css:·css,
1806 ········js:·js,1806 ········js:·js,
1807 ········style:·style,1807 ········style:·style,
1808 ········cssCache:·cssCache,1808 ········cssCache:·cssCache,
1809 ········jsCache:·jsCache1809 ········jsCache:·jsCache
1810 ····}1810 ····}
1811 }();1811 }();
 1812 OpenLayers.Animation·=·function(window)·{
 1813 ····var·requestAnimationFrame·=·OpenLayers.Util.vendorPrefix.js(window,·"requestAnimationFrame");
 1814 ····var·isNative·=·!!requestAnimationFrame;
 1815 ····var·requestFrame·=·function()·{
 1816 ········var·request·=·window[requestAnimationFrame]·||·function(callback,·element)·{
 1817 ············window.setTimeout(callback,·16)
 1818 ········};
 1819 ········return·function(callback,·element)·{
 1820 ············request.apply(window,·[callback,·element])
 1821 ········}
 1822 ····}();
 1823 ····var·counter·=·0;
 1824 ····var·loops·=·{};
  
 1825 ····function·start(callback,·duration,·element)·{
 1826 ········duration·=·duration·>·0·?·duration·:·Number.POSITIVE_INFINITY;
 1827 ········var·id·=·++counter;
 1828 ········var·start·=·+new·Date;
 1829 ········loops[id]·=·function()·{
 1830 ············if·(loops[id]·&&·+new·Date·-·start·<=·duration)·{
 1831 ················callback();
 1832 ················if·(loops[id])·{
 1833 ····················requestFrame(loops[id],·element)
 1834 ················}
 1835 ············}·else·{
 1836 ················delete·loops[id]
 1837 ············}
 1838 ········};
 1839 ········requestFrame(loops[id],·element);
 1840 ········return·id
 1841 ····}
  
 1842 ····function·stop(id)·{
 1843 ········delete·loops[id]
 1844 ····}
 1845 ····return·{
 1846 ········isNative:·isNative,
 1847 ········requestFrame:·requestFrame,
 1848 ········start:·start,
 1849 ········stop:·stop
 1850 ····}
 1851 }(window);
 1852 OpenLayers.Kinetic·=·OpenLayers.Class({
 1853 ····threshold:·0,
 1854 ····deceleration:·.0035,
 1855 ····nbPoints:·100,
 1856 ····delay:·200,
 1857 ····points:·undefined,
 1858 ····timerId:·undefined,
 1859 ····initialize:·function(options)·{
 1860 ········OpenLayers.Util.extend(this,·options)
 1861 ····},
 1862 ····begin:·function()·{
 1863 ········OpenLayers.Animation.stop(this.timerId);
 1864 ········this.timerId·=·undefined;
 1865 ········this.points·=·[]
 1866 ····},
 1867 ····update:·function(xy)·{
 1868 ········this.points.unshift({
 1869 ············xy:·xy,
 1870 ············tick:·(new·Date).getTime()
 1871 ········});
 1872 ········if·(this.points.length·>·this.nbPoints)·{
 1873 ············this.points.pop()
 1874 ········}
 1875 ····},
 1876 ····end:·function(xy)·{
 1877 ········var·last,·now·=·(new·Date).getTime();
 1878 ········for·(var·i·=·0,·l·=·this.points.length,·point;·i·<·l;·i++)·{
 1879 ············point·=·this.points[i];
 1880 ············if·(now·-·point.tick·>·this.delay)·{
 1881 ················break
 1882 ············}
 1883 ············last·=·point
 1884 ········}
 1885 ········if·(!last)·{
 1886 ············return
 1887 ········}
 1888 ········var·time·=·(new·Date).getTime()·-·last.tick;
 1889 ········var·dist·=·Math.sqrt(Math.pow(xy.x·-·last.xy.x,·2)·+·Math.pow(xy.y·-·last.xy.y,·2));
 1890 ········var·speed·=·dist·/·time;
 1891 ········if·(speed·==·0·||·speed·<·this.threshold)·{
 1892 ············return
 1893 ········}
 1894 ········var·theta·=·Math.asin((xy.y·-·last.xy.y)·/·dist);
 1895 ········if·(last.xy.x·<=·xy.x)·{
 1896 ············theta·=·Math.PI·-·theta
 1897 ········}
 1898 ········return·{
 1899 ············speed:·speed,
 1900 ············theta:·theta
 1901 ········}
 1902 ····},
 1903 ····move:·function(info,·callback)·{
 1904 ········var·v0·=·info.speed;
 1905 ········var·fx·=·Math.cos(info.theta);
 1906 ········var·fy·=·-Math.sin(info.theta);
 1907 ········var·initialTime·=·(new·Date).getTime();
 1908 ········var·lastX·=·0;
 1909 ········var·lastY·=·0;
 1910 ········var·timerCallback·=·function()·{
 1911 ············if·(this.timerId·==·null)·{
 1912 ················return
 1913 ············}
 1914 ············var·t·=·(new·Date).getTime()·-·initialTime;
 1915 ············var·p·=·-this.deceleration·*·Math.pow(t,·2)·/·2·+·v0·*·t;
 1916 ············var·x·=·p·*·fx;
 1917 ············var·y·=·p·*·fy;
 1918 ············var·args·=·{};
 1919 ············args.end·=·false;
 1920 ············var·v·=·-this.deceleration·*·t·+·v0;
 1921 ············if·(v·<=·0)·{
 1922 ················OpenLayers.Animation.stop(this.timerId);
 1923 ················this.timerId·=·null;
 1924 ················args.end·=·true
 1925 ············}
 1926 ············args.x·=·x·-·lastX;
 1927 ············args.y·=·y·-·lastY;
 1928 ············lastX·=·x;
 1929 ············lastY·=·y;
Max diff block lines reached; 527996/532129 bytes (99.22%) of diff not shown.
3.5 MB
./usr/share/javascript/openlayers/OpenLayers.tests.js
3.5 MB
js-beautify {}
    
Offset 33176, 14 lines modifiedOffset 33176, 872 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/Rule.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/Util.js
 33191 ·*·@requires·OpenLayers/Style.js
 33192 ·*/
  
 33193 /**
 33194 ·*·Class:·OpenLayers.Rule
 33195 ·*·This·class·represents·an·SLD·Rule,·as·being·used·for·rule-based·SLD·styling.
 33196 ·*/
 33197 OpenLayers.Rule·=·OpenLayers.Class({
  
 33198 ····/**
 33199 ·····*·Property:·id
 33200 ·····*·{String}·A·unique·id·for·this·session.
 33201 ·····*/
 33202 ····id:·null,
  
 33203 ····/**
 33204 ·····*·APIProperty:·name
 33205 ·····*·{String}·name·of·this·rule
 33206 ·····*/
 33207 ····name:·null,
  
 33208 ····/**
 33209 ·····*·Property:·title
 33210 ·····*·{String}·Title·of·this·rule·(set·if·included·in·SLD)
 33211 ·····*/
 33212 ····title:·null,
  
 33213 ····/**
 33214 ·····*·Property:·description
 33215 ·····*·{String}·Description·of·this·rule·(set·if·abstract·is·included·in·SLD)
 33216 ·····*/
 33217 ····description:·null,
  
 33218 ····/**
 33219 ·····*·Property:·context
 33220 ·····*·{Object}·An·optional·object·with·properties·that·the·rule·should·be
 33221 ·····*·evaluated·against.·If·no·context·is·specified,·feature.attributes·will
 33222 ·····*·be·used.
 33223 ·····*/
 33224 ····context:·null,
  
 33225 ····/**
 33226 ·····*·Property:·filter
 33227 ·····*·{<OpenLayers.Filter>}·Optional·filter·for·the·rule.
 33228 ·····*/
 33229 ····filter:·null,
  
 33230 ····/**
 33231 ·····*·Property:·elseFilter
 33232 ·····*·{Boolean}·Determines·whether·this·rule·is·only·to·be·applied·only·if
 33233 ·····*·no·other·rules·match·(ElseFilter·according·to·the·SLD·specification).·
 33234 ·····*·Default·is·false.··For·instances·of·OpenLayers.Rule,·if·elseFilter·is
 33235 ·····*·false,·the·rule·will·always·apply.··For·subclasses,·the·else·property·is·
 33236 ·····*·ignored.
 33237 ·····*/
 33238 ····elseFilter:·false,
  
 33239 ····/**
 33240 ·····*·Property:·symbolizer
 33241 ·····*·{Object}·Symbolizer·or·hash·of·symbolizers·for·this·rule.·If·hash·of
 33242 ·····*·symbolizers,·keys·are·one·or·more·of·["Point",·"Line",·"Polygon"].·The
 33243 ·····*·latter·if·useful·if·it·is·required·to·style·e.g.·vertices·of·a·line
 33244 ·····*·with·a·point·symbolizer.·Note,·however,·that·this·is·not·implemented
 33245 ·····*·yet·in·OpenLayers,·but·it·is·the·way·how·symbolizers·are·defined·in
 33246 ·····*·SLD.
 33247 ·····*/
 33248 ····symbolizer:·null,
  
 33249 ····/**
 33250 ·····*·Property:·symbolizers
 33251 ·····*·{Array}·Collection·of·symbolizers·associated·with·this·rule.··If·
 33252 ·····*·····provided·at·construction,·the·symbolizers·array·has·precedence
 33253 ·····*·····over·the·deprecated·symbolizer·property.··Note·that·multiple·
 33254 ·····*·····symbolizers·are·not·currently·supported·by·the·vector·renderers.
 33255 ·····*·····Rules·with·multiple·symbolizers·are·currently·only·useful·for
 33256 ·····*·····maintaining·elements·in·an·SLD·document.
 33257 ·····*/
 33258 ····symbolizers:·null,
  
 33259 ····/**
 33260 ·····*·APIProperty:·minScaleDenominator
 33261 ·····*·{Number}·or·{String}·minimum·scale·at·which·to·draw·the·feature.
 33262 ·····*·In·the·case·of·a·String,·this·can·be·a·combination·of·text·and
 33263 ·····*·propertyNames·in·the·form·"literal·${propertyName}"
 33264 ·····*/
 33265 ····minScaleDenominator:·null,
  
 33266 ····/**
 33267 ·····*·APIProperty:·maxScaleDenominator
 33268 ·····*·{Number}·or·{String}·maximum·scale·at·which·to·draw·the·feature.
 33269 ·····*·In·the·case·of·a·String,·this·can·be·a·combination·of·text·and
 33270 ·····*·propertyNames·in·the·form·"literal·${propertyName}"
 33271 ·····*/
 33272 ····maxScaleDenominator:·null,
  
 33273 ····/**·
 33274 ·····*·Constructor:·OpenLayers.Rule
 33275 ·····*·Creates·a·Rule.
 33276 ·····*
 33277 ·····*·Parameters:
 33278 ·····*·options·-·{Object}·An·optional·object·with·properties·to·set·on·the
 33279 ·····*···········rule
 33280 ·····*·
 33281 ·····*·Returns:
 33282 ·····*·{<OpenLayers.Rule>}
 33283 ·····*/
 33284 ····initialize:·function(options)·{
 33285 ········this.symbolizer·=·{};
Max diff block lines reached; 3638597/3665483 bytes (99.27%) of diff not shown.
1.79 MB
./usr/share/javascript/openlayers/OpenLayers.tests.min.js
1.79 MB
js-beautify {}
    
Offset 13318, 14 lines modifiedOffset 13318, 170 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.Rule·=·OpenLayers.Class({
 13326 ····id:·null,
 13327 ····name:·null,
 13328 ····title:·null,
 13329 ····description:·null,
 13330 ····context:·null,
 13331 ····filter:·null,
 13332 ····elseFilter:·false,
 13333 ····symbolizer:·null,
 13334 ····symbolizers:·null,
 13335 ····minScaleDenominator:·null,
 13336 ····maxScaleDenominator:·null,
 13337 ····initialize:·function(options)·{
 13338 ········this.symbolizer·=·{};
 13339 ········OpenLayers.Util.extend(this,·options);
 13340 ········if·(this.symbolizers)·{
 13341 ············delete·this.symbolizer
 13342 ········}
 13343 ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_")
 13344 ····},
 13345 ····destroy:·function()·{
 13346 ········for·(var·i·in·this.symbolizer)·{
 13347 ············this.symbolizer[i]·=·null
 13348 ········}
 13349 ········this.symbolizer·=·null;
 13350 ········delete·this.symbolizers
 13351 ····},
 13352 ····evaluate:·function(feature)·{
 13353 ········var·context·=·this.getContext(feature);
 13354 ········var·applies·=·true;
 13355 ········if·(this.minScaleDenominator·||·this.maxScaleDenominator)·{
 13356 ············var·scale·=·feature.layer.map.getScale()
 13357 ········}
 13358 ········if·(this.minScaleDenominator)·{
 13359 ············applies·=·scale·>=·OpenLayers.Style.createLiteral(this.minScaleDenominator,·context)
 13360 ········}
 13361 ········if·(applies·&&·this.maxScaleDenominator)·{
 13362 ············applies·=·scale·<·OpenLayers.Style.createLiteral(this.maxScaleDenominator,·context)
 13363 ········}
 13364 ········if·(applies·&&·this.filter)·{
 13365 ············if·(this.filter.CLASS_NAME·==·"OpenLayers.Filter.FeatureId")·{
 13366 ················applies·=·this.filter.evaluate(feature)
 13367 ············}·else·{
 13368 ················applies·=·this.filter.evaluate(context)
 13369 ············}
 13370 ········}
 13371 ········return·applies
 13372 ····},
 13373 ····getContext:·function(feature)·{
 13374 ········var·context·=·this.context;
 13375 ········if·(!context)·{
 13376 ············context·=·feature.attributes·||·feature.data
 13377 ········}
 13378 ········if·(typeof·this.context·==·"function")·{
 13379 ············context·=·this.context(feature)
 13380 ········}
 13381 ········return·context
 13382 ····},
 13383 ····clone:·function()·{
 13384 ········var·options·=·OpenLayers.Util.extend({},·this);
 13385 ········if·(this.symbolizers)·{
 13386 ············var·len·=·this.symbolizers.length;
 13387 ············options.symbolizers·=·new·Array(len);
 13388 ············for·(var·i·=·0;·i·<·len;·++i)·{
 13389 ················options.symbolizers[i]·=·this.symbolizers[i].clone()
 13390 ············}
 13391 ········}·else·{
 13392 ············options.symbolizer·=·{};
 13393 ············var·value,·type;
 13394 ············for·(var·key·in·this.symbolizer)·{
 13395 ················value·=·this.symbolizer[key];
 13396 ················type·=·typeof·value;
 13397 ················if·(type·===·"object")·{
 13398 ····················options.symbolizer[key]·=·OpenLayers.Util.extend({},·value)
 13399 ················}·else·if·(type·===·"string")·{
 13400 ····················options.symbolizer[key]·=·value
 13401 ················}
 13402 ············}
 13403 ········}
 13404 ········options.filter·=·this.filter·&&·this.filter.clone();
 13405 ········options.context·=·this.context·&&·OpenLayers.Util.extend({},·this.context);
 13406 ········return·new·OpenLayers.Rule(options)
 13407 ····},
 13408 ····CLASS_NAME:·"OpenLayers.Rule"
 13409 });
 13410 OpenLayers.Symbolizer·=·OpenLayers.Class({
 13411 ····zIndex:·0,
 13412 ····initialize:·function(config)·{
 13413 ········OpenLayers.Util.extend(this,·config)
 13414 ····},
 13415 ····clone:·function()·{
 13416 ········var·Type·=·eval(this.CLASS_NAME);
 13417 ········return·new·Type(OpenLayers.Util.extend({},·this))
 13418 ····},
 13419 ····CLASS_NAME:·"OpenLayers.Symbolizer"
 13420 });
 13421 OpenLayers.Symbolizer.Point·=·OpenLayers.Class(OpenLayers.Symbolizer,·{
 13422 ····initialize:·function(config)·{
 13423 ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments)
 13424 ····},
 13425 ····CLASS_NAME:·"OpenLayers.Symbolizer.Point"
 13426 });
 13427 OpenLayers.Symbolizer.Line·=·OpenLayers.Class(OpenLayers.Symbolizer,·{
 13428 ····initialize:·function(config)·{
 13429 ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments)
 13430 ····},
 13431 ····CLASS_NAME:·"OpenLayers.Symbolizer.Line"
 13432 });
 13433 OpenLayers.Symbolizer.Polygon·=·OpenLayers.Class(OpenLayers.Symbolizer,·{
 13434 ····initialize:·function(config)·{
 13435 ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments)
 13436 ····},
 13437 ····CLASS_NAME:·"OpenLayers.Symbolizer.Polygon"
 13438 });
 13439 OpenLayers.Symbolizer.Text·=·OpenLayers.Class(OpenLayers.Symbolizer,·{
 13440 ····initialize:·function(config)·{
 13441 ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments)
 13442 ····},
 13443 ····CLASS_NAME:·"OpenLayers.Symbolizer.Text"
 13444 });
Max diff block lines reached; 1868193/1874036 bytes (99.69%) of diff not shown.