Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·53222143dab782bac4f67f3b67544ea3·716516·javascript·optional·libjs-openlayers_2.13.1+ds2-8_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-04-18·18:00:46.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-04-18·18:00:46.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3684·2020-04-18·18:00:46.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3684·2020-04-18·18:00:46.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···71 | 3 | -rw-r--r--···0········0········0···712640·2020-04-18·18:00:46.000000·data.tar.xz |
Offset 52, 37 lines modified | Offset 52, 14 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 | /*·====================================================================== | ||
81 | ····OpenLayers/SingleFile.js | 59 | ····OpenLayers/SingleFile.js |
82 | ···======================================================================·*/ | 60 | ···======================================================================·*/ |
83 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | 61 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for |
84 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | 62 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. |
85 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | 63 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the |
86 | ·*·full·text·of·the·license.·*/ | 64 | ·*·full·text·of·the·license.·*/ |
Offset 286, 268 lines modified | Offset 263, 14 lines modified | ||
286 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ | 263 | ············source.hasOwnProperty·&&·source.hasOwnProperty("toString"))·{ |
287 | ············destination.toString·=·source.toString; | 264 | ············destination.toString·=·source.toString; |
288 | ········} | 265 | ········} |
289 | ····} | 266 | ····} |
290 | ····return·destination; | 267 | ····return·destination; |
291 | }; | 268 | }; |
292 | /*·====================================================================== | 269 | /*·====================================================================== |
293 | ····OpenLayers/Console.js | ||
294 | ···======================================================================·*/ | ||
295 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | ||
296 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | ||
297 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | ||
298 | ·*·full·text·of·the·license.·*/ | ||
299 | /** | ||
300 | ·*·@requires·OpenLayers/BaseTypes/Class.js | ||
301 | ·*/ | ||
302 | /** | ||
303 | ·*·Namespace:·OpenLayers.Console | ||
304 | ·*·The·OpenLayers.Console·namespace·is·used·for·debugging·and·error·logging. | ||
305 | ·*·If·the·Firebug·Lite·(../Firebug/firebug.js)·is·included·before·this·script, | ||
306 | ·*·calls·to·OpenLayers.Console·methods·will·get·redirected·to·window.console. | ||
307 | ·*·This·makes·use·of·the·Firebug·extension·where·available·and·allows·for | ||
308 | ·*·cross-browser·debugging·Firebug·style. | ||
309 | ·* | ||
310 | ·*·Note: | ||
311 | ·*·Note·that·behavior·will·differ·with·the·Firebug·extention·and·Firebug·Lite. | ||
312 | ·*·Most·notably,·the·Firebug·Lite·console·does·not·currently·allow·for | ||
313 | ·*·hyperlinks·to·code·or·for·clicking·on·object·to·explore·their·properties. | ||
314 | ·*· | ||
315 | ·*/ | ||
316 | OpenLayers.Console·=·{ | ||
317 | ····/** | ||
318 | ·····*·Create·empty·functions·for·all·console·methods.··The·real·value·of·these | ||
319 | ·····*·properties·will·be·set·if·Firebug·Lite·(../Firebug/firebug.js·script)·is | ||
320 | ·····*·included.··We·explicitly·require·the·Firebug·Lite·script·to·trigger | ||
321 | ·····*·functionality·of·the·OpenLayers.Console·methods. | ||
322 | ·····*/ | ||
323 | ····/** | ||
324 | ·····*·APIFunction:·log | ||
325 | ·····*·Log·an·object·in·the·console.··The·Firebug·Lite·console·logs·string | ||
326 | ·····*·representation·of·objects.··Given·multiple·arguments,·they·will | ||
327 | ·····*·be·cast·to·strings·and·logged·with·a·space·delimiter.··If·the·first | ||
328 | ·····*·argument·is·a·string·with·printf-like·formatting,·subsequent·arguments | ||
329 | ·····*·will·be·used·in·string·substitution.··Any·additional·arguments·(beyond | ||
330 | ·····*·the·number·substituted·in·a·format·string)·will·be·appended·in·a·space- | ||
331 | ·····*·delimited·line. | ||
332 | ·····*· | ||
333 | ·····*·Parameters: | ||
334 | ·····*·object·-·{Object} | ||
335 | ·····*/ | ||
336 | ····log:·function()·{}, | ||
337 | ····/** | ||
338 | ·····*·APIFunction:·debug | ||
339 | ·····*·Writes·a·message·to·the·console,·including·a·hyperlink·to·the·line | ||
340 | ·····*·where·it·was·called. | ||
341 | ·····* | ||
342 | ·····*·May·be·called·with·multiple·arguments·as·with·OpenLayers.Console.log(). | ||
343 | ·····*· | ||
344 | ·····*·Parameters: | ||
345 | ·····*·object·-·{Object} | ||
346 | ·····*/ | ||
347 | ····debug:·function()·{}, | ||
348 | ····/** | ||
349 | ·····*·APIFunction:·info | ||
350 | ·····*·Writes·a·message·to·the·console·with·the·visual·"info"·icon·and·color | ||
351 | ·····*·coding·and·a·hyperlink·to·the·line·where·it·was·called. | ||
352 | ·····* | ||
353 | ·····*·May·be·called·with·multiple·arguments·as·with·OpenLayers.Console.log(). | ||
354 | ·····*· | ||
355 | ·····*·Parameters: | ||
356 | ·····*·object·-·{Object} | ||
357 | ·····*/ | ||
358 | ····info:·function()·{}, | ||
359 | ····/** | ||
360 | ·····*·APIFunction:·warn | ||
361 | ·····*·Writes·a·message·to·the·console·with·the·visual·"warning"·icon·and | ||
362 | ·····*·color·coding·and·a·hyperlink·to·the·line·where·it·was·called. | ||
363 | ·····* | ||
364 | ·····*·May·be·called·with·multiple·arguments·as·with·OpenLayers.Console.log(). | ||
365 | ·····*· | ||
366 | ·····*·Parameters: | ||
367 | ·····*·object·-·{Object} | ||
Max diff block lines reached; 4286149/4296462 bytes (99.76%) of diff not shown. |
Offset 4426, 1778 lines modified | Offset 4426, 14 lines modified | ||
4426 | ····}·else·{ | 4426 | ····}·else·{ |
4427 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("S")·:·OpenLayers.i18n("N"); | 4427 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("S")·:·OpenLayers.i18n("N"); |
4428 | ····} | 4428 | ····} |
4429 | ····return·str; | 4429 | ····return·str; |
4430 | }; | 4430 | }; |
4431 | /*·====================================================================== | 4431 | /*·====================================================================== |
4432 | ····OpenLayers/Projection.js | ||
4433 | ···======================================================================·*/ | ||
4434 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | ||
4435 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | ||
4436 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | ||
4437 | ·*·full·text·of·the·license.·*/ | ||
4438 | /** | ||
4439 | ·*·@requires·OpenLayers/BaseTypes/Class.js | ||
4440 | ·*·@requires·OpenLayers/Util.js | ||
4441 | ·*/ | ||
4442 | /** | ||
4443 | ·*·Namespace:·OpenLayers.Projection | ||
4444 | ·*·Methods·for·coordinate·transforms·between·coordinate·systems.··By·default, | ||
4445 | ·*·····OpenLayers·ships·with·the·ability·to·transform·coordinates·between | ||
4446 | ·*·····geographic·(EPSG:4326)·and·web·or·spherical·mercator·(EPSG:900913·et·al.) | ||
4447 | ·*·····coordinate·reference·systems.··See·the·<transform>·method·for·details | ||
4448 | ·*·····on·usage. | ||
4449 | ·* | ||
4450 | ·*·Additional·transforms·may·be·added·by·using·the·<proj4js·at·http://proj4js.org/> | ||
4451 | ·*·····library.··If·the·proj4js·library·is·included,·the·<transform>·method· | ||
4452 | ·*·····will·work·between·any·two·coordinate·reference·systems·with·proj4js· | ||
4453 | ·*·····definitions. | ||
4454 | ·* | ||
4455 | ·*·If·the·proj4js·library·is·not·included,·or·if·you·wish·to·allow·transforms | ||
4456 | ·*·····between·arbitrary·coordinate·reference·systems,·use·the·<addTransform> | ||
4457 | ·*·····method·to·register·a·custom·transform·method. | ||
4458 | ·*/ | ||
4459 | OpenLayers.Projection·=·OpenLayers.Class({ | ||
4460 | ····/** | ||
4461 | ·····*·Property:·proj | ||
4462 | ·····*·{Object}·Proj4js.Proj·instance. | ||
4463 | ·····*/ | ||
4464 | ····proj:·null, | ||
4465 | ····/** | ||
4466 | ·····*·Property:·projCode | ||
4467 | ·····*·{String} | ||
4468 | ·····*/ | ||
4469 | ····projCode:·null, | ||
4470 | ····/** | ||
4471 | ·····*·Property:·titleRegEx | ||
4472 | ·····*·{RegExp}·regular·expression·to·strip·the·title·from·a·proj4js·definition | ||
4473 | ·····*/ | ||
4474 | ····titleRegEx:·/\+title=[^\+]*/, | ||
4475 | ····/** | ||
4476 | ·····*·Constructor:·OpenLayers.Projection | ||
4477 | ·····*·This·class·offers·several·methods·for·interacting·with·a·wrapped· | ||
4478 | ·····*·····pro4js·projection·object.· | ||
4479 | ·····* | ||
4480 | ·····*·Parameters: | ||
4481 | ·····*·projCode·-·{String}·A·string·identifying·the·Well·Known·Identifier·for | ||
4482 | ·····*····the·projection. | ||
4483 | ·····*·options·-·{Object}·An·optional·object·to·set·additional·properties | ||
4484 | ·····*·····on·the·projection. | ||
4485 | ·····* | ||
4486 | ·····*·Returns: | ||
4487 | ·····*·{<OpenLayers.Projection>}·A·projection·object. | ||
4488 | ·····*/ | ||
4489 | ····initialize:·function(projCode,·options)·{ | ||
4490 | ········OpenLayers.Util.extend(this,·options); | ||
4491 | ········this.projCode·=·projCode; | ||
4492 | ········if·(typeof·Proj4js·==·"object")·{ | ||
4493 | ············this.proj·=·new·Proj4js.Proj(projCode); | ||
4494 | ········} | ||
4495 | ····}, | ||
4496 | ····/** | ||
4497 | ·····*·APIMethod:·getCode | ||
4498 | ·····*·Get·the·string·SRS·code. | ||
4499 | ·····* | ||
4500 | ·····*·Returns: | ||
4501 | ·····*·{String}·The·SRS·code. | ||
4502 | ·····*/ | ||
4503 | ····getCode:·function()·{ | ||
4504 | ········return·this.proj·?·this.proj.srsCode·:·this.projCode; | ||
4505 | ····}, | ||
4506 | ····/** | ||
4507 | ·····*·APIMethod:·getUnits | ||
4508 | ·····*·Get·the·units·string·for·the·projection·--·returns·null·if· | ||
4509 | ·····*·····proj4js·is·not·available. | ||
4510 | ·····* | ||
4511 | ·····*·Returns: | ||
4512 | ·····*·{String}·The·units·abbreviation. | ||
4513 | ·····*/ | ||
4514 | ····getUnits:·function()·{ | ||
4515 | ········return·this.proj·?·this.proj.units·:·null; | ||
4516 | ····}, | ||
4517 | ····/** | ||
4518 | ·····*·Method:·toString | ||
4519 | ·····*·Convert·projection·to·string·(getCode·wrapper). | ||
4520 | ·····* | ||
4521 | ·····*·Returns: | ||
4522 | ·····*·{String}·The·projection·code. | ||
4523 | ·····*/ | ||
4524 | ····toString:·function()·{ | ||
4525 | ········return·this.getCode(); | ||
4526 | ····}, | ||
4527 | ····/** | ||
4528 | ·····*·Method:·equals | ||
4529 | ·····*·Test·equality·of·two·projection·instances.··Determines·equality·based | ||
4530 | ·····*·····soley·on·the·projection·code. | ||
4531 | ·····* | ||
4532 | ·····*·Returns: | ||
4533 | ·····*·{Boolean}·The·two·projections·are·equivalent. | ||
4534 | ·····*/ | ||
4535 | ····equals:·function(projection)·{ | ||
4536 | ········var·p·=·projection, | ||
4537 | ············equals·=·false; | ||
4538 | ········if·(p)·{ | ||
4539 | ············if·(!(p·instanceof·OpenLayers.Projection))·{ | ||
4540 | ················p·=·new·OpenLayers.Projection(p); | ||
Max diff block lines reached; 1054121/1115073 bytes (94.53%) of diff not shown. |
Offset 1605, 683 lines modified | Offset 1605, 14 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 | }; |
1612 | OpenLayers.Projection·=·OpenLayers.Class({ | ||
1613 | ····proj:·null, | ||
1614 | ····projCode:·null, | ||
1615 | ····titleRegEx:·/\+title=[^\+]*/, | ||
1616 | ····initialize:·function(projCode,·options)·{ | ||
1617 | ········OpenLayers.Util.extend(this,·options); | ||
1618 | ········this.projCode·=·projCode; | ||
1619 | ········if·(typeof·Proj4js·==·"object")·{ | ||
1620 | ············this.proj·=·new·Proj4js.Proj(projCode) | ||
1621 | ········} | ||
1622 | ····}, | ||
1623 | ····getCode:·function()·{ | ||
1624 | ········return·this.proj·?·this.proj.srsCode·:·this.projCode | ||
1625 | ····}, | ||
1626 | ····getUnits:·function()·{ | ||
1627 | ········return·this.proj·?·this.proj.units·:·null | ||
1628 | ····}, | ||
1629 | ····toString:·function()·{ | ||
1630 | ········return·this.getCode() | ||
1631 | ····}, | ||
1632 | ····equals:·function(projection)·{ | ||
1633 | ········var·p·=·projection, | ||
1634 | ············equals·=·false; | ||
1635 | ········if·(p)·{ | ||
1636 | ············if·(!(p·instanceof·OpenLayers.Projection))·{ | ||
1637 | ················p·=·new·OpenLayers.Projection(p) | ||
1638 | ············} | ||
1639 | ············if·(typeof·Proj4js·==·"object"·&&·this.proj.defData·&&·p.proj.defData)·{ | ||
1640 | ················equals·=·this.proj.defData.replace(this.titleRegEx,·"")·==·p.proj.defData.replace(this.titleRegEx,·"") | ||
1641 | ············}·else·if·(p.getCode)·{ | ||
1642 | ················var·source·=·this.getCode(), | ||
1643 | ····················target·=·p.getCode(); | ||
1644 | ················equals·=·source·==·target·||·!!OpenLayers.Projection.transforms[source]·&&·OpenLayers.Projection.transforms[source][target]·===·OpenLayers.Projection.nullTransform | ||
1645 | ············} | ||
1646 | ········} | ||
1647 | ········return·equals | ||
1648 | ····}, | ||
1649 | ····destroy:·function()·{ | ||
1650 | ········delete·this.proj; | ||
1651 | ········delete·this.projCode | ||
1652 | ····}, | ||
1653 | ····CLASS_NAME:·"OpenLayers.Projection" | ||
1654 | }); | ||
1655 | OpenLayers.Projection.transforms·=·{}; | ||
1656 | OpenLayers.Projection.defaults·=·{ | ||
1657 | ····"EPSG:4326":·{ | ||
1658 | ········units:·"degrees", | ||
1659 | ········maxExtent:·[-180,·-90,·180,·90], | ||
1660 | ········yx:·true | ||
1661 | ····}, | ||
1662 | ····"CRS:84":·{ | ||
1663 | ········units:·"degrees", | ||
1664 | ········maxExtent:·[-180,·-90,·180,·90] | ||
1665 | ····}, | ||
1666 | ····"EPSG:900913":·{ | ||
1667 | ········units:·"m", | ||
1668 | ········maxExtent:·[-20037508.34,·-20037508.34,·20037508.34,·20037508.34] | ||
1669 | ····} | ||
1670 | }; | ||
1671 | OpenLayers.Projection.addTransform·=·function(from,·to,·method)·{ | ||
1672 | ····if·(method·===·OpenLayers.Projection.nullTransform)·{ | ||
1673 | ········var·defaults·=·OpenLayers.Projection.defaults[from]; | ||
1674 | ········if·(defaults·&&·!OpenLayers.Projection.defaults[to])·{ | ||
1675 | ············OpenLayers.Projection.defaults[to]·=·defaults | ||
1676 | ········} | ||
1677 | ····} | ||
1678 | ····if·(!OpenLayers.Projection.transforms[from])·{ | ||
1679 | ········OpenLayers.Projection.transforms[from]·=·{} | ||
1680 | ····} | ||
1681 | ····OpenLayers.Projection.transforms[from][to]·=·method | ||
1682 | }; | ||
1683 | OpenLayers.Projection.transform·=·function(point,·source,·dest)·{ | ||
1684 | ····if·(source·&&·dest)·{ | ||
1685 | ········if·(!(source·instanceof·OpenLayers.Projection))·{ | ||
1686 | ············source·=·new·OpenLayers.Projection(source) | ||
1687 | ········} | ||
1688 | ········if·(!(dest·instanceof·OpenLayers.Projection))·{ | ||
1689 | ············dest·=·new·OpenLayers.Projection(dest) | ||
1690 | ········} | ||
1691 | ········if·(source.proj·&&·dest.proj)·{ | ||
1692 | ············point·=·Proj4js.transform(source.proj,·dest.proj,·point) | ||
1693 | ········}·else·{ | ||
1694 | ············var·sourceCode·=·source.getCode(); | ||
1695 | ············var·destCode·=·dest.getCode(); | ||
1696 | ············var·transforms·=·OpenLayers.Projection.transforms; | ||
1697 | ············if·(transforms[sourceCode]·&&·transforms[sourceCode][destCode])·{ | ||
1698 | ················transforms[sourceCode][destCode](point) | ||
1699 | ············} | ||
1700 | ········} | ||
1701 | ····} | ||
1702 | ····return·point | ||
1703 | }; | ||
1704 | OpenLayers.Projection.nullTransform·=·function(point)·{ | ||
1705 | ····return·point | ||
1706 | }; | ||
1707 | (function()·{ | ||
1708 | ····var·pole·=·20037508.34; | ||
1709 | ····function·inverseMercator(xy)·{ | ||
1710 | ········xy.x·=·180·*·xy.x·/·pole; | ||
1711 | ········xy.y·=·180·/·Math.PI·*·(2·*·Math.atan(Math.exp(xy.y·/·pole·*·Math.PI))·-·Math.PI·/·2); | ||
1712 | ········return·xy | ||
1713 | ····} | ||
1714 | ····function·forwardMercator(xy)·{ | ||
1715 | ········xy.x·=·xy.x·*·pole·/·180; | ||
1716 | ········var·y·=·Math.log(Math.tan((90·+·xy.y)·*·Math.PI·/·360))·/·Math.PI·*·pole; | ||
1717 | ········xy.y·=·Math.max(-20037508.34,·Math.min(y,·20037508.34)); | ||
1718 | ········return·xy | ||
1719 | ····} | ||
1720 | ····function·map(base,·codes)·{ | ||
1721 | ········var·add·=·OpenLayers.Projection.addTransform; | ||
1722 | ········var·same·=·OpenLayers.Projection.nullTransform; | ||
1723 | ········var·i,·len,·code,·other,·j; | ||
1724 | ········for·(i·=·0,·len·=·codes.length;·i·<·len;·++i)·{ | ||
1725 | ············code·=·codes[i]; | ||
1726 | ············add(base,·code,·forwardMercator); | ||
1727 | ············add(code,·base,·inverseMercator); | ||
1728 | ············for·(j·=·i·+·1;·j·<·len;·++j)·{ | ||
Max diff block lines reached; 476764/501218 bytes (95.12%) of diff not shown. |
Offset 62, 47 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.Console·=·{ | ||
70 | ····log:·function()·{}, | ||
71 | ····debug:·function()·{}, | ||
72 | ····info:·function()·{}, | ||
73 | ····warn:·function()·{}, | ||
74 | ····error:·function()·{}, | ||
75 | ····userError:·function(error)·{ | ||
76 | ········alert(error) | ||
77 | ····}, | ||
78 | ····assert:·function()·{}, | ||
79 | ····dir:·function()·{}, | ||
80 | ····dirxml:·function()·{}, | ||
81 | ····trace:·function()·{}, | ||
82 | ····group:·function()·{}, | ||
83 | ····groupEnd:·function()·{}, | ||
84 | ····time:·function()·{}, | ||
85 | ····timeEnd:·function()·{}, | ||
86 | ····profile:·function()·{}, | ||
87 | ····profileEnd:·function()·{}, | ||
88 | ····count:·function()·{}, | ||
89 | ····CLASS_NAME:·"OpenLayers.Console" | ||
90 | }; | ||
91 | (function()·{ | ||
92 | ····var·scripts·=·document.getElementsByTagName("script"); | ||
93 | ····for·(var·i·=·0,·len·=·scripts.length;·i·<·len;·++i)·{ | ||
94 | ········if·(scripts[i].src.indexOf("firebug.js")·!=·-1)·{ | ||
95 | ············if·(console)·{ | ||
96 | ················OpenLayers.Util.extend(OpenLayers.Console,·console); | ||
97 | ················break | ||
98 | ············} | ||
99 | ········} | ||
100 | ····} | ||
101 | })(); | ||
102 | OpenLayers.String·=·{ | 69 | OpenLayers.String·=·{ |
103 | ····startsWith:·function(str,·sub)·{ | 70 | ····startsWith:·function(str,·sub)·{ |
104 | ········return·str.indexOf(sub)·==·0 | 71 | ········return·str.indexOf(sub)·==·0 |
105 | ····}, | 72 | ····}, |
106 | ····contains:·function(str,·sub)·{ | 73 | ····contains:·function(str,·sub)·{ |
107 | ········return·str.indexOf(sub)·!=·-1 | 74 | ········return·str.indexOf(sub)·!=·-1 |
108 | ····}, | 75 | ····}, |
Offset 561, 14 lines modified | Offset 528, 79 lines modified | ||
561 | }; | 528 | }; |
562 | OpenLayers.Bounds.oppositeQuadrant·=·function(quadrant)·{ | 529 | OpenLayers.Bounds.oppositeQuadrant·=·function(quadrant)·{ |
563 | ····var·opp·=·""; | 530 | ····var·opp·=·""; |
564 | ····opp·+=·quadrant.charAt(0)·==·"t"·?·"b"·:·"t"; | 531 | ····opp·+=·quadrant.charAt(0)·==·"t"·?·"b"·:·"t"; |
565 | ····opp·+=·quadrant.charAt(1)·==·"l"·?·"r"·:·"l"; | 532 | ····opp·+=·quadrant.charAt(1)·==·"l"·?·"r"·:·"l"; |
566 | ····return·opp | 533 | ····return·opp |
567 | }; | 534 | }; |
535 | OpenLayers.Element·=·{ | ||
536 | ····visible:·function(element)·{ | ||
537 | ········return·OpenLayers.Util.getElement(element).style.display·!=·"none" | ||
538 | ····}, | ||
539 | ····toggle:·function()·{ | ||
540 | ········for·(var·i·=·0,·len·=·arguments.length;·i·<·len;·i++)·{ | ||
541 | ············var·element·=·OpenLayers.Util.getElement(arguments[i]); | ||
542 | ············var·display·=·OpenLayers.Element.visible(element)·?·"none"·:·""; | ||
543 | ············element.style.display·=·display | ||
544 | ········} | ||
545 | ····}, | ||
546 | ····remove:·function(element)·{ | ||
547 | ········element·=·OpenLayers.Util.getElement(element); | ||
548 | ········element.parentNode.removeChild(element) | ||
549 | ····}, | ||
550 | ····getHeight:·function(element)·{ | ||
551 | ········element·=·OpenLayers.Util.getElement(element); | ||
552 | ········return·element.offsetHeight | ||
553 | ····}, | ||
554 | ····hasClass:·function(element,·name)·{ | ||
555 | ········var·names·=·element.className; | ||
556 | ········return·!!names·&&·new·RegExp("(^|\\s)"·+·name·+·"(\\s|$)").test(names) | ||
557 | ····}, | ||
558 | ····addClass:·function(element,·name)·{ | ||
559 | ········if·(!OpenLayers.Element.hasClass(element,·name))·{ | ||
560 | ············element.className·+=·(element.className·?·"·"·:·"")·+·name | ||
561 | ········} | ||
562 | ········return·element | ||
563 | ····}, | ||
564 | ····removeClass:·function(element,·name)·{ | ||
565 | ········var·names·=·element.className; | ||
566 | ········if·(names)·{ | ||
567 | ············element.className·=·OpenLayers.String.trim(names.replace(new·RegExp("(^|\\s+)"·+·name·+·"(\\s+|$)"),·"·")) | ||
568 | ········} | ||
569 | ········return·element | ||
570 | ····}, | ||
571 | ····toggleClass:·function(element,·name)·{ | ||
572 | ········if·(OpenLayers.Element.hasClass(element,·name))·{ | ||
573 | ············OpenLayers.Element.removeClass(element,·name) | ||
574 | ········}·else·{ | ||
575 | ············OpenLayers.Element.addClass(element,·name) | ||
576 | ········} | ||
577 | ········return·element | ||
578 | ····}, | ||
579 | ····getStyle:·function(element,·style)·{ | ||
580 | ········element·=·OpenLayers.Util.getElement(element); | ||
581 | ········var·value·=·null; | ||
582 | ········if·(element·&&·element.style)·{ | ||
583 | ············value·=·element.style[OpenLayers.String.camelize(style)]; | ||
584 | ············if·(!value)·{ | ||
585 | ················if·(document.defaultView·&&·document.defaultView.getComputedStyle)·{ | ||
586 | ····················var·css·=·document.defaultView.getComputedStyle(element,·null); | ||
587 | ····················value·=·css·?·css.getPropertyValue(style)·:·null | ||
588 | ················}·else·if·(element.currentStyle)·{ | ||
589 | ····················value·=·element.currentStyle[OpenLayers.String.camelize(style)] | ||
590 | ················} | ||
591 | ············} | ||
592 | ············var·positions·=·["left",·"top",·"right",·"bottom"]; | ||
593 | ············if·(window.opera·&&·OpenLayers.Util.indexOf(positions,·style)·!=·-1·&&·OpenLayers.Element.getStyle(element,·"position")·==·"static")·{ | ||
594 | ················value·=·"auto" | ||
595 | ············} | ||
596 | ········} | ||
597 | ········return·value·==·"auto"·?·null·:·value | ||
598 | ····} | ||
599 | }; | ||
568 | OpenLayers.LonLat·=·OpenLayers.Class({ | 600 | OpenLayers.LonLat·=·OpenLayers.Class({ |
569 | ····lon:·0, | 601 | ····lon:·0, |
570 | ····lat:·0, | 602 | ····lat:·0, |
571 | ····initialize:·function(lon,·lat)·{ | 603 | ····initialize:·function(lon,·lat)·{ |
572 | ········if·(OpenLayers.Util.isArray(lon))·{ | 604 | ········if·(OpenLayers.Util.isArray(lon))·{ |
573 | ············lat·=·lon[1]; | 605 | ············lat·=·lon[1]; |
574 | ············lon·=·lon[0] | 606 | ············lon·=·lon[0] |
Max diff block lines reached; 1967194/1971727 bytes (99.77%) of diff not shown. |
Offset 4426, 342 lines modified | Offset 4426, 14 lines modified | ||
4426 | ····}·else·{ | 4426 | ····}·else·{ |
4427 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("S")·:·OpenLayers.i18n("N"); | 4427 | ········str·+=·coordinate·<·0·?·OpenLayers.i18n("S")·:·OpenLayers.i18n("N"); |
4428 | ····} | 4428 | ····} |
4429 | ····return·str; | 4429 | ····return·str; |
4430 | }; | 4430 | }; |
4431 | /*·====================================================================== | 4431 | /*·====================================================================== |
4432 | ····OpenLayers/Projection.js | ||
4433 | ···======================================================================·*/ | ||
4434 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | ||
4435 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | ||
4436 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | ||
4437 | ·*·full·text·of·the·license.·*/ | ||
4438 | /** | ||
4439 | ·*·@requires·OpenLayers/BaseTypes/Class.js | ||
4440 | ·*·@requires·OpenLayers/Util.js | ||
4441 | ·*/ | ||
4442 | /** | ||
4443 | ·*·Namespace:·OpenLayers.Projection | ||
4444 | ·*·Methods·for·coordinate·transforms·between·coordinate·systems.··By·default, | ||
4445 | ·*·····OpenLayers·ships·with·the·ability·to·transform·coordinates·between | ||
4446 | ·*·····geographic·(EPSG:4326)·and·web·or·spherical·mercator·(EPSG:900913·et·al.) | ||
4447 | ·*·····coordinate·reference·systems.··See·the·<transform>·method·for·details | ||
4448 | ·*·····on·usage. | ||
4449 | ·* | ||
4450 | ·*·Additional·transforms·may·be·added·by·using·the·<proj4js·at·http://proj4js.org/> | ||
4451 | ·*·····library.··If·the·proj4js·library·is·included,·the·<transform>·method· | ||
4452 | ·*·····will·work·between·any·two·coordinate·reference·systems·with·proj4js· | ||
4453 | ·*·····definitions. | ||
4454 | ·* | ||
4455 | ·*·If·the·proj4js·library·is·not·included,·or·if·you·wish·to·allow·transforms | ||
4456 | ·*·····between·arbitrary·coordinate·reference·systems,·use·the·<addTransform> | ||
4457 | ·*·····method·to·register·a·custom·transform·method. | ||
4458 | ·*/ | ||
4459 | OpenLayers.Projection·=·OpenLayers.Class({ | ||
4460 | ····/** | ||
4461 | ·····*·Property:·proj | ||
4462 | ·····*·{Object}·Proj4js.Proj·instance. | ||
4463 | ·····*/ | ||
4464 | ····proj:·null, | ||
4465 | ····/** | ||
4466 | ·····*·Property:·projCode | ||
4467 | ·····*·{String} | ||
4468 | ·····*/ | ||
4469 | ····projCode:·null, | ||
4470 | ····/** | ||
4471 | ·····*·Property:·titleRegEx | ||
4472 | ·····*·{RegExp}·regular·expression·to·strip·the·title·from·a·proj4js·definition | ||
4473 | ·····*/ | ||
4474 | ····titleRegEx:·/\+title=[^\+]*/, | ||
4475 | ····/** | ||
4476 | ·····*·Constructor:·OpenLayers.Projection | ||
4477 | ·····*·This·class·offers·several·methods·for·interacting·with·a·wrapped· | ||
4478 | ·····*·····pro4js·projection·object.· | ||
4479 | ·····* | ||
4480 | ·····*·Parameters: | ||
4481 | ·····*·projCode·-·{String}·A·string·identifying·the·Well·Known·Identifier·for | ||
4482 | ·····*····the·projection. | ||
4483 | ·····*·options·-·{Object}·An·optional·object·to·set·additional·properties | ||
4484 | ·····*·····on·the·projection. | ||
4485 | ·····* | ||
4486 | ·····*·Returns: | ||
4487 | ·····*·{<OpenLayers.Projection>}·A·projection·object. | ||
4488 | ·····*/ | ||
4489 | ····initialize:·function(projCode,·options)·{ | ||
4490 | ········OpenLayers.Util.extend(this,·options); | ||
4491 | ········this.projCode·=·projCode; | ||
4492 | ········if·(typeof·Proj4js·==·"object")·{ | ||
4493 | ············this.proj·=·new·Proj4js.Proj(projCode); | ||
4494 | ········} | ||
4495 | ····}, | ||
4496 | ····/** | ||
4497 | ·····*·APIMethod:·getCode | ||
4498 | ·····*·Get·the·string·SRS·code. | ||
4499 | ·····* | ||
4500 | ·····*·Returns: | ||
4501 | ·····*·{String}·The·SRS·code. | ||
4502 | ·····*/ | ||
4503 | ····getCode:·function()·{ | ||
4504 | ········return·this.proj·?·this.proj.srsCode·:·this.projCode; | ||
4505 | ····}, | ||
4506 | ····/** | ||
4507 | ·····*·APIMethod:·getUnits | ||
4508 | ·····*·Get·the·units·string·for·the·projection·--·returns·null·if· | ||
4509 | ·····*·····proj4js·is·not·available. | ||
4510 | ·····* | ||
4511 | ·····*·Returns: | ||
4512 | ·····*·{String}·The·units·abbreviation. | ||
4513 | ·····*/ | ||
4514 | ····getUnits:·function()·{ | ||
4515 | ········return·this.proj·?·this.proj.units·:·null; | ||
4516 | ····}, | ||
4517 | ····/** | ||
4518 | ·····*·Method:·toString | ||
4519 | ·····*·Convert·projection·to·string·(getCode·wrapper). | ||
4520 | ·····* | ||
4521 | ·····*·Returns: | ||
4522 | ·····*·{String}·The·projection·code. | ||
4523 | ·····*/ | ||
4524 | ····toString:·function()·{ | ||
4525 | ········return·this.getCode(); | ||
4526 | ····}, | ||
4527 | ····/** | ||
4528 | ·····*·Method:·equals | ||
4529 | ·····*·Test·equality·of·two·projection·instances.··Determines·equality·based | ||
4530 | ·····*·····soley·on·the·projection·code. | ||
4531 | ·····* | ||
4532 | ·····*·Returns: | ||
4533 | ·····*·{Boolean}·The·two·projections·are·equivalent. | ||
4534 | ·····*/ | ||
4535 | ····equals:·function(projection)·{ | ||
4536 | ········var·p·=·projection, | ||
4537 | ············equals·=·false; | ||
4538 | ········if·(p)·{ | ||
4539 | ············if·(!(p·instanceof·OpenLayers.Projection))·{ | ||
4540 | ················p·=·new·OpenLayers.Projection(p); | ||
Max diff block lines reached; 1577019/1588869 bytes (99.25%) of diff not shown. |
Offset 1605, 150 lines modified | Offset 1605, 14 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 | }; |
1612 | OpenLayers.Projection·=·OpenLayers.Class({ | ||
1613 | ····proj:·null, | ||
1614 | ····projCode:·null, | ||
1615 | ····titleRegEx:·/\+title=[^\+]*/, | ||
1616 | ····initialize:·function(projCode,·options)·{ | ||
1617 | ········OpenLayers.Util.extend(this,·options); | ||
1618 | ········this.projCode·=·projCode; | ||
1619 | ········if·(typeof·Proj4js·==·"object")·{ | ||
1620 | ············this.proj·=·new·Proj4js.Proj(projCode) | ||
1621 | ········} | ||
1622 | ····}, | ||
1623 | ····getCode:·function()·{ | ||
1624 | ········return·this.proj·?·this.proj.srsCode·:·this.projCode | ||
1625 | ····}, | ||
1626 | ····getUnits:·function()·{ | ||
1627 | ········return·this.proj·?·this.proj.units·:·null | ||
1628 | ····}, | ||
1629 | ····toString:·function()·{ | ||
1630 | ········return·this.getCode() | ||
1631 | ····}, | ||
1632 | ····equals:·function(projection)·{ | ||
1633 | ········var·p·=·projection, | ||
1634 | ············equals·=·false; | ||
1635 | ········if·(p)·{ | ||
1636 | ············if·(!(p·instanceof·OpenLayers.Projection))·{ | ||
1637 | ················p·=·new·OpenLayers.Projection(p) | ||
1638 | ············} | ||
1639 | ············if·(typeof·Proj4js·==·"object"·&&·this.proj.defData·&&·p.proj.defData)·{ | ||
1640 | ················equals·=·this.proj.defData.replace(this.titleRegEx,·"")·==·p.proj.defData.replace(this.titleRegEx,·"") | ||
1641 | ············}·else·if·(p.getCode)·{ | ||
1642 | ················var·source·=·this.getCode(), | ||
1643 | ····················target·=·p.getCode(); | ||
1644 | ················equals·=·source·==·target·||·!!OpenLayers.Projection.transforms[source]·&&·OpenLayers.Projection.transforms[source][target]·===·OpenLayers.Projection.nullTransform | ||
1645 | ············} | ||
1646 | ········} | ||
1647 | ········return·equals | ||
1648 | ····}, | ||
1649 | ····destroy:·function()·{ | ||
1650 | ········delete·this.proj; | ||
1651 | ········delete·this.projCode | ||
1652 | ····}, | ||
1653 | ····CLASS_NAME:·"OpenLayers.Projection" | ||
1654 | }); | ||
1655 | OpenLayers.Projection.transforms·=·{}; | ||
1656 | OpenLayers.Projection.defaults·=·{ | ||
1657 | ····"EPSG:4326":·{ | ||
1658 | ········units:·"degrees", | ||
1659 | ········maxExtent:·[-180,·-90,·180,·90], | ||
1660 | ········yx:·true | ||
1661 | ····}, | ||
1662 | ····"CRS:84":·{ | ||
1663 | ········units:·"degrees", | ||
1664 | ········maxExtent:·[-180,·-90,·180,·90] | ||
1665 | ····}, | ||
1666 | ····"EPSG:900913":·{ | ||
1667 | ········units:·"m", | ||
1668 | ········maxExtent:·[-20037508.34,·-20037508.34,·20037508.34,·20037508.34] | ||
1669 | ····} | ||
1670 | }; | ||
1671 | OpenLayers.Projection.addTransform·=·function(from,·to,·method)·{ | ||
1672 | ····if·(method·===·OpenLayers.Projection.nullTransform)·{ | ||
1673 | ········var·defaults·=·OpenLayers.Projection.defaults[from]; | ||
1674 | ········if·(defaults·&&·!OpenLayers.Projection.defaults[to])·{ | ||
1675 | ············OpenLayers.Projection.defaults[to]·=·defaults | ||
1676 | ········} | ||
1677 | ····} | ||
1678 | ····if·(!OpenLayers.Projection.transforms[from])·{ | ||
1679 | ········OpenLayers.Projection.transforms[from]·=·{} | ||
1680 | ····} | ||
1681 | ····OpenLayers.Projection.transforms[from][to]·=·method | ||
1682 | }; | ||
1683 | OpenLayers.Projection.transform·=·function(point,·source,·dest)·{ | ||
1684 | ····if·(source·&&·dest)·{ | ||
1685 | ········if·(!(source·instanceof·OpenLayers.Projection))·{ | ||
1686 | ············source·=·new·OpenLayers.Projection(source) | ||
1687 | ········} | ||
1688 | ········if·(!(dest·instanceof·OpenLayers.Projection))·{ | ||
1689 | ············dest·=·new·OpenLayers.Projection(dest) | ||
1690 | ········} | ||
1691 | ········if·(source.proj·&&·dest.proj)·{ | ||
1692 | ············point·=·Proj4js.transform(source.proj,·dest.proj,·point) | ||
1693 | ········}·else·{ | ||
1694 | ············var·sourceCode·=·source.getCode(); | ||
1695 | ············var·destCode·=·dest.getCode(); | ||
1696 | ············var·transforms·=·OpenLayers.Projection.transforms; | ||
1697 | ············if·(transforms[sourceCode]·&&·transforms[sourceCode][destCode])·{ | ||
1698 | ················transforms[sourceCode][destCode](point) | ||
1699 | ············} | ||
1700 | ········} | ||
1701 | ····} | ||
1702 | ····return·point | ||
1703 | }; | ||
1704 | OpenLayers.Projection.nullTransform·=·function(point)·{ | ||
1705 | ····return·point | ||
1706 | }; | ||
1707 | (function()·{ | ||
1708 | ····var·pole·=·20037508.34; | ||
1709 | ····function·inverseMercator(xy)·{ | ||
1710 | ········xy.x·=·180·*·xy.x·/·pole; | ||
1711 | ········xy.y·=·180·/·Math.PI·*·(2·*·Math.atan(Math.exp(xy.y·/·pole·*·Math.PI))·-·Math.PI·/·2); | ||
1712 | ········return·xy | ||
1713 | ····} | ||
1714 | ····function·forwardMercator(xy)·{ | ||
1715 | ········xy.x·=·xy.x·*·pole·/·180; | ||
1716 | ········var·y·=·Math.log(Math.tan((90·+·xy.y)·*·Math.PI·/·360))·/·Math.PI·*·pole; | ||
1717 | ········xy.y·=·Math.max(-20037508.34,·Math.min(y,·20037508.34)); | ||
1718 | ········return·xy | ||
1719 | ····} | ||
1720 | ····function·map(base,·codes)·{ | ||
1721 | ········var·add·=·OpenLayers.Projection.addTransform; | ||
1722 | ········var·same·=·OpenLayers.Projection.nullTransform; | ||
1723 | ········var·i,·len,·code,·other,·j; | ||
1724 | ········for·(i·=·0,·len·=·codes.length;·i·<·len;·++i)·{ | ||
1725 | ············code·=·codes[i]; | ||
1726 | ············add(base,·code,·forwardMercator); | ||
1727 | ············add(code,·base,·inverseMercator); | ||
1728 | ············for·(j·=·i·+·1;·j·<·len;·++j)·{ | ||
Max diff block lines reached; 644156/649226 bytes (99.22%) of diff not shown. |
Offset 33176, 14 lines modified | Offset 33176, 267 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/Icon.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 | ·*/ | ||
33191 | /** | ||
33192 | ·*·Class:·OpenLayers.Icon | ||
33193 | ·*· | ||
33194 | ·*·The·icon·represents·a·graphical·icon·on·the·screen.··Typically·used·in | ||
33195 | ·*·conjunction·with·a·<OpenLayers.Marker>·to·represent·markers·on·a·screen. | ||
33196 | ·* | ||
33197 | ·*·An·icon·has·a·url,·size·and·position.··It·also·contains·an·offset·which· | ||
33198 | ·*·allows·the·center·point·to·be·represented·correctly.··This·can·be | ||
33199 | ·*·provided·either·as·a·fixed·offset·or·a·function·provided·to·calculate | ||
33200 | ·*·the·desired·offset.· | ||
33201 | ·*· | ||
33202 | ·*/ | ||
33203 | OpenLayers.Icon·=·OpenLayers.Class({ | ||
33204 | ····/**· | ||
33205 | ·····*·Property:·url· | ||
33206 | ·····*·{String}··image·url | ||
33207 | ·····*/ | ||
33208 | ····url:·null, | ||
33209 | ····/**· | ||
33210 | ·····*·Property:·size· | ||
33211 | ·····*·{<OpenLayers.Size>|Object}·An·OpenLayers.Size·or | ||
33212 | ·····*·an·object·with·a·'w'·and·'h'·properties. | ||
33213 | ·····*/ | ||
33214 | ····size:·null, | ||
33215 | ····/**· | ||
33216 | ·····*·Property:·offset· | ||
33217 | ·····*·{<OpenLayers.Pixel>|Object}·distance·in·pixels·to·offset·the | ||
33218 | ·····*·image·when·being·rendered.·An·OpenLayers.Pixel·or·an·object | ||
33219 | ·····*·with·a·'x'·and·'y'·properties. | ||
33220 | ·····*/ | ||
33221 | ····offset:·null, | ||
33222 | ····/**· | ||
33223 | ·····*·Property:·calculateOffset· | ||
33224 | ·····*·{Function}·Function·to·calculate·the·offset·(based·on·the·size) | ||
33225 | ·····*/ | ||
33226 | ····calculateOffset:·null, | ||
33227 | ····/**· | ||
33228 | ·····*·Property:·imageDiv· | ||
33229 | ·····*·{DOMElement}· | ||
33230 | ·····*/ | ||
33231 | ····imageDiv:·null, | ||
33232 | ····/**· | ||
33233 | ·····*·Property:·px· | ||
33234 | ·····*·{<OpenLayers.Pixel>|Object}·An·OpenLayers.Pixel·or·an·object | ||
33235 | ·····*·with·a·'x'·and·'y'·properties. | ||
33236 | ·····*/ | ||
33237 | ····px:·null, | ||
33238 | ····/**· | ||
33239 | ·····*·Constructor:·OpenLayers.Icon | ||
33240 | ·····*·Creates·an·icon,·which·is·an·image·tag·in·a·div.·· | ||
33241 | ·····* | ||
33242 | ·····*·url·-·{String}· | ||
33243 | ·····*·size·-·{<OpenLayers.Size>|Object}·An·OpenLayers.Size·or·an | ||
33244 | ·····*···································object·with·a·'w'·and·'h' | ||
33245 | ·····*···································properties. | ||
33246 | ·····*·offset·-·{<OpenLayers.Pixel>|Object}·An·OpenLayers.Pixel·or·an | ||
33247 | ·····*······································object·with·a·'x'·and·'y' | ||
33248 | ·····*······································properties. | ||
33249 | ·····*·calculateOffset·-·{Function}· | ||
33250 | ·····*/ | ||
33251 | ····initialize:·function(url,·size,·offset,·calculateOffset)·{ | ||
33252 | ········this.url·=·url; | ||
33253 | ········this.size·=·size·||·{ | ||
33254 | ············w:·20, | ||
33255 | ············h:·20 | ||
33256 | ········}; | ||
33257 | ········this.offset·=·offset·||·{ | ||
33258 | ············x:·-(this.size.w·/·2), | ||
33259 | ············y:·-(this.size.h·/·2) | ||
33260 | ········}; | ||
33261 | ········this.calculateOffset·=·calculateOffset; | ||
33262 | ········var·id·=·OpenLayers.Util.createUniqueID("OL_Icon_"); | ||
33263 | ········this.imageDiv·=·OpenLayers.Util.createAlphaImageDiv(id); | ||
33264 | ····}, | ||
33265 | ····/**· | ||
33266 | ·····*·Method:·destroy | ||
33267 | ·····*·Nullify·references·and·remove·event·listeners·to·prevent·circular· | ||
33268 | ·····*·references·and·memory·leaks | ||
33269 | ·····*/ | ||
33270 | ····destroy:·function()·{ | ||
33271 | ········//·erase·any·drawn·elements | ||
33272 | ········this.erase(); | ||
33273 | ········OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild); | ||
33274 | ········this.imageDiv.innerHTML·=·""; | ||
33275 | ········this.imageDiv·=·null; | ||
33276 | ····}, | ||
33277 | ····/**· | ||
33278 | ·····*·Method:·clone | ||
33279 | ·····*· | ||
33280 | ·····*·Returns: | ||
33281 | ·····*·{<OpenLayers.Icon>}·A·fresh·copy·of·the·icon. | ||
33282 | ·····*/ | ||
33283 | ····clone:·function()·{ | ||
33284 | ········return·new·OpenLayers.Icon(this.url, | ||
33285 | ············this.size, | ||
33286 | ············this.offset, | ||
33287 | ············this.calculateOffset); | ||
Max diff block lines reached; 3324229/3331469 bytes (99.78%) of diff not shown. |
Offset 13318, 14 lines modified | Offset 13318, 96 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.Icon·=·OpenLayers.Class({ | ||
13326 | ····url:·null, | ||
13327 | ····size:·null, | ||
13328 | ····offset:·null, | ||
13329 | ····calculateOffset:·null, | ||
13330 | ····imageDiv:·null, | ||
13331 | ····px:·null, | ||
13332 | ····initialize:·function(url,·size,·offset,·calculateOffset)·{ | ||
13333 | ········this.url·=·url; | ||
13334 | ········this.size·=·size·||·{ | ||
13335 | ············w:·20, | ||
13336 | ············h:·20 | ||
13337 | ········}; | ||
13338 | ········this.offset·=·offset·||·{ | ||
13339 | ············x:·-(this.size.w·/·2), | ||
13340 | ············y:·-(this.size.h·/·2) | ||
13341 | ········}; | ||
13342 | ········this.calculateOffset·=·calculateOffset; | ||
13343 | ········var·id·=·OpenLayers.Util.createUniqueID("OL_Icon_"); | ||
13344 | ········this.imageDiv·=·OpenLayers.Util.createAlphaImageDiv(id) | ||
13345 | ····}, | ||
13346 | ····destroy:·function()·{ | ||
13347 | ········this.erase(); | ||
13348 | ········OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild); | ||
13349 | ········this.imageDiv.innerHTML·=·""; | ||
13350 | ········this.imageDiv·=·null | ||
13351 | ····}, | ||
13352 | ····clone:·function()·{ | ||
13353 | ········return·new·OpenLayers.Icon(this.url,·this.size,·this.offset,·this.calculateOffset) | ||
13354 | ····}, | ||
13355 | ····setSize:·function(size)·{ | ||
13356 | ········if·(size·!=·null)·{ | ||
13357 | ············this.size·=·size | ||
13358 | ········} | ||
13359 | ········this.draw() | ||
13360 | ····}, | ||
13361 | ····setUrl:·function(url)·{ | ||
13362 | ········if·(url·!=·null)·{ | ||
13363 | ············this.url·=·url | ||
13364 | ········} | ||
13365 | ········this.draw() | ||
13366 | ····}, | ||
13367 | ····draw:·function(px)·{ | ||
13368 | ········OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,·null,·null,·this.size,·this.url,·"absolute"); | ||
13369 | ········this.moveTo(px); | ||
13370 | ········return·this.imageDiv | ||
13371 | ····}, | ||
13372 | ····erase:·function()·{ | ||
13373 | ········if·(this.imageDiv·!=·null·&&·this.imageDiv.parentNode·!=·null)·{ | ||
13374 | ············OpenLayers.Element.remove(this.imageDiv) | ||
13375 | ········} | ||
13376 | ····}, | ||
13377 | ····setOpacity:·function(opacity)·{ | ||
13378 | ········OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,·null,·null,·null,·null,·null,·null,·null,·opacity) | ||
13379 | ····}, | ||
13380 | ····moveTo:·function(px)·{ | ||
13381 | ········if·(px·!=·null)·{ | ||
13382 | ············this.px·=·px | ||
13383 | ········} | ||
13384 | ········if·(this.imageDiv·!=·null)·{ | ||
13385 | ············if·(this.px·==·null)·{ | ||
13386 | ················this.display(false) | ||
13387 | ············}·else·{ | ||
13388 | ················if·(this.calculateOffset)·{ | ||
13389 | ····················this.offset·=·this.calculateOffset(this.size) | ||
13390 | ················} | ||
13391 | ················OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,·null,·{ | ||
13392 | ····················x:·this.px.x·+·this.offset.x, | ||
13393 | ····················y:·this.px.y·+·this.offset.y | ||
13394 | ················}) | ||
13395 | ············} | ||
13396 | ········} | ||
13397 | ····}, | ||
13398 | ····display:·function(display)·{ | ||
13399 | ········this.imageDiv.style.display·=·display·?·""·:·"none" | ||
13400 | ····}, | ||
13401 | ····isDrawn:·function()·{ | ||
13402 | ········var·isDrawn·=·this.imageDiv·&&·this.imageDiv.parentNode·&&·this.imageDiv.parentNode.nodeType·!=·11; | ||
13403 | ········return·isDrawn | ||
13404 | ····}, | ||
13405 | ····CLASS_NAME:·"OpenLayers.Icon" | ||
13406 | }); | ||
13325 | OpenLayers.Format.GeoJSON·=·OpenLayers.Class(OpenLayers.Format.JSON,·{ | 13407 | OpenLayers.Format.GeoJSON·=·OpenLayers.Class(OpenLayers.Format.JSON,·{ |
13326 | ····ignoreExtraDims:·false, | 13408 | ····ignoreExtraDims:·false, |
13327 | ····read:·function(json,·type,·filter)·{ | 13409 | ····read:·function(json,·type,·filter)·{ |
13328 | ········type·=·type·?·type·:·"FeatureCollection"; | 13410 | ········type·=·type·?·type·:·"FeatureCollection"; |
13329 | ········var·results·=·null; | 13411 | ········var·results·=·null; |
13330 | ········var·obj·=·null; | 13412 | ········var·obj·=·null; |
13331 | ········if·(typeof·json·==·"string")·{ | 13413 | ········if·(typeof·json·==·"string")·{ |
Offset 17178, 283 lines modified | Offset 17260, 14 lines modified | ||
17178 | ····process:·null, | 17260 | ····process:·null, |
17179 | ····output:·null, | 17261 | ····output:·null, |
17180 | ····initialize:·function(options)·{ | 17262 | ····initialize:·function(options)·{ |
17181 | ········OpenLayers.Util.extend(this,·options) | 17263 | ········OpenLayers.Util.extend(this,·options) |
17182 | ····}, | 17264 | ····}, |
17183 | ····CLASS_NAME:·"OpenLayers.WPSProcess.ChainLink" | 17265 | ····CLASS_NAME:·"OpenLayers.WPSProcess.ChainLink" |
17184 | }); | 17266 | }); |
17185 | OpenLayers.Symbolizer·=·OpenLayers.Class({ | ||
17186 | ····zIndex:·0, | ||
17187 | ····initialize:·function(config)·{ | ||
17188 | ········OpenLayers.Util.extend(this,·config) | ||
17189 | ····}, | ||
17190 | ····clone:·function()·{ | ||
17191 | ········var·Type·=·eval(this.CLASS_NAME); | ||
17192 | ········return·new·Type(OpenLayers.Util.extend({},·this)) | ||
17193 | ····}, | ||
17194 | ····CLASS_NAME:·"OpenLayers.Symbolizer" | ||
17195 | }); | ||
17196 | OpenLayers.Icon·=·OpenLayers.Class({ | ||
17197 | ····url:·null, | ||
17198 | ····size:·null, | ||
17199 | ····offset:·null, | ||
17200 | ····calculateOffset:·null, | ||
17201 | ····imageDiv:·null, | ||
17202 | ····px:·null, | ||
17203 | ····initialize:·function(url,·size,·offset,·calculateOffset)·{ | ||
17204 | ········this.url·=·url; | ||
17205 | ········this.size·=·size·||·{ | ||
17206 | ············w:·20, | ||
17207 | ············h:·20 | ||
Max diff block lines reached; 1734657/1746600 bytes (99.32%) of diff not shown. |