Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·e10e99197b80e8001ad4aeb43e1d6b32·721476·javascript·optional·libjs-openlayers_2.13.1+ds2-10_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2023-01-14·13:27:41.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2023-01-14·13:27:41.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····36 | 2 | -rw-r--r--···0········0········0·····3680·2023-01-14·13:27:41.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···7 | 3 | -rw-r--r--···0········0········0···717604·2023-01-14·13:27:41.000000·data.tar.xz |
Offset 52, 14 lines modified | Offset 52, 37 lines modified | ||
52 | ·*·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | 52 | ·*·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS |
53 | ·*·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | 53 | ·*·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 | /*·====================================================================== | ||
59 | ····OpenLayers/SingleFile.js | 81 | ····OpenLayers/SingleFile.js |
60 | ···======================================================================·*/ | 82 | ···======================================================================·*/ |
61 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | 83 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for |
62 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | 84 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. |
63 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | 85 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the |
64 | ·*·full·text·of·the·license.·*/ | 86 | ·*·full·text·of·the·license.·*/ |
Offset 263, 14 lines modified | Offset 286, 268 lines modified | ||
263 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ | 286 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ |
264 | ············destination.toString·=·source.toString; | 287 | ············destination.toString·=·source.toString; |
265 | ········} | 288 | ········} |
266 | ····} | 289 | ····} |
267 | ····return·destination; | 290 | ····return·destination; |
268 | }; | 291 | }; |
269 | /*·====================================================================== | 292 | /*·====================================================================== |
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; 3952345/3962658 bytes (99.74%) of diff not shown. |
Offset 5950, 177 lines modified | Offset 5950, 252 lines modified | ||
5950 | ·*·{Array}·prefixes·of·the·sld·symbolizers.·These·are·the | 5950 | ·*·{Array}·prefixes·of·the·sld·symbolizers.·These·are·the |
5951 | ·*·same·as·the·main·geometry·types | 5951 | ·*·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/ | 5957 | ····OpenLayers/Rule.js |
5958 | ···======================================================================·*/ | 5958 | ···======================================================================·*/ |
5959 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | 5959 | /*·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·the | 5961 | ·*·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.js | 5964 | ·*·@requires·OpenLayers/BaseTypes/Class.js |
5965 | ·*·@requires·OpenLayers/Util.js | ||
5965 | ·*·@requires·OpenLayers/Style.js | 5966 | ·*·@requires·OpenLayers/Style.js |
5966 | ·*·@requires·OpenLayers/Feature/Vector.js | ||
5967 | ·*/ | 5967 | ·*/ |
5968 | /** | 5968 | /** |
5969 | ·*·Class:·OpenLayers. | 5969 | ·*·Class:·OpenLayers.Rule |
5970 | ·*·This·class·represents·an·SLD·Rule,·as·being·used·for·rule-based·SLD·styling. | ||
5970 | ·*/ | 5971 | ·*/ |
5971 | OpenLayers. | 5972 | OpenLayers.Rule·=·OpenLayers.Class({ |
5972 | ····/** | 5973 | ····/** |
5973 | ·····*·Property:· | 5974 | ·····*·Property:·id |
5975 | ·····*·{String}·A·unique·id·for·this·session. | ||
5974 | ·····*·{Object}·Hash·of·{<OpenLayers.Style>},·keyed·by·names·of·well·known | ||
5975 | ·····*·rendering·intents·(e.g.·"default",·"temporary",·"select",·"delete"). | ||
5976 | ·····*/ | 5976 | ·····*/ |
5977 | ···· | 5977 | ····id:·null, |
5978 | ····/** | 5978 | ····/** |
5979 | ·····*·APIProperty:·name | ||
5980 | ·····*·{String}·name·of·this·rule | ||
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. | ||
5983 | ·····*/ | 5981 | ·····*/ |
5984 | ···· | 5982 | ····name:·null, |
5985 | ····/** | 5983 | ····/** |
5984 | ·····*·Property:·title | ||
5985 | ·····*·{String}·Title·of·this·rule·(set·if·included·in·SLD) | ||
5986 | ·····*·Constructor:·OpenLayers.StyleMap | ||
5987 | ·····*· | ||
5988 | ·····*·Parameters: | ||
5989 | ·····*·style···-·{Object}·Optional.·Either·a·style·hash,·or·a·style·object,·or | ||
5990 | ·····*···········a·hash·of·style·objects·(style·hashes)·keyed·by·rendering | ||
5991 | ·····*···········intent.·If·just·one·style·hash·or·style·object·is·passed, | ||
5992 | ·····*···········this·will·be·used·for·all·known·render·intents·(default, | ||
5993 | ·····*···········select,·temporary) | ||
5994 | ·····*·options·-·{Object}·optional·hash·of·additional·options·for·this | ||
5995 | ·····*···········instance | ||
5996 | ·····*/ | 5986 | ·····*/ |
5987 | ····title:·null, | ||
5997 | ····initialize:·function(style,·options)·{ | ||
5998 | ········this.styles·=·{ | ||
5999 | ············"default":·new·OpenLayers.Style( | ||
6000 | ················OpenLayers.Feature.Vector.style["default"]), | ||
6001 | ············"select":·new·OpenLayers.Style( | ||
6002 | ················OpenLayers.Feature.Vector.style["select"]), | ||
6003 | ············"temporary":·new·OpenLayers.Style( | ||
6004 | ················OpenLayers.Feature.Vector.style["temporary"]), | ||
6005 | ············"delete":·new·OpenLayers.Style( | ||
6006 | ················OpenLayers.Feature.Vector.style["delete"]) | ||
6007 | ········}; | ||
6008 | ········//·take·whatever·the·user·passed·as·style·parameter·and·convert·it | ||
6009 | ········//·into·parts·of·stylemap. | ||
6010 | ········if·(style·instanceof·OpenLayers.Style)·{ | ||
6011 | ············//·user·passed·a·style·object | ||
6012 | ············this.styles["default"]·=·style; | ||
6013 | ············this.styles["select"]·=·style; | ||
6014 | ············this.styles["temporary"]·=·style; | ||
6015 | ············this.styles["delete"]·=·style; | ||
6016 | ········}·else·if·(typeof·style·==·"object")·{ | ||
6017 | ············for·(var·key·in·style)·{ | ||
6018 | ················if·(style[key]·instanceof·OpenLayers.Style)·{ | ||
6019 | ····················//·user·passed·a·hash·of·style·objects | ||
6020 | ····················this.styles[key]·=·style[key]; | ||
6021 | ················}·else·if·(typeof·style[key]·==·"object")·{ | ||
6022 | ····················//·user·passsed·a·hash·of·style·hashes | ||
6023 | ····················this.styles[key]·=·new·OpenLayers.Style(style[key]); | ||
6024 | ················}·else·{ | ||
6025 | ····················//·user·passed·a·style·hash·(i.e.·symbolizer) | ||
6026 | ····················this.styles["default"]·=·new·OpenLayers.Style(style); | ||
6027 | ····················this.styles["select"]·=·new·OpenLayers.Style(style); | ||
6028 | ····················this.styles["temporary"]·=·new·OpenLayers.Style(style); | ||
6029 | ····················this.styles["delete"]·=·new·OpenLayers.Style(style); | ||
6030 | ····················break; | ||
6031 | ················} | ||
6032 | ···· | 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, | ||
Max diff block lines reached; 1154084/1161173 bytes (99.39%) of diff not shown. |
Offset 2189, 82 lines modified | Offset 2189, 98 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·value | 2193 | ····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. | 2196 | OpenLayers.Rule·=·OpenLayers.Class({ |
2197 | ····id:·null, | ||
2198 | ····name:·null, | ||
2197 | ···· | 2199 | ····title:·null, |
2198 | ···· | 2200 | ····description:·null, |
2201 | ····context:·null, | ||
2202 | ····filter:·null, | ||
2203 | ····elseFilter:·false, | ||
2204 | ····symbolizer:·null, | ||
2205 | ····symbolizers:·null, | ||
2206 | ····minScaleDenominator:·null, | ||
2207 | ····maxScaleDenominator:·null, | ||
2199 | ····initialize:·function( | 2208 | ····initialize:·function(options)·{ |
2200 | ········this.s | 2209 | ········this.symbolizer·=·{}; |
2210 | ········OpenLayers.Util.extend(this,·options); | ||
2211 | ········if·(this.symbolizers)·{ | ||
2212 | ············delete·this.symbolizer | ||
2201 | ············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 | ············} | ||
2225 | ········} | 2213 | ········} |
2226 | ········OpenLayers.Util.e | 2214 | ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_") |
2227 | ····}, | 2215 | ····}, |
2228 | ····destroy:·function()·{ | 2216 | ····destroy:·function()·{ |
2229 | ········for·(var· | 2217 | ········for·(var·i·in·this.symbolizer)·{ |
2230 | ············this.s | 2218 | ············this.symbolizer[i]·=·null |
2231 | ········} | 2219 | ········} |
2232 | ········this.s | 2220 | ········this.symbolizer·=·null; |
2221 | ········delete·this.symbolizers | ||
2233 | ····}, | 2222 | ····}, |
2234 | ····createSymbolizer:·function(feature,·intent)·{ | ||
2235 | ········if·(!feature)·{ | ||
2236 | ···· | 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() | ||
2237 | ········} | 2228 | ········} |
2238 | ········if·(!this.styles[intent])·{ | ||
2239 | ········· | 2229 | ········if·(this.minScaleDenominator)·{ |
2230 | ············applies·=·scale·>=·OpenLayers.Style.createLiteral(this.minScaleDenominator,·context) | ||
2240 | ········} | 2231 | ········} |
2232 | ········if·(applies·&&·this.maxScaleDenominator)·{ | ||
2233 | ············applies·=·scale·<·OpenLayers.Style.createLiteral(this.maxScaleDenominator,·context) | ||
2241 | ········feature.renderIntent·=·intent; | ||
2242 | ········var·defaultSymbolizer·=·{}; | ||
2243 | ········if·(this.extendDefault·&&·intent·!=·"default")·{ | ||
2244 | ············defaultSymbolizer·=·this.styles["default"].createSymbolizer(feature) | ||
2245 | ········} | 2234 | ········} |
2246 | ········ | 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 | ········} | ||
2242 | ········return·applies | ||
2247 | ····}, | 2243 | ····}, |
2244 | ····getContext:·function(feature)·{ | ||
2245 | ········var·context·=·this.context; | ||
2246 | ········if·(!context)·{ | ||
2247 | ············context·=·feature.attributes·||·feature.data | ||
2248 | ····addUniqueValueRules:·function(renderIntent,·property,·symbolizers,·context)·{ | ||
2249 | ········var·rules·=·[]; | ||
2250 | ········for·(var·value·in·symbolizers)·{ | ||
2251 | ············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 | ||
2258 | ················}) | ||
2259 | ············})) | ||
2260 | ········} | 2248 | ········} |
2261 | ········ | 2249 | ········if·(typeof·this.context·==·"function")·{ |
2250 | ············context·=·this.context(feature) | ||
2251 | ········} | ||
2252 | ········return·context | ||
2262 | ····}, | 2253 | ····}, |
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)·{ | ||
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]·=·value | ||
2272 | ················} | ||
Max diff block lines reached; 379876/385984 bytes (98.42%) of diff not shown. |
Offset 62, 14 lines modified | Offset 62, 47 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.toString | 64 | ············destination.toString·=·source.toString |
65 | ········} | 65 | ········} |
66 | ····} | 66 | ····} |
67 | ····return·destination | 67 | ····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 | })(); | ||
69 | OpenLayers.String·=·{ | 102 | OpenLayers.String·=·{ |
70 | ····startsWith:·function(str,·sub)·{ | 103 | ····startsWith:·function(str,·sub)·{ |
71 | ········return·str.indexOf(sub)·==·0 | 104 | ········return·str.indexOf(sub)·==·0 |
72 | ····}, | 105 | ····}, |
73 | ····contains:·function(str,·sub)·{ | 106 | ····contains:·function(str,·sub)·{ |
74 | ········return·str.indexOf(sub)·!=·-1 | 107 | ········return·str.indexOf(sub)·!=·-1 |
75 | ····}, | 108 | ····}, |
Offset 528, 79 lines modified | Offset 561, 14 lines modified | ||
528 | }; | 561 | }; |
529 | OpenLayers.Bounds.oppositeQuadrant·=·function(quadrant)·{ | 562 | OpenLayers.Bounds.oppositeQuadrant·=·function(quadrant)·{ |
530 | ····var·opp·=·""; | 563 | ····var·opp·=·""; |
531 | ····opp·+=·quadrant.charAt(0)·==·"t"·?·"b"·:·"t"; | 564 | ····opp·+=·quadrant.charAt(0)·==·"t"·?·"b"·:·"t"; |
532 | ····opp·+=·quadrant.charAt(1)·==·"l"·?·"r"·:·"l"; | 565 | ····opp·+=·quadrant.charAt(1)·==·"l"·?·"r"·:·"l"; |
533 | ····return·opp | 566 | ····return·opp |
534 | }; | 567 | }; |
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 | }; | ||
600 | OpenLayers.LonLat·=·OpenLayers.Class({ | 568 | OpenLayers.LonLat·=·OpenLayers.Class({ |
601 | ····lon:·0, | 569 | ····lon:·0, |
602 | ····lat:·0, | 570 | ····lat:·0, |
603 | ····initialize:·function(lon,·lat)·{ | 571 | ····initialize:·function(lon,·lat)·{ |
604 | ········if·(OpenLayers.Util.isArray(lon))·{ | 572 | ········if·(OpenLayers.Util.isArray(lon))·{ |
605 | ············lat·=·lon[1]; | 573 | ············lat·=·lon[1]; |
606 | ············lon·=·lon[0] | 574 | ············lon·=·lon[0] |
Max diff block lines reached; 1930253/1934786 bytes (99.77%) of diff not shown. |
Offset 4895, 308 lines modified | Offset 4895, 14 lines modified | ||
4895 | ········//·used·for·testing | 4895 | ········//·used·for·testing |
4896 | ········cssCache:·cssCache, | 4896 | ········cssCache:·cssCache, |
4897 | ········jsCache:·jsCache | 4897 | ········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; 1426296/1435305 bytes (99.37%) of diff not shown. |
Offset 1805, 140 lines modified | Offset 1805, 14 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:·jsCache | 1809 | ········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; 533268/537401 bytes (99.23%) of diff not shown. |
Offset 33176, 872 lines modified | Offset 33176, 14 lines modified | ||
33176 | /** | 33176 | /** |
33177 | ·*·Constant:·CORNER_SIZE | 33177 | ·*·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; 3514520/3541406 bytes (99.24%) of diff not shown. |
Offset 13318, 170 lines modified | Offset 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.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; 1869792/1875635 bytes (99.69%) of diff not shown. |