Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | ·c | 1 | ·cf0c9dfa4e437587b088729c65476571·718104·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·····3680·2023-01-14·13:27:41.000000·control.tar.xz | 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···71 | 3 | -rw-r--r--···0········0········0···714232·2023-01-14·13:27:41.000000·data.tar.xz |
Offset 136, 14 lines modified | Offset 136, 141 lines modified | ||
136 | ·····*·(code) | 136 | ·····*·(code) |
137 | ·····*···<link·rel="stylesheet"·href="/path/to/default/style.css"··type="text/css"> | 137 | ·····*···<link·rel="stylesheet"·href="/path/to/default/style.css"··type="text/css"> |
138 | ·····*·(end·code) | 138 | ·····*·(end·code) |
139 | ·····*/ | 139 | ·····*/ |
140 | ····ImgPath:·'' | 140 | ····ImgPath:·'' |
141 | }; | 141 | }; |
142 | /*·====================================================================== | 142 | /*·====================================================================== |
143 | ····OpenLayers/BaseTypes/Class.js | ||
144 | ···======================================================================·*/ | ||
145 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | ||
146 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | ||
147 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | ||
148 | ·*·full·text·of·the·license.·*/ | ||
149 | /** | ||
150 | ·*·@requires·OpenLayers/SingleFile.js | ||
151 | ·*/ | ||
152 | /** | ||
153 | ·*·Constructor:·OpenLayers.Class | ||
154 | ·*·Base·class·used·to·construct·all·other·classes.·Includes·support·for· | ||
155 | ·*·····multiple·inheritance.· | ||
156 | ·*····· | ||
157 | ·*·This·constructor·is·new·in·OpenLayers·2.5.··At·OpenLayers·3.0,·the·old· | ||
158 | ·*·····syntax·for·creating·classes·and·dealing·with·inheritance· | ||
159 | ·*·····will·be·removed. | ||
160 | ·*· | ||
161 | ·*·To·create·a·new·OpenLayers-style·class,·use·the·following·syntax: | ||
162 | ·*·(code) | ||
163 | ·*·····var·MyClass·=·OpenLayers.Class(prototype); | ||
164 | ·*·(end) | ||
165 | ·* | ||
166 | ·*·To·create·a·new·OpenLayers-style·class·with·multiple·inheritance,·use·the | ||
167 | ·*·····following·syntax: | ||
168 | ·*·(code) | ||
169 | ·*·····var·MyClass·=·OpenLayers.Class(Class1,·Class2,·prototype); | ||
170 | ·*·(end) | ||
171 | ·*· | ||
172 | ·*·Note·that·instanceof·reflection·will·only·reveal·Class1·as·superclass. | ||
173 | ·* | ||
174 | ·*/ | ||
175 | OpenLayers.Class·=·function()·{ | ||
176 | ····var·len·=·arguments.length; | ||
177 | ····var·P·=·arguments[0]; | ||
178 | ····var·F·=·arguments[len·-·1]; | ||
179 | ····var·C·=·typeof·F.initialize·==·"function"·? | ||
180 | ········F.initialize·: | ||
181 | ········function()·{ | ||
182 | ············P.prototype.initialize.apply(this,·arguments); | ||
183 | ········}; | ||
184 | ····if·(len·>·1)·{ | ||
185 | ········var·newArgs·=·[C,·P].concat( | ||
186 | ············Array.prototype.slice.call(arguments).slice(1,·len·-·1),·F); | ||
187 | ········OpenLayers.inherit.apply(null,·newArgs); | ||
188 | ····}·else·{ | ||
189 | ········C.prototype·=·F; | ||
190 | ····} | ||
191 | ····return·C; | ||
192 | }; | ||
193 | /** | ||
194 | ·*·Function:·OpenLayers.inherit | ||
195 | ·* | ||
196 | ·*·Parameters: | ||
197 | ·*·C·-·{Object}·the·class·that·inherits | ||
198 | ·*·P·-·{Object}·the·superclass·to·inherit·from | ||
199 | ·* | ||
200 | ·*·In·addition·to·the·mandatory·C·and·P·parameters,·an·arbitrary·number·of | ||
201 | ·*·objects·can·be·passed,·which·will·extend·C. | ||
202 | ·*/ | ||
203 | OpenLayers.inherit·=·function(C,·P)·{ | ||
204 | ····var·F·=·function()·{}; | ||
205 | ····F.prototype·=·P.prototype; | ||
206 | ····C.prototype·=·new·F; | ||
207 | ····var·i,·l,·o; | ||
208 | ····for·(i·=·2,·l·=·arguments.length;·i·<·l;·i++)·{ | ||
209 | ········o·=·arguments[i]; | ||
210 | ········if·(typeof·o·===·"function")·{ | ||
211 | ············o·=·o.prototype; | ||
212 | ········} | ||
213 | ········OpenLayers.Util.extend(C.prototype,·o); | ||
214 | ····} | ||
215 | }; | ||
216 | /** | ||
217 | ·*·APIFunction:·extend | ||
218 | ·*·Copy·all·properties·of·a·source·object·to·a·destination·object.··Modifies | ||
219 | ·*·····the·passed·in·destination·object.··Any·properties·on·the·source·object | ||
220 | ·*·····that·are·set·to·undefined·will·not·be·(re)set·on·the·destination·object. | ||
221 | ·* | ||
222 | ·*·Parameters: | ||
223 | ·*·destination·-·{Object}·The·object·that·will·be·modified | ||
224 | ·*·source·-·{Object}·The·object·with·properties·to·be·set·on·the·destination | ||
225 | ·* | ||
226 | ·*·Returns: | ||
227 | ·*·{Object}·The·destination·object. | ||
228 | ·*/ | ||
229 | OpenLayers.Util·=·OpenLayers.Util·||·{}; | ||
230 | OpenLayers.Util.extend·=·function(destination,·source)·{ | ||
231 | ····destination·=·destination·||·{}; | ||
232 | ····if·(source)·{ | ||
233 | ········for·(var·property·in·source)·{ | ||
234 | ············var·value·=·source[property]; | ||
235 | ············if·(value·!==·undefined)·{ | ||
236 | ················destination[property]·=·value; | ||
237 | ············} | ||
238 | ········} | ||
239 | ········/** | ||
240 | ·········*·IE·doesn't·include·the·toString·property·when·iterating·over·an·object's | ||
241 | ·········*·properties·with·the·for(property·in·object)·syntax.··Explicitly·check·if | ||
242 | ·········*·the·source·has·its·own·toString·property. | ||
243 | ·········*/ | ||
244 | ········/* | ||
245 | ·········*·FF/Windows·<·2.0.0.13·reports·"Illegal·operation·on·WrappedNative | ||
246 | ·········*·prototype·object"·when·calling·hawOwnProperty·if·the·source·object | ||
247 | ·········*·is·an·instance·of·window.Event. | ||
248 | ·········*/ | ||
249 | ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&& | ||
250 | ············source·instanceof·window.Event; | ||
251 | ········if·(!sourceIsEvt·&& | ||
Max diff block lines reached; 3864531/3868886 bytes (99.89%) of diff not shown. |
Offset 263, 449 lines modified | Offset 263, 14 lines modified | ||
263 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ | 263 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ |
264 | ············destination.toString·=·source.toString; | 264 | ············destination.toString·=·source.toString; |
265 | ········} | 265 | ········} |
266 | ····} | 266 | ····} |
267 | ····return·destination; | 267 | ····return·destination; |
268 | }; | 268 | }; |
269 | /*·====================================================================== | 269 | /*·====================================================================== |
270 | ····OpenLayers/Util/vendorPrefix.js | ||
271 | ···======================================================================·*/ | ||
272 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | ||
273 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | ||
274 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | ||
275 | ·*·full·text·of·the·license.·*/ | ||
276 | /** | ||
277 | ·*·@requires·OpenLayers/SingleFile.js | ||
278 | ·*/ | ||
279 | OpenLayers.Util·=·OpenLayers.Util·||·{}; | ||
280 | /** | ||
281 | ·*·Namespace:·OpenLayers.Util.vendorPrefix | ||
282 | ·*·A·collection·of·utility·functions·to·detect·vendor·prefixed·features | ||
283 | ·*/ | ||
284 | OpenLayers.Util.vendorPrefix·=·(function()·{ | ||
285 | ····"use·strict"; | ||
286 | ····var·VENDOR_PREFIXES·=·["",·"O",·"ms",·"Moz",·"Webkit"], | ||
287 | ········divStyle·=·document.createElement("div").style, | ||
288 | ········cssCache·=·{}, | ||
289 | ········jsCache·=·{}; | ||
290 | ····/** | ||
291 | ·····*·Function:·domToCss | ||
292 | ·····*·Converts·a·upper·camel·case·DOM·style·property·name·to·a·CSS·property | ||
293 | ·····*······i.e.·transformOrigin·->·transform-origin | ||
294 | ·····*······or···WebkitTransformOrigin·->·-webkit-transform-origin | ||
295 | ·····* | ||
296 | ·····*·Parameters: | ||
297 | ·····*·prefixedDom·-·{String}·The·property·to·convert | ||
298 | ·····* | ||
299 | ·····*·Returns: | ||
300 | ·····*·{String}·The·CSS·property | ||
301 | ·····*/ | ||
302 | ····function·domToCss(prefixedDom)·{ | ||
303 | ········if·(!prefixedDom)·{ | ||
304 | ············return·null; | ||
305 | ········} | ||
306 | ········return·prefixedDom. | ||
307 | ········replace(/([A-Z])/g,·function(c)·{ | ||
308 | ············return·"-"·+·c.toLowerCase(); | ||
309 | ········}). | ||
310 | ········replace(/^ms-/,·"-ms-"); | ||
311 | ····} | ||
312 | ····/** | ||
313 | ·····*·APIMethod:·css | ||
314 | ·····*·Detect·which·property·is·used·for·a·CSS·property | ||
315 | ·····* | ||
316 | ·····*·Parameters: | ||
317 | ·····*·property·-·{String}·The·standard·(unprefixed)·CSS·property·name | ||
318 | ·····* | ||
319 | ·····*·Returns: | ||
320 | ·····*·{String}·The·standard·CSS·property,·prefixed·property·or·null·if·not | ||
321 | ·····*··········supported | ||
322 | ·····*/ | ||
323 | ····function·css(property)·{ | ||
324 | ········if·(cssCache[property]·===·undefined)·{ | ||
325 | ············var·domProperty·=·property. | ||
326 | ············replace(/(-[\s\S])/g,·function(c)·{ | ||
327 | ················return·c.charAt(1).toUpperCase(); | ||
328 | ············}); | ||
329 | ············var·prefixedDom·=·style(domProperty); | ||
330 | ············cssCache[property]·=·domToCss(prefixedDom); | ||
331 | ········} | ||
332 | ········return·cssCache[property]; | ||
333 | ····} | ||
334 | ····/** | ||
335 | ·····*·APIMethod:·js | ||
336 | ·····*·Detect·which·property·is·used·for·a·JS·property/method | ||
337 | ·····* | ||
338 | ·····*·Parameters: | ||
339 | ·····*·obj·-·{Object}·The·object·to·test·on | ||
340 | ·····*·property·-·{String}·The·standard·(unprefixed)·JS·property·name | ||
341 | ·····* | ||
342 | ·····*·Returns: | ||
343 | ·····*·{String}·The·standard·JS·property,·prefixed·property·or·null·if·not | ||
344 | ·····*··········supported | ||
345 | ·····*/ | ||
346 | ····function·js(obj,·property)·{ | ||
347 | ········if·(jsCache[property]·===·undefined)·{ | ||
348 | ············var·tmpProp, | ||
349 | ················i·=·0, | ||
350 | ················l·=·VENDOR_PREFIXES.length, | ||
351 | ················prefix, | ||
352 | ················isStyleObj·=·(typeof·obj.cssText·!==·"undefined"); | ||
353 | ············jsCache[property]·=·null; | ||
354 | ············for·(;·i·<·l;·i++)·{ | ||
355 | ················prefix·=·VENDOR_PREFIXES[i]; | ||
356 | ················if·(prefix)·{ | ||
357 | ····················if·(!isStyleObj)·{ | ||
358 | ························//·js·prefix·should·be·lower-case,·while·style | ||
359 | ························//·properties·have·upper·case·on·first·character | ||
360 | ························prefix·=·prefix.toLowerCase(); | ||
361 | ····················} | ||
362 | ····················tmpProp·=·prefix·+·property.charAt(0).toUpperCase()·+·property.slice(1); | ||
363 | ················}·else·{ | ||
364 | ····················tmpProp·=·property; | ||
365 | ················} | ||
366 | ················if·(obj[tmpProp]·!==·undefined)·{ | ||
367 | ····················jsCache[property]·=·tmpProp; | ||
368 | ····················break; | ||
369 | ················} | ||
370 | ············} | ||
371 | ········} | ||
372 | ········return·jsCache[property]; | ||
373 | ····} | ||
374 | ····/** | ||
375 | ·····*·APIMethod:·style | ||
376 | ·····*·Detect·which·property·is·used·for·a·DOM·style·property | ||
377 | ·····* | ||
378 | ·····*·Parameters: | ||
Max diff block lines reached; 1624496/1637932 bytes (99.18%) of diff not shown. |
Offset 62, 204 lines modified | Offset 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.toString | 64 | ············destination.toString·=·source.toString |
65 | ········} | 65 | ········} |
66 | ····} | 66 | ····} |
67 | ····return·destination | 67 | ····return·destination |
68 | }; | 68 | }; |
69 | OpenLayers.Util·=·OpenLayers.Util·||·{}; | ||
70 | OpenLayers.Util.vendorPrefix·=·function()·{ | ||
71 | ····"use·strict"; | ||
72 | ····var·VENDOR_PREFIXES·=·["",·"O",·"ms",·"Moz",·"Webkit"], | ||
73 | ········divStyle·=·document.createElement("div").style, | ||
74 | ········cssCache·=·{}, | ||
75 | ········jsCache·=·{}; | ||
76 | ····function·domToCss(prefixedDom)·{ | ||
77 | ········if·(!prefixedDom)·{ | ||
78 | ············return·null | ||
79 | ········} | ||
80 | ········return·prefixedDom.replace(/([A-Z])/g,·function(c)·{ | ||
81 | ············return·"-"·+·c.toLowerCase() | ||
82 | ········}).replace(/^ms-/,·"-ms-") | ||
83 | ····} | ||
84 | ····function·css(property)·{ | ||
85 | ········if·(cssCache[property]·===·undefined)·{ | ||
86 | ············var·domProperty·=·property.replace(/(-[\s\S])/g,·function(c)·{ | ||
87 | ················return·c.charAt(1).toUpperCase() | ||
88 | ············}); | ||
89 | ············var·prefixedDom·=·style(domProperty); | ||
90 | ············cssCache[property]·=·domToCss(prefixedDom) | ||
91 | ········} | ||
92 | ········return·cssCache[property] | ||
93 | ····} | ||
94 | ····function·js(obj,·property)·{ | ||
95 | ········if·(jsCache[property]·===·undefined)·{ | ||
96 | ············var·tmpProp,·i·=·0, | ||
97 | ················l·=·VENDOR_PREFIXES.length, | ||
98 | ················prefix,·isStyleObj·=·typeof·obj.cssText·!==·"undefined"; | ||
99 | ············jsCache[property]·=·null; | ||
100 | ············for·(;·i·<·l;·i++)·{ | ||
101 | ················prefix·=·VENDOR_PREFIXES[i]; | ||
102 | ················if·(prefix)·{ | ||
103 | ····················if·(!isStyleObj)·{ | ||
104 | ························prefix·=·prefix.toLowerCase() | ||
105 | ····················} | ||
106 | ····················tmpProp·=·prefix·+·property.charAt(0).toUpperCase()·+·property.slice(1) | ||
107 | ················}·else·{ | ||
108 | ····················tmpProp·=·property | ||
109 | ················} | ||
110 | ················if·(obj[tmpProp]·!==·undefined)·{ | ||
111 | ····················jsCache[property]·=·tmpProp; | ||
112 | ····················break | ||
113 | ················} | ||
114 | ············} | ||
115 | ········} | ||
116 | ········return·jsCache[property] | ||
117 | ····} | ||
118 | ····function·style(property)·{ | ||
119 | ········return·js(divStyle,·property) | ||
120 | ····} | ||
121 | ····return·{ | ||
122 | ········css:·css, | ||
123 | ········js:·js, | ||
124 | ········style:·style, | ||
125 | ········cssCache:·cssCache, | ||
126 | ········jsCache:·jsCache | ||
127 | ····} | ||
128 | }(); | ||
129 | OpenLayers.Animation·=·function(window)·{ | ||
130 | ····var·requestAnimationFrame·=·OpenLayers.Util.vendorPrefix.js(window,·"requestAnimationFrame"); | ||
131 | ····var·isNative·=·!!requestAnimationFrame; | ||
132 | ····var·requestFrame·=·function()·{ | ||
133 | ········var·request·=·window[requestAnimationFrame]·||·function(callback,·element)·{ | ||
134 | ············window.setTimeout(callback,·16) | ||
135 | ········}; | ||
136 | ········return·function(callback,·element)·{ | ||
137 | ············request.apply(window,·[callback,·element]) | ||
138 | ········} | ||
139 | ····}(); | ||
140 | ····var·counter·=·0; | ||
141 | ····var·loops·=·{}; | ||
142 | ····function·start(callback,·duration,·element)·{ | ||
143 | ········duration·=·duration·>·0·?·duration·:·Number.POSITIVE_INFINITY; | ||
144 | ········var·id·=·++counter; | ||
145 | ········var·start·=·+new·Date; | ||
146 | ········loops[id]·=·function()·{ | ||
147 | ············if·(loops[id]·&&·+new·Date·-·start·<=·duration)·{ | ||
148 | ················callback(); | ||
149 | ················if·(loops[id])·{ | ||
150 | ····················requestFrame(loops[id],·element) | ||
151 | ················} | ||
152 | ············}·else·{ | ||
153 | ················delete·loops[id] | ||
154 | ············} | ||
155 | ········}; | ||
156 | ········requestFrame(loops[id],·element); | ||
157 | ········return·id | ||
158 | ····} | ||
159 | ····function·stop(id)·{ | ||
160 | ········delete·loops[id] | ||
161 | ····} | ||
162 | ····return·{ | ||
163 | ········isNative:·isNative, | ||
164 | ········requestFrame:·requestFrame, | ||
165 | ········start:·start, | ||
166 | ········stop:·stop | ||
167 | ····} | ||
168 | }(window); | ||
169 | OpenLayers.Kinetic·=·OpenLayers.Class({ | ||
170 | ····threshold:·0, | ||
171 | ····deceleration:·.0035, | ||
172 | ····nbPoints:·100, | ||
173 | ····delay:·200, | ||
174 | ····points:·undefined, | ||
175 | ····timerId:·undefined, | ||
176 | ····initialize:·function(options)·{ | ||
177 | ········OpenLayers.Util.extend(this,·options) | ||
178 | ····}, | ||
179 | ····begin:·function()·{ | ||
180 | ········OpenLayers.Animation.stop(this.timerId); | ||
181 | ········this.timerId·=·undefined; | ||
182 | ········this.points·=·[] | ||
Max diff block lines reached; 542723/549035 bytes (98.85%) of diff not shown. |
Offset 17, 14 lines modified | Offset 17, 59 lines modified | ||
17 | ········} | 17 | ········} |
18 | ········return·function()·{ | 18 | ········return·function()·{ |
19 | ············return·l | 19 | ············return·l |
20 | ········} | 20 | ········} |
21 | ····}(), | 21 | ····}(), |
22 | ····ImgPath:·"" | 22 | ····ImgPath:·"" |
23 | }; | 23 | }; |
24 | OpenLayers.Class·=·function()·{ | ||
25 | ····var·len·=·arguments.length; | ||
26 | ····var·P·=·arguments[0]; | ||
27 | ····var·F·=·arguments[len·-·1]; | ||
28 | ····var·C·=·typeof·F.initialize·==·"function"·?·F.initialize·:·function()·{ | ||
29 | ········P.prototype.initialize.apply(this,·arguments) | ||
30 | ····}; | ||
31 | ····if·(len·>·1)·{ | ||
32 | ········var·newArgs·=·[C,·P].concat(Array.prototype.slice.call(arguments).slice(1,·len·-·1),·F); | ||
33 | ········OpenLayers.inherit.apply(null,·newArgs) | ||
34 | ····}·else·{ | ||
35 | ········C.prototype·=·F | ||
36 | ····} | ||
37 | ····return·C | ||
38 | }; | ||
39 | OpenLayers.inherit·=·function(C,·P)·{ | ||
40 | ····var·F·=·function()·{}; | ||
41 | ····F.prototype·=·P.prototype; | ||
42 | ····C.prototype·=·new·F; | ||
43 | ····var·i,·l,·o; | ||
44 | ····for·(i·=·2,·l·=·arguments.length;·i·<·l;·i++)·{ | ||
45 | ········o·=·arguments[i]; | ||
46 | ········if·(typeof·o·===·"function")·{ | ||
47 | ············o·=·o.prototype | ||
48 | ········} | ||
49 | ········OpenLayers.Util.extend(C.prototype,·o) | ||
50 | ····} | ||
51 | }; | ||
52 | OpenLayers.Util·=·OpenLayers.Util·||·{}; | ||
53 | OpenLayers.Util.extend·=·function(destination,·source)·{ | ||
54 | ····destination·=·destination·||·{}; | ||
55 | ····if·(source)·{ | ||
56 | ········for·(var·property·in·source)·{ | ||
57 | ············var·value·=·source[property]; | ||
58 | ············if·(value·!==·undefined)·{ | ||
59 | ················destination[property]·=·value | ||
60 | ············} | ||
61 | ········} | ||
62 | ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&·source·instanceof·window.Event; | ||
63 | ········if·(!sourceIsEvt·&&·source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ | ||
64 | ············destination.toString·=·source.toString | ||
65 | ········} | ||
66 | ····} | ||
67 | ····return·destination | ||
68 | }; | ||
24 | OpenLayers.String·=·{ | 69 | OpenLayers.String·=·{ |
25 | ····startsWith:·function(str,·sub)·{ | 70 | ····startsWith:·function(str,·sub)·{ |
26 | ········return·str.indexOf(sub)·==·0 | 71 | ········return·str.indexOf(sub)·==·0 |
27 | ····}, | 72 | ····}, |
28 | ····contains:·function(str,·sub)·{ | 73 | ····contains:·function(str,·sub)·{ |
29 | ········return·str.indexOf(sub)·!=·-1 | 74 | ········return·str.indexOf(sub)·!=·-1 |
30 | ····}, | 75 | ····}, |
Offset 167, 59 lines modified | Offset 212, 14 lines modified | ||
167 | ····················} | 212 | ····················} |
168 | ················} | 213 | ················} |
169 | ············} | 214 | ············} |
170 | ········} | 215 | ········} |
171 | ········return·selected | 216 | ········return·selected |
172 | ····} | 217 | ····} |
173 | }; | 218 | }; |
174 | OpenLayers.Class·=·function()·{ | ||
175 | ····var·len·=·arguments.length; | ||
176 | ····var·P·=·arguments[0]; | ||
177 | ····var·F·=·arguments[len·-·1]; | ||
178 | ····var·C·=·typeof·F.initialize·==·"function"·?·F.initialize·:·function()·{ | ||
179 | ········P.prototype.initialize.apply(this,·arguments) | ||
180 | ····}; | ||
181 | ····if·(len·>·1)·{ | ||
182 | ········var·newArgs·=·[C,·P].concat(Array.prototype.slice.call(arguments).slice(1,·len·-·1),·F); | ||
183 | ········OpenLayers.inherit.apply(null,·newArgs) | ||
184 | ····}·else·{ | ||
185 | ········C.prototype·=·F | ||
186 | ····} | ||
187 | ····return·C | ||
188 | }; | ||
189 | OpenLayers.inherit·=·function(C,·P)·{ | ||
190 | ····var·F·=·function()·{}; | ||
191 | ····F.prototype·=·P.prototype; | ||
192 | ····C.prototype·=·new·F; | ||
193 | ····var·i,·l,·o; | ||
194 | ····for·(i·=·2,·l·=·arguments.length;·i·<·l;·i++)·{ | ||
195 | ········o·=·arguments[i]; | ||
196 | ········if·(typeof·o·===·"function")·{ | ||
197 | ············o·=·o.prototype | ||
198 | ········} | ||
199 | ········OpenLayers.Util.extend(C.prototype,·o) | ||
200 | ····} | ||
201 | }; | ||
202 | OpenLayers.Util·=·OpenLayers.Util·||·{}; | ||
203 | OpenLayers.Util.extend·=·function(destination,·source)·{ | ||
204 | ····destination·=·destination·||·{}; | ||
205 | ····if·(source)·{ | ||
206 | ········for·(var·property·in·source)·{ | ||
207 | ············var·value·=·source[property]; | ||
208 | ············if·(value·!==·undefined)·{ | ||
209 | ················destination[property]·=·value | ||
210 | ············} | ||
211 | ········} | ||
212 | ········var·sourceIsEvt·=·typeof·window.Event·==·"function"·&&·source·instanceof·window.Event; | ||
213 | ········if·(!sourceIsEvt·&&·source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ | ||
214 | ············destination.toString·=·source.toString | ||
215 | ········} | ||
216 | ····} | ||
217 | ····return·destination | ||
218 | }; | ||
219 | OpenLayers.Bounds·=·OpenLayers.Class({ | 219 | OpenLayers.Bounds·=·OpenLayers.Class({ |
220 | ····left:·null, | 220 | ····left:·null, |
221 | ····bottom:·null, | 221 | ····bottom:·null, |
222 | ····right:·null, | 222 | ····right:·null, |
223 | ····top:·null, | 223 | ····top:·null, |
224 | ····centerLonLat:·null, | 224 | ····centerLonLat:·null, |
225 | ····initialize:·function(left,·bottom,·right,·top)·{ | 225 | ····initialize:·function(left,·bottom,·right,·top)·{ |
Offset 1605, 311 lines modified | Offset 1605, 624 lines modified | ||
1605 | ····if·(axis·==·"lon")·{ | 1605 | ····if·(axis·==·"lon")·{ |
1606 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("W")·:·OpenLayers.i18n("E") | 1606 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("W")·:·OpenLayers.i18n("E") |
1607 | ····}·else·{ | 1607 | ····}·else·{ |
1608 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("S")·:·OpenLayers.i18n("N") | 1608 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("S")·:·OpenLayers.i18n("N") |
1609 | ····} | 1609 | ····} |
1610 | ····return·str | 1610 | ····return·str |
1611 | }; | 1611 | }; |
Max diff block lines reached; 1448238/1453089 bytes (99.67%) of diff not shown. |
Offset 263, 449 lines modified | Offset 263, 14 lines modified | ||
263 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ | 263 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ |
264 | ············destination.toString·=·source.toString; | 264 | ············destination.toString·=·source.toString; |
265 | ········} | 265 | ········} |
266 | ····} | 266 | ····} |
267 | ····return·destination; | 267 | ····return·destination; |
268 | }; | 268 | }; |
269 | /*·====================================================================== | 269 | /*·====================================================================== |
270 | ····OpenLayers/Util/vendorPrefix.js | ||
271 | ···======================================================================·*/ | ||
272 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | ||
273 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | ||
274 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | ||
275 | ·*·full·text·of·the·license.·*/ | ||
276 | /** | ||
277 | ·*·@requires·OpenLayers/SingleFile.js | ||
278 | ·*/ | ||
279 | OpenLayers.Util·=·OpenLayers.Util·||·{}; | ||
280 | /** | ||
281 | ·*·Namespace:·OpenLayers.Util.vendorPrefix | ||
282 | ·*·A·collection·of·utility·functions·to·detect·vendor·prefixed·features | ||
283 | ·*/ | ||
284 | OpenLayers.Util.vendorPrefix·=·(function()·{ | ||
285 | ····"use·strict"; | ||
286 | ····var·VENDOR_PREFIXES·=·["",·"O",·"ms",·"Moz",·"Webkit"], | ||
287 | ········divStyle·=·document.createElement("div").style, | ||
288 | ········cssCache·=·{}, | ||
289 | ········jsCache·=·{}; | ||
290 | ····/** | ||
291 | ·····*·Function:·domToCss | ||
292 | ·····*·Converts·a·upper·camel·case·DOM·style·property·name·to·a·CSS·property | ||
293 | ·····*······i.e.·transformOrigin·->·transform-origin | ||
294 | ·····*······or···WebkitTransformOrigin·->·-webkit-transform-origin | ||
295 | ·····* | ||
296 | ·····*·Parameters: | ||
297 | ·····*·prefixedDom·-·{String}·The·property·to·convert | ||
298 | ·····* | ||
299 | ·····*·Returns: | ||
300 | ·····*·{String}·The·CSS·property | ||
301 | ·····*/ | ||
302 | ····function·domToCss(prefixedDom)·{ | ||
303 | ········if·(!prefixedDom)·{ | ||
304 | ············return·null; | ||
305 | ········} | ||
306 | ········return·prefixedDom. | ||
307 | ········replace(/([A-Z])/g,·function(c)·{ | ||
308 | ············return·"-"·+·c.toLowerCase(); | ||
309 | ········}). | ||
310 | ········replace(/^ms-/,·"-ms-"); | ||
311 | ····} | ||
312 | ····/** | ||
313 | ·····*·APIMethod:·css | ||
314 | ·····*·Detect·which·property·is·used·for·a·CSS·property | ||
315 | ·····* | ||
316 | ·····*·Parameters: | ||
317 | ·····*·property·-·{String}·The·standard·(unprefixed)·CSS·property·name | ||
318 | ·····* | ||
319 | ·····*·Returns: | ||
320 | ·····*·{String}·The·standard·CSS·property,·prefixed·property·or·null·if·not | ||
321 | ·····*··········supported | ||
322 | ·····*/ | ||
323 | ····function·css(property)·{ | ||
324 | ········if·(cssCache[property]·===·undefined)·{ | ||
325 | ············var·domProperty·=·property. | ||
326 | ············replace(/(-[\s\S])/g,·function(c)·{ | ||
327 | ················return·c.charAt(1).toUpperCase(); | ||
328 | ············}); | ||
329 | ············var·prefixedDom·=·style(domProperty); | ||
330 | ············cssCache[property]·=·domToCss(prefixedDom); | ||
331 | ········} | ||
332 | ········return·cssCache[property]; | ||
333 | ····} | ||
334 | ····/** | ||
335 | ·····*·APIMethod:·js | ||
336 | ·····*·Detect·which·property·is·used·for·a·JS·property/method | ||
337 | ·····* | ||
338 | ·····*·Parameters: | ||
339 | ·····*·obj·-·{Object}·The·object·to·test·on | ||
340 | ·····*·property·-·{String}·The·standard·(unprefixed)·JS·property·name | ||
341 | ·····* | ||
342 | ·····*·Returns: | ||
343 | ·····*·{String}·The·standard·JS·property,·prefixed·property·or·null·if·not | ||
344 | ·····*··········supported | ||
345 | ·····*/ | ||
346 | ····function·js(obj,·property)·{ | ||
347 | ········if·(jsCache[property]·===·undefined)·{ | ||
348 | ············var·tmpProp, | ||
349 | ················i·=·0, | ||
350 | ················l·=·VENDOR_PREFIXES.length, | ||
351 | ················prefix, | ||
352 | ················isStyleObj·=·(typeof·obj.cssText·!==·"undefined"); | ||
353 | ············jsCache[property]·=·null; | ||
354 | ············for·(;·i·<·l;·i++)·{ | ||
355 | ················prefix·=·VENDOR_PREFIXES[i]; | ||
356 | ················if·(prefix)·{ | ||
357 | ····················if·(!isStyleObj)·{ | ||
358 | ························//·js·prefix·should·be·lower-case,·while·style | ||
359 | ························//·properties·have·upper·case·on·first·character | ||
360 | ························prefix·=·prefix.toLowerCase(); | ||
361 | ····················} | ||
362 | ····················tmpProp·=·prefix·+·property.charAt(0).toUpperCase()·+·property.slice(1); | ||
363 | ················}·else·{ | ||
364 | ····················tmpProp·=·property; | ||
365 | ················} | ||
366 | ················if·(obj[tmpProp]·!==·undefined)·{ | ||
367 | ····················jsCache[property]·=·tmpProp; | ||
368 | ····················break; | ||
369 | ················} | ||
370 | ············} | ||
371 | ········} | ||
372 | ········return·jsCache[property]; | ||
373 | ····} | ||
374 | ····/** | ||
375 | ·····*·APIMethod:·style | ||
376 | ·····*·Detect·which·property·is·used·for·a·DOM·style·property | ||
377 | ·····* | ||
378 | ·····*·Parameters: | ||
Max diff block lines reached; 967341/980777 bytes (98.63%) of diff not shown. |
Offset 62, 204 lines modified | Offset 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.toString | 64 | ············destination.toString·=·source.toString |
65 | ········} | 65 | ········} |
66 | ····} | 66 | ····} |
67 | ····return·destination | 67 | ····return·destination |
68 | }; | 68 | }; |
69 | OpenLayers.Util·=·OpenLayers.Util·||·{}; | ||
70 | OpenLayers.Util.vendorPrefix·=·function()·{ | ||
71 | ····"use·strict"; | ||
72 | ····var·VENDOR_PREFIXES·=·["",·"O",·"ms",·"Moz",·"Webkit"], | ||
73 | ········divStyle·=·document.createElement("div").style, | ||
74 | ········cssCache·=·{}, | ||
75 | ········jsCache·=·{}; | ||
76 | ····function·domToCss(prefixedDom)·{ | ||
77 | ········if·(!prefixedDom)·{ | ||
78 | ············return·null | ||
79 | ········} | ||
80 | ········return·prefixedDom.replace(/([A-Z])/g,·function(c)·{ | ||
81 | ············return·"-"·+·c.toLowerCase() | ||
82 | ········}).replace(/^ms-/,·"-ms-") | ||
83 | ····} | ||
84 | ····function·css(property)·{ | ||
85 | ········if·(cssCache[property]·===·undefined)·{ | ||
86 | ············var·domProperty·=·property.replace(/(-[\s\S])/g,·function(c)·{ | ||
87 | ················return·c.charAt(1).toUpperCase() | ||
88 | ············}); | ||
89 | ············var·prefixedDom·=·style(domProperty); | ||
90 | ············cssCache[property]·=·domToCss(prefixedDom) | ||
91 | ········} | ||
92 | ········return·cssCache[property] | ||
93 | ····} | ||
94 | ····function·js(obj,·property)·{ | ||
95 | ········if·(jsCache[property]·===·undefined)·{ | ||
96 | ············var·tmpProp,·i·=·0, | ||
97 | ················l·=·VENDOR_PREFIXES.length, | ||
98 | ················prefix,·isStyleObj·=·typeof·obj.cssText·!==·"undefined"; | ||
99 | ············jsCache[property]·=·null; | ||
100 | ············for·(;·i·<·l;·i++)·{ | ||
101 | ················prefix·=·VENDOR_PREFIXES[i]; | ||
102 | ················if·(prefix)·{ | ||
103 | ····················if·(!isStyleObj)·{ | ||
104 | ························prefix·=·prefix.toLowerCase() | ||
105 | ····················} | ||
106 | ····················tmpProp·=·prefix·+·property.charAt(0).toUpperCase()·+·property.slice(1) | ||
107 | ················}·else·{ | ||
108 | ····················tmpProp·=·property | ||
109 | ················} | ||
110 | ················if·(obj[tmpProp]·!==·undefined)·{ | ||
111 | ····················jsCache[property]·=·tmpProp; | ||
112 | ····················break | ||
113 | ················} | ||
114 | ············} | ||
115 | ········} | ||
116 | ········return·jsCache[property] | ||
117 | ····} | ||
118 | ····function·style(property)·{ | ||
119 | ········return·js(divStyle,·property) | ||
120 | ····} | ||
121 | ····return·{ | ||
122 | ········css:·css, | ||
123 | ········js:·js, | ||
124 | ········style:·style, | ||
125 | ········cssCache:·cssCache, | ||
126 | ········jsCache:·jsCache | ||
127 | ····} | ||
128 | }(); | ||
129 | OpenLayers.Animation·=·function(window)·{ | ||
130 | ····var·requestAnimationFrame·=·OpenLayers.Util.vendorPrefix.js(window,·"requestAnimationFrame"); | ||
131 | ····var·isNative·=·!!requestAnimationFrame; | ||
132 | ····var·requestFrame·=·function()·{ | ||
133 | ········var·request·=·window[requestAnimationFrame]·||·function(callback,·element)·{ | ||
134 | ············window.setTimeout(callback,·16) | ||
135 | ········}; | ||
136 | ········return·function(callback,·element)·{ | ||
137 | ············request.apply(window,·[callback,·element]) | ||
138 | ········} | ||
139 | ····}(); | ||
140 | ····var·counter·=·0; | ||
141 | ····var·loops·=·{}; | ||
142 | ····function·start(callback,·duration,·element)·{ | ||
143 | ········duration·=·duration·>·0·?·duration·:·Number.POSITIVE_INFINITY; | ||
144 | ········var·id·=·++counter; | ||
145 | ········var·start·=·+new·Date; | ||
146 | ········loops[id]·=·function()·{ | ||
147 | ············if·(loops[id]·&&·+new·Date·-·start·<=·duration)·{ | ||
148 | ················callback(); | ||
149 | ················if·(loops[id])·{ | ||
150 | ····················requestFrame(loops[id],·element) | ||
151 | ················} | ||
152 | ············}·else·{ | ||
153 | ················delete·loops[id] | ||
154 | ············} | ||
155 | ········}; | ||
156 | ········requestFrame(loops[id],·element); | ||
157 | ········return·id | ||
158 | ····} | ||
159 | ····function·stop(id)·{ | ||
160 | ········delete·loops[id] | ||
161 | ····} | ||
162 | ····return·{ | ||
163 | ········isNative:·isNative, | ||
164 | ········requestFrame:·requestFrame, | ||
165 | ········start:·start, | ||
166 | ········stop:·stop | ||
167 | ····} | ||
168 | }(window); | ||
169 | OpenLayers.Kinetic·=·OpenLayers.Class({ | ||
170 | ····threshold:·0, | ||
171 | ····deceleration:·.0035, | ||
172 | ····nbPoints:·100, | ||
173 | ····delay:·200, | ||
174 | ····points:·undefined, | ||
175 | ····timerId:·undefined, | ||
176 | ····initialize:·function(options)·{ | ||
177 | ········OpenLayers.Util.extend(this,·options) | ||
178 | ····}, | ||
179 | ····begin:·function()·{ | ||
180 | ········OpenLayers.Animation.stop(this.timerId); | ||
181 | ········this.timerId·=·undefined; | ||
182 | ········this.points·=·[] | ||
Max diff block lines reached; 396490/402802 bytes (98.43%) of diff not shown. |
Offset 33176, 202 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/Kinetic.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/Animation.js | ||
33191 | ·*/ | ||
33192 | OpenLayers.Kinetic·=·OpenLayers.Class({ | ||
33193 | ····/** | ||
33194 | ·····*·Property:·threshold | ||
33195 | ·····*·In·most·cases·changing·the·threshold·isn't·needed. | ||
33196 | ·····*·In·px/ms,·default·to·0. | ||
33197 | ·····*/ | ||
33198 | ····threshold:·0, | ||
33199 | ····/** | ||
33200 | ·····*·Property:·deceleration | ||
33201 | ·····*·{Float}·the·deseleration·in·px/ms²,·default·to·0.0035. | ||
33202 | ·····*/ | ||
33203 | ····deceleration:·0.0035, | ||
33204 | ····/** | ||
33205 | ·····*·Property:·nbPoints | ||
33206 | ·····*·{Integer}·the·number·of·points·we·use·to·calculate·the·kinetic | ||
33207 | ·····*·initial·values. | ||
33208 | ·····*/ | ||
33209 | ····nbPoints:·100, | ||
33210 | ····/** | ||
33211 | ·····*·Property:·delay | ||
33212 | ·····*·{Float}·time·to·consider·to·calculate·the·kinetic·initial·values. | ||
33213 | ·····*·In·ms,·default·to·200. | ||
33214 | ·····*/ | ||
33215 | ····delay:·200, | ||
33216 | ····/** | ||
33217 | ·····*·Property:·points | ||
33218 | ·····*·List·of·points·use·to·calculate·the·kinetic·initial·values. | ||
33219 | ·····*/ | ||
33220 | ····points:·undefined, | ||
33221 | ····/** | ||
33222 | ·····*·Property:·timerId | ||
33223 | ·····*·ID·of·the·timer. | ||
33224 | ·····*/ | ||
33225 | ····timerId:·undefined, | ||
33226 | ····/** | ||
33227 | ·····*·Constructor:·OpenLayers.Kinetic | ||
33228 | ·····* | ||
33229 | ·····*·Parameters: | ||
33230 | ·····*·options·-·{Object} | ||
33231 | ·····*/ | ||
33232 | ····initialize:·function(options)·{ | ||
33233 | ········OpenLayers.Util.extend(this,·options); | ||
33234 | ····}, | ||
33235 | ····/** | ||
33236 | ·····*·Method:·begin | ||
33237 | ·····*·Begins·the·dragging. | ||
33238 | ·····*/ | ||
33239 | ····begin:·function()·{ | ||
33240 | ········OpenLayers.Animation.stop(this.timerId); | ||
33241 | ········this.timerId·=·undefined; | ||
33242 | ········this.points·=·[]; | ||
33243 | ····}, | ||
33244 | ····/** | ||
33245 | ·····*·Method:·update | ||
33246 | ·····*·Updates·during·the·dragging. | ||
33247 | ·····* | ||
33248 | ·····*·Parameters: | ||
33249 | ·····*·xy·-·{<OpenLayers.Pixel>}·The·new·position. | ||
33250 | ·····*/ | ||
33251 | ····update:·function(xy)·{ | ||
33252 | ········this.points.unshift({ | ||
33253 | ············xy:·xy, | ||
33254 | ············tick:·new·Date().getTime() | ||
33255 | ········}); | ||
33256 | ········if·(this.points.length·>·this.nbPoints)·{ | ||
33257 | ············this.points.pop(); | ||
33258 | ········} | ||
33259 | ····}, | ||
33260 | ····/** | ||
33261 | ·····*·Method:·end | ||
33262 | ·····*·Ends·the·dragging,·start·the·kinetic. | ||
33263 | ·····* | ||
33264 | ·····*·Parameters: | ||
33265 | ·····*·xy·-·{<OpenLayers.Pixel>}·The·last·position. | ||
33266 | ·····* | ||
33267 | ·····*·Returns: | ||
33268 | ·····*·{Object}·An·object·with·two·properties:·"speed",·and·"theta".·The | ||
33269 | ·····*·····"speed"·and·"theta"·values·are·to·be·passed·to·the·move· | ||
33270 | ·····*·····function·when·starting·the·animation. | ||
33271 | ·····*/ | ||
33272 | ····end:·function(xy)·{ | ||
33273 | ········var·last,·now·=·new·Date().getTime(); | ||
33274 | ········for·(var·i·=·0,·l·=·this.points.length,·point;·i·<·l;·i++)·{ | ||
33275 | ············point·=·this.points[i]; | ||
33276 | ············if·(now·-·point.tick·>·this.delay)·{ | ||
33277 | ················break; | ||
33278 | ············} | ||
33279 | ············last·=·point; | ||
33280 | ········} | ||
33281 | ········if·(!last)·{ | ||
33282 | ············return; | ||
33283 | ········} | ||
33284 | ········var·time·=·new·Date().getTime()·-·last.tick; | ||
33285 | ········var·dist·=·Math.sqrt(Math.pow(xy.x·-·last.xy.x,·2)·+ | ||
33286 | ············Math.pow(xy.y·-·last.xy.y,·2)); | ||
33287 | ········var·speed·=·dist·/·time; | ||
33288 | ········if·(speed·==·0·||·speed·<·this.threshold)·{ | ||
Max diff block lines reached; 3093198/3098589 bytes (99.83%) of diff not shown. |
Offset 13318, 98 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.Kinetic·=·OpenLayers.Class({ | ||
13326 | ····threshold:·0, | ||
13327 | ····deceleration:·.0035, | ||
13328 | ····nbPoints:·100, | ||
13329 | ····delay:·200, | ||
13330 | ····points:·undefined, | ||
13331 | ····timerId:·undefined, | ||
13332 | ····initialize:·function(options)·{ | ||
13333 | ········OpenLayers.Util.extend(this,·options) | ||
13334 | ····}, | ||
13335 | ····begin:·function()·{ | ||
13336 | ········OpenLayers.Animation.stop(this.timerId); | ||
13337 | ········this.timerId·=·undefined; | ||
13338 | ········this.points·=·[] | ||
13339 | ····}, | ||
13340 | ····update:·function(xy)·{ | ||
13341 | ········this.points.unshift({ | ||
13342 | ············xy:·xy, | ||
13343 | ············tick:·(new·Date).getTime() | ||
13344 | ········}); | ||
13345 | ········if·(this.points.length·>·this.nbPoints)·{ | ||
13346 | ············this.points.pop() | ||
13347 | ········} | ||
13348 | ····}, | ||
13349 | ····end:·function(xy)·{ | ||
13350 | ········var·last,·now·=·(new·Date).getTime(); | ||
13351 | ········for·(var·i·=·0,·l·=·this.points.length,·point;·i·<·l;·i++)·{ | ||
13352 | ············point·=·this.points[i]; | ||
13353 | ············if·(now·-·point.tick·>·this.delay)·{ | ||
13354 | ················break | ||
13355 | ············} | ||
13356 | ············last·=·point | ||
13357 | ········} | ||
13358 | ········if·(!last)·{ | ||
13359 | ············return | ||
13360 | ········} | ||
13361 | ········var·time·=·(new·Date).getTime()·-·last.tick; | ||
13362 | ········var·dist·=·Math.sqrt(Math.pow(xy.x·-·last.xy.x,·2)·+·Math.pow(xy.y·-·last.xy.y,·2)); | ||
13363 | ········var·speed·=·dist·/·time; | ||
13364 | ········if·(speed·==·0·||·speed·<·this.threshold)·{ | ||
13365 | ············return | ||
13366 | ········} | ||
13367 | ········var·theta·=·Math.asin((xy.y·-·last.xy.y)·/·dist); | ||
13368 | ········if·(last.xy.x·<=·xy.x)·{ | ||
13369 | ············theta·=·Math.PI·-·theta | ||
13370 | ········} | ||
13371 | ········return·{ | ||
13372 | ············speed:·speed, | ||
13373 | ············theta:·theta | ||
13374 | ········} | ||
13375 | ····}, | ||
13376 | ····move:·function(info,·callback)·{ | ||
13377 | ········var·v0·=·info.speed; | ||
13378 | ········var·fx·=·Math.cos(info.theta); | ||
13379 | ········var·fy·=·-Math.sin(info.theta); | ||
13380 | ········var·initialTime·=·(new·Date).getTime(); | ||
13381 | ········var·lastX·=·0; | ||
13382 | ········var·lastY·=·0; | ||
13383 | ········var·timerCallback·=·function()·{ | ||
13384 | ············if·(this.timerId·==·null)·{ | ||
13385 | ················return | ||
13386 | ············} | ||
13387 | ············var·t·=·(new·Date).getTime()·-·initialTime; | ||
13388 | ············var·p·=·-this.deceleration·*·Math.pow(t,·2)·/·2·+·v0·*·t; | ||
13389 | ············var·x·=·p·*·fx; | ||
13390 | ············var·y·=·p·*·fy; | ||
13391 | ············var·args·=·{}; | ||
13392 | ············args.end·=·false; | ||
13393 | ············var·v·=·-this.deceleration·*·t·+·v0; | ||
13394 | ············if·(v·<=·0)·{ | ||
13395 | ················OpenLayers.Animation.stop(this.timerId); | ||
13396 | ················this.timerId·=·null; | ||
13397 | ················args.end·=·true | ||
13398 | ············} | ||
13399 | ············args.x·=·x·-·lastX; | ||
13400 | ············args.y·=·y·-·lastY; | ||
13401 | ············lastX·=·x; | ||
13402 | ············lastY·=·y; | ||
13403 | ············callback(args.x,·args.y,·args.end) | ||
13404 | ········}; | ||
13405 | ········this.timerId·=·OpenLayers.Animation.start(OpenLayers.Function.bind(timerCallback,·this)) | ||
13406 | ····}, | ||
13407 | ····CLASS_NAME:·"OpenLayers.Kinetic" | ||
13408 | }); | ||
13409 | OpenLayers.Format.GeoJSON·=·OpenLayers.Class(OpenLayers.Format.JSON,·{ | 13325 | OpenLayers.Format.GeoJSON·=·OpenLayers.Class(OpenLayers.Format.JSON,·{ |
13410 | ····ignoreExtraDims:·false, | 13326 | ····ignoreExtraDims:·false, |
13411 | ····read:·function(json,·type,·filter)·{ | 13327 | ····read:·function(json,·type,·filter)·{ |
13412 | ········type·=·type·?·type·:·"FeatureCollection"; | 13328 | ········type·=·type·?·type·:·"FeatureCollection"; |
13413 | ········var·results·=·null; | 13329 | ········var·results·=·null; |
13414 | ········var·obj·=·null; | 13330 | ········var·obj·=·null; |
13415 | ········if·(typeof·json·==·"string")·{ | 13331 | ········if·(typeof·json·==·"string")·{ |
Offset 17262, 206 lines modified | Offset 17178, 108 lines modified | ||
17262 | ····process:·null, | 17178 | ····process:·null, |
17263 | ····output:·null, | 17179 | ····output:·null, |
17264 | ····initialize:·function(options)·{ | 17180 | ····initialize:·function(options)·{ |
17265 | ········OpenLayers.Util.extend(this,·options) | 17181 | ········OpenLayers.Util.extend(this,·options) |
17266 | ····}, | 17182 | ····}, |
17267 | ····CLASS_NAME:·"OpenLayers.WPSProcess.ChainLink" | 17183 | ····CLASS_NAME:·"OpenLayers.WPSProcess.ChainLink" |
17268 | }); | 17184 | }); |
17269 | OpenLayers.Format.WPSDescribeProcess·=·OpenLayers.Class(OpenLayers.Format.XML,·{ | ||
17270 | ····VERSION:·"1.0.0", | ||
17271 | ····namespaces:·{ | ||
17272 | ········wps:·"http://www.opengis.net/wps/1.0.0", | ||
17273 | ········ows:·"http://www.opengis.net/ows/1.1", | ||
17274 | 17185 | OpenLayers.Handler·=·OpenLayers.Class({ | |
17186 | ····id:·null, | ||
17187 | ····control:·null, | ||
17188 | ····map:·null, | ||
17189 | ····keyMask:·null, | ||
17190 | ····active:·false, | ||
17191 | ····evt:·null, | ||
17192 | ····touch:·false, | ||
17193 | ····initialize:·function(control,·callbacks,·options)·{ | ||
17194 | ········OpenLayers.Util.extend(this,·options); | ||
17195 | ········this.control·=·control; | ||
17196 | ········this.callbacks·=·callbacks; | ||
17197 | ········var·map·=·this.map·||·control.map; | ||
17198 | ········if·(map)·{ | ||
17199 | ············this.setMap(map) | ||
17200 | ········} | ||
Max diff block lines reached; 1298764/1303037 bytes (99.67%) of diff not shown. |