11.7 MB
/srv/reproducible-results/rbuild-debian/tmp.yTA4y0BZuu/b1/openlayers_2.13.1+ds2-6_i386.changes vs.
/srv/reproducible-results/rbuild-debian/tmp.yTA4y0BZuu/b2/openlayers_2.13.1+ds2-6_i386.changes
228 B
Files
    
Offset 1, 2 lines modifiedOffset 1, 2 lines modified
  
1 ·13d1f5a214b2135591815​eecd86fafa3·​716160·​javascript·​optional·​libjs-​openlayers_2.​13.​1+ds2-​6_all.​deb1 ·c0cdb761909349153c74d​12bb78a0376·​725084·​javascript·​optional·​libjs-​openlayers_2.​13.​1+ds2-​6_all.​deb
11.7 MB
libjs-openlayers_2.13.1+ds2-6_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -​rw-​r-​-​r-​-​···​0········​0········​0········​4·​2018-​08-​01·​06:​43:​49.​000000·​debian-​binary1 -​rw-​r-​-​r-​-​···​0········​0········​0········​4·​2018-​08-​01·​06:​43:​49.​000000·​debian-​binary
2 -​rw-​r-​-​r-​-​···​0········​0········​0·····​3680·​2018-​08-​01·​06:​43:​49.​000000·​control.​tar.​xz2 -​rw-​r-​-​r-​-​···​0········​0········​0·····​3684·​2018-​08-​01·​06:​43:​49.​000000·​control.​tar.​xz
3 -​rw-​r-​-​r-​-​···​0········​0········​0···​712288·​2018-​08-​01·​06:​43:​49.​000000·​data.​tar.​xz3 -​rw-​r-​-​r-​-​···​0········​0········​0···​721208·​2018-​08-​01·​06:​43:​49.​000000·​data.​tar.​xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
11.7 MB
data.tar.xz
11.7 MB
data.tar
2.46 MB
./usr/share/javascript/openlayers/OpenLayers.js
2.46 MB
js-beautify {}
    
Offset 4552, 26985 lines modifiedOffset 4552, 20137 lines modified
4552 ····​write:​·​function(object)​·​{4552 ····​write:​·​function(object)​·​{
4553 ········​throw·​new·​Error('Write·​not·​implemented.​')​;​4553 ········​throw·​new·​Error('Write·​not·​implemented.​')​;​
4554 ····​},​4554 ····​},​
  
4555 ····​CLASS_NAME:​·​"OpenLayers.​Format"4555 ····​CLASS_NAME:​·​"OpenLayers.​Format"
4556 })​;​4556 })​;​
4557 /​*·​=====================​=====================​=====================​=======4557 /​*·​=====================​=====================​=====================​=======
4558 ····​OpenLayers/​Format/​XML.​js4558 ····​OpenLayers/​Format/​CSWGetRecords.​js
4559 ···​=====================​=====================​=====================​=======·​*/​4559 ···​=====================​=====================​=====================​=======·​*/​
  
4560 /​*·​Copyright·​(c)​·​2006-​2013·​by·​OpenLayers·​Contributors·​(see·​authors.​txt·​for4560 /​*·​Copyright·​(c)​·​2006-​2013·​by·​OpenLayers·​Contributors·​(see·​authors.​txt·​for
4561 ·​*·​full·​list·​of·​contributors)​.​·​Published·​under·​the·​2-​clause·​BSD·​license.​4561 ·​*·​full·​list·​of·​contributors)​.​·​Published·​under·​the·​2-​clause·​BSD·​license.​
4562 ·​*·​See·​license.​txt·​in·​the·​OpenLayers·​distribution·​or·​repository·​for·​the4562 ·​*·​See·​license.​txt·​in·​the·​OpenLayers·​distribution·​or·​repository·​for·​the
4563 ·​*·​full·​text·​of·​the·​license.​·​*/​4563 ·​*·​full·​text·​of·​the·​license.​·​*/​
  
4564 /​**4564 /​**
4565 ·​*·​@requires·​OpenLayers/​Format.​js4565 ·​*·​@requires·​OpenLayers/​Format.​js
4566 ·​*/​4566 ·​*/​
  
4567 /​**4567 /​**
4568 ·​*·​Class:​·​OpenLayers.​Format.​XML4568 ·​*·​Class:​·​OpenLayers.​Format.​CSWGetRecords
4569 ·​*·Read·and·​write·​XML.​··​For·​cross-​browser·​XML·generation,​·use·methods·​on·​an4569 ·​*·Default·version·is·2.​0.​2.​
4570 ·​*·····​instance·​of·​the·​XML·​format·​class·​instead·​of·​on·​<code>document<end>.​ 
4571 ·​*·····​The·​DOM·​creation·​and·​traversing·​methods·​exposed·​here·​all·​mimic·​the 
4572 ·​*·····​W3C·​XML·​DOM·​methods.​··​Create·​a·​new·​parser·​with·​the 
4573 ·​*·····​<OpenLayers.​Format.​XML>·​constructor.​ 
4574 ·​*4570 ·​*
4575 ·​*·Inherits·from:​4571 ·​*·Returns:​
4576 ·​*··​-​·<OpenLayers.​Format>4572 ·​*·{<OpenLayers.​Format>}·​A·​CSWGetRecords·​format·​of·​the·​given·​version.​
4577 ·​*/​4573 ·​*/​
4578 OpenLayers.​Format.​XML·=·​OpenLayers.​Class(OpenLayers.​Format,​·​{4574 OpenLayers.​Format.​CSWGetRecords·​=·​function(options)​·​{
 4575 ····​options·​=·​OpenLayers.​Util.​applyDefaults(
 4576 ········​options,​·​OpenLayers.​Format.​CSWGetRecords.​DEFAULTS
 4577 ····​)​;​
 4578 ····​var·​cls·​=·​OpenLayers.​Format.​CSWGetRecords["v"·​+·​options.​version.​replace(/​\.​/​g,​·​"_")​];​
 4579 ····​if·​(!cls)​·​{
 4580 ········​throw·​"Unsupported·​CSWGetRecords·​version:​·​"·​+·​options.​version;​
 4581 ····​}
 4582 ····​return·​new·​cls(options)​;​
 4583 };​
  
4579 ····/​**4584 /​**
4580 ·····*·Property:​·​namespaces4585 ·​*·Constant:​·​DEFAULTS
4581 ·····*·​{Object}·Mapping·​of·namespace·aliases·to·​namespace·​URIs.​··​Properties4586 ·​*·​{Object}·Default·properties·for·​the·​CSWGetRecords·​format.​
4582 ·····*·····​of·​this·​object·​should·​not·​be·​set·​individually.​··​Read-​only.​··​All4587 ·​*/​
4583 ·····​*·····​XML·​subclasses·should·​have·their·​own·​namespaces·​object.​··Use4588 OpenLayers.​Format.​CSWGetRecords.​DEFAULTS·=·​{
4584 ·····​*·····​<setNamespace>·​to·​add·​or·​set·​a·​namespace·​alias·​after·​construction.​4589 ····"version":​·​"2.​0.​2"
 4590 };​
 4591 /​*·​=====================​=====================​=====================​=======
 4592 ····​OpenLayers/​Control.​js
 4593 ···​=====================​=====================​=====================​=======·​*/​
  
 4594 /​*·​Copyright·​(c)​·​2006-​2013·​by·​OpenLayers·​Contributors·​(see·​authors.​txt·​for
 4595 ·​*·​full·​list·​of·​contributors)​.​·​Published·​under·​the·​2-​clause·​BSD·​license.​
 4596 ·​*·​See·​license.​txt·​in·​the·​OpenLayers·​distribution·​or·​repository·​for·​the
 4597 ·​*·​full·​text·​of·​the·​license.​·​*/​
  
 4598 /​**
 4599 ·​*·​@requires·​OpenLayers/​BaseTypes/​Class.​js
 4600 ·​*/​
  
 4601 /​**
 4602 ·​*·​Class:​·​OpenLayers.​Control
 4603 ·​*·​Controls·​affect·​the·​display·​or·​behavior·​of·​the·​map.​·​They·​allow·​everything
 4604 ·​*·​from·​panning·​and·​zooming·​to·​displaying·​a·​scale·​indicator.​·​Controls·​by·
 4605 ·​*·​default·​are·​added·​to·​the·​map·​they·​are·​contained·​within·​however·​it·​is
 4606 ·​*·​possible·​to·​add·​a·​control·​to·​an·​external·​div·​by·​passing·​the·​div·​in·​the
 4607 ·​*·​options·​parameter.​
 4608 ·​*·
 4609 ·​*·​Example:​
 4610 ·​*·​The·​following·​example·​shows·​how·​to·​add·​many·​of·​the·​common·​controls
 4611 ·​*·​to·​a·​map.​
 4612 ·​*·
 4613 ·​*·​>·​var·​map·​=·​new·​OpenLayers.​Map('map',​·​{·​controls:​·​[]·​})​;​
 4614 ·​*·​>
 4615 ·​*·​>·​map.​addControl(new·​OpenLayers.​Control.​PanZoomBar()​)​;​
 4616 ·​*·​>·​map.​addControl(new·​OpenLayers.​Control.​LayerSwitcher({'ascen​ding':​false})​)​;​
 4617 ·​*·​>·​map.​addControl(new·​OpenLayers.​Control.​Permalink()​)​;​
 4618 ·​*·​>·​map.​addControl(new·​OpenLayers.​Control.​Permalink('permalink'​)​)​;​
 4619 ·​*·​>·​map.​addControl(new·​OpenLayers.​Control.​MousePosition()​)​;​
 4620 ·​*·​>·​map.​addControl(new·​OpenLayers.​Control.​OverviewMap()​)​;​
 4621 ·​*·​>·​map.​addControl(new·​OpenLayers.​Control.​KeyboardDefaults()​)​;​
 4622 ·​*
 4623 ·​*·​The·​next·​code·​fragment·​is·​a·​quick·​example·​of·​how·​to·​intercept·
 4624 ·​*·​shift-​mouse·​click·​to·​display·​the·​extent·​of·​the·​bounding·​box
 4625 ·​*·​dragged·​out·​by·​the·​user.​··​Usually·​controls·​are·​not·​created
 4626 ·​*·​in·​exactly·​this·​manner.​··​See·​the·​source·​for·​a·​more·​complete·
 4627 ·​*·​example:​
 4628 ·​*
 4629 ·​*·​>·​var·​control·​=·​new·​OpenLayers.​Control()​;​
 4630 ·​*·​>·​OpenLayers.​Util.​extend(control,​·​{
 4631 ·​*·​>·····​draw:​·​function·​()​·​{
 4632 ·​*·​>·········​/​/​·​this·​Handler.​Box·​will·​intercept·​the·​shift-​mousedown
 4633 ·​*·​>·········​/​/​·​before·​Control.​MouseDefault·​gets·​to·​see·​it
 4634 ·​*·​>·········​this.​box·​=·​new·​OpenLayers.​Handler.​Box(·​control,​·
 4635 ·​*·​>·············​{"done":​·​this.​notice},​
 4636 ·​*·​>·············​{keyMask:​·​OpenLayers.​Handler.​MOD_SHIFT})​;​
 4637 ·​*·​>·········​this.​box.​activate()​;​
 4638 ·​*·​>·····​},​
 4639 ·​*·​>
 4640 ·​*·​>·····​notice:​·​function·​(bounds)​·​{
 4641 ·​*·​>·········​OpenLayers.​Console.​userError(bounds)​;​
 4642 ·​*·​>·····​}
 4643 ·​*·​>·​})​;​·
 4644 ·​*·​>·​map.​addControl(control)​;​
 4645 ·​*·
 4646 ·​*/​
 4647 OpenLayers.​Control·​=·​OpenLayers.​Class({
  
 4648 ····​/​**·
 4649 ·····​*·​Property:​·​id·
 4650 ·····​*·​{String}·
4585 ·····​*/​4651 ·····​*/​
4586 ····namespaces:​·​null,​4652 ····id:​·​null,​
  
4587 ····​/​**4653 ····​/​**·
4588 ·····​*·​Property:​·namespaceAlias4654 ·····​*·​Property:​·​map·
4589 ·····​*·​{Object}·Mapping·of·​namespace·​URI·​to·​namespace·​alias.​··​This·object4655 ·····​*·​{<OpenLayers.​Map>}·this·​gets·​set·​in·​the·addControl()​·function·​in
4590 ·····​*·····​is·​read-​only.​··​Use·​<setNamespace>·​to·​add·​or·set·​a·​namespace·alias.​4656 ·····​*·OpenLayers.​Map·
4591 ·····​*/​4657 ·····​*/​
4592 ····namespaceAlias:​·​null,​4658 ····​map:​·​null,​
  
4593 ····​/​**4659 ····​/​**·
4594 ·····​*·​Property:​·​defaultPrefix4660 ·····​*·APIProperty:​·​div·
4595 ·····​*·​{String}·​The·default·namespace·​alias·for·​creating·element·nodes.​4661 ·····​*·​{DOMElement}·​The·element·that·contains·the·​control,​·if·not·present·the·
 4662 ·····​*·····​control·​is·​placed·​inside·​the·​map.​
4596 ·····​*/​4663 ·····​*/​
Max diff block lines reached; 2570167/2575642 bytes (99.79%) of diff not shown.
998 KB
./usr/share/javascript/openlayers/OpenLayers.min.js
998 KB
js-beautify {}
    
Offset 1624, 2053 lines modifiedOffset 1624, 141 lines modified
1624 ········​throw·​new·​Error("Read·​not·​implemented.​")​1624 ········​throw·​new·​Error("Read·​not·​implemented.​")​
1625 ····​},​1625 ····​},​
1626 ····​write:​·​function(object)​·​{1626 ····​write:​·​function(object)​·​{
1627 ········​throw·​new·​Error("Write·​not·​implemented.​")​1627 ········​throw·​new·​Error("Write·​not·​implemented.​")​
1628 ····​},​1628 ····​},​
1629 ····​CLASS_NAME:​·​"OpenLayers.​Format"1629 ····​CLASS_NAME:​·​"OpenLayers.​Format"
1630 })​;​1630 })​;​
1631 OpenLayers.​Format.​XML·=·​OpenLayers.​Class(OpenLayers.​Format,​·​{1631 OpenLayers.​Format.​CSWGetRecords·​=·​function(options)​·​{
1632 ····​namespaces:​·​null,​1632 ····options·​=·​OpenLayers.​Util.​applyDefaults(options​,​·OpenLayers.​Format.​CSWGetRecords.​DEFAULTS)​;​
1633 ····​namespaceAlias:​·null,​1633 ····var·​cls·​=·​OpenLayers.​Format.​CSWGetRecords["v"·​+·options.​version.​replace(/​\.​/​g,​·​"_")​];​
1634 ····defaultPrefix:​·null,​1634 ····if·​(!cls)​·{
1635 ····​readers:​·{},​1635 ········​throw·​"Unsupported·​CSWGetRecords·​version:​·​"·​+·options.​version
1636 ····​writers:​·​{},​ 
1637 ····​xmldom:​·​null,​ 
1638 ····​initialize:​·​function(options)​·​{ 
1639 ········​if·​(window.​ActiveXObject)​·​{ 
1640 ············​this.​xmldom·​=·​new·​ActiveXObject("Micros​oft.​XMLDOM")​ 
1641 ········​} 
1642 ········​OpenLayers.​Format.​prototype.​initialize.​apply(this,​·​[options])​;​ 
1643 ········​this.​namespaces·​=·​OpenLayers.​Util.​extend({},​·​this.​namespaces)​;​ 
1644 ········​this.​namespaceAlias·​=·​{};​ 
1645 ········​for·​(var·​alias·​in·​this.​namespaces)​·​{ 
1646 ············​this.​namespaceAlias[this.​namespaces[alias]]·​=·​alias 
1647 ········​} 
1648 ····​},​ 
1649 ····​destroy:​·​function()​·​{ 
1650 ········​this.​xmldom·​=·​null;​ 
1651 ········​OpenLayers.​Format.​prototype.​destroy.​apply(this,​·​arguments)​ 
1652 ····​},​ 
1653 ····​setNamespace:​·​function(alias,​·​uri)​·​{ 
1654 ········​this.​namespaces[alias]·​=·​uri;​ 
1655 ········​this.​namespaceAlias[uri]·​=·​alias 
1656 ····​},​ 
1657 ····​read:​·​function(text)​·​{ 
1658 ········​var·​index·​=·​text.​indexOf("<")​;​ 
1659 ········​if·​(index·​>·​0)​·​{ 
1660 ············​text·​=·​text.​substring(index)​ 
1661 ········​} 
1662 ········​var·​node·​=·​OpenLayers.​Util.​Try(OpenLayers.​Function.​bind(function()​·​{ 
1663 ············​var·​xmldom;​ 
1664 ············​if·​(window.​ActiveXObject·​&&·​!this.​xmldom)​·​{ 
1665 ················​xmldom·​=·​new·​ActiveXObject("Micros​oft.​XMLDOM")​ 
1666 ············​}·​else·​{ 
1667 ················​xmldom·​=·​this.​xmldom 
1668 ············​} 
1669 ············​xmldom.​loadXML(text)​;​ 
1670 ············​return·​xmldom 
1671 ········​},​·​this)​,​·​function()​·​{ 
1672 ············​return·​(new·​DOMParser)​.​parseFromString(text,​·​"text/​xml")​ 
1673 ········​},​·​function()​·​{ 
1674 ············​var·​req·​=·​new·​XMLHttpRequest;​ 
1675 ············​req.​open("GET",​·​"data:​"·​+·​"text/​xml"·​+·​";​charset=utf-​8,​"·​+·​encodeURIComponent(te​xt)​,​·​false)​;​ 
1676 ············​if·​(req.​overrideMimeType)​·​{ 
1677 ················​req.​overrideMimeType("tex​t/​xml")​ 
1678 ············​} 
1679 ············​req.​send(null)​;​ 
1680 ············​return·​req.​responseXML 
1681 ········​})​;​ 
1682 ········​if·​(this.​keepData)​·​{ 
1683 ············​this.​data·​=·​node 
1684 ········​} 
1685 ········​return·​node 
1686 ····​},​ 
1687 ····​write:​·​function(node)​·​{ 
1688 ········​var·​data;​ 
1689 ········​if·​(this.​xmldom)​·​{ 
1690 ············​data·​=·​node.​xml 
1691 ········​}·​else·​{ 
1692 ············​var·​serializer·​=·​new·​XMLSerializer;​ 
1693 ············​if·​(node.​nodeType·​==·​1)​·​{ 
1694 ················​var·​doc·​=·​document.​implementation.​createDocument("",​·​"",​·​null)​;​ 
1695 ················​if·​(doc.​importNode)​·​{ 
1696 ····················​node·​=·​doc.​importNode(node,​·​true)​ 
1697 ················​} 
1698 ················​doc.​appendChild(node)​;​ 
1699 ················​data·​=·​serializer.​serializeToString(doc​)​ 
1700 ············​}·​else·​{ 
1701 ················​data·​=·​serializer.​serializeToString(nod​e)​ 
1702 ············​} 
1703 ········​} 
1704 ········​return·​data 
1705 ····​},​ 
1706 ····​createElementNS:​·​function(uri,​·​name)​·​{ 
1707 ········​var·​element;​ 
1708 ········​if·​(this.​xmldom)​·​{ 
1709 ············​if·​(typeof·​uri·​==·​"string")​·​{ 
1710 ················​element·​=·​this.​xmldom.​createNode(1,​·​name,​·​uri)​ 
1711 ············​}·​else·​{ 
1712 ················​element·​=·​this.​xmldom.​createNode(1,​·​name,​·​"")​ 
1713 ············​} 
1714 ········​}·​else·​{ 
1715 ············​element·​=·​document.​createElementNS(uri,​·​name)​ 
1716 ········​} 
1717 ········​return·​element 
1718 ····​},​ 
1719 ····​createDocumentFragmen​t:​·​function()​·​{ 
1720 ········​var·​element;​ 
1721 ········​if·​(this.​xmldom)​·​{ 
1722 ············​element·​=·​this.​xmldom.​createDocumentFragmen​t()​ 
1723 ········​}·​else·​{ 
1724 ············​element·​=·​document.​createDocumentFragmen​t()​ 
1725 ········​} 
1726 ········​return·​element 
1727 ····​},​ 
1728 ····​createTextNode:​·​function(text)​·​{ 
1729 ········​var·​node;​ 
1730 ········​if·​(typeof·​text·​!==·​"string")​·​{ 
1731 ············​text·​=·​String(text)​ 
1732 ········​} 
1733 ········​if·​(this.​xmldom)​·​{ 
1734 ············​node·​=·​this.​xmldom.​createTextNode(text)​ 
1735 ········​}·​else·​{ 
1736 ············​node·​=·​document.​createTextNode(text)​ 
1737 ········​} 
1738 ········​return·​node 
1739 ····​},​ 
1740 ····​getElementsByTagNameN​S:​·​function(node,​·​uri,​·​name)​·​{ 
1741 ········​var·​elements·​=·​[];​ 
1742 ········​if·​(node.​getElementsByTagNameN​S)​·​{ 
1743 ············​elements·​=·​node.​getElementsByTagNameN​S(uri,​·​name)​ 
1744 ········​}·​else·​{ 
1745 ············​var·​allNodes·​=·​node.​getElementsByTagName(​"*")​;​ 
1746 ············​var·​potentialNode,​·​fullName;​ 
1747 ············​for·​(var·​i·​=·​0,​·​len·​=·​allNodes.​length;​·​i·​<·​len;​·​++i)​·​{ 
1748 ················​potentialNode·​=·​allNodes[i];​ 
1749 ················​fullName·​=·​potentialNode.​prefix·​?·​potentialNode.​prefix·​+·​":​"·​+·​name·​:​·​name;​ 
1750 ················​if·​(name·​==·​"*"·​||·​fullName·​==·​potentialNode.​nodeName)​·​{ 
Max diff block lines reached; 1003729/1021419 bytes (98.27%) of diff not shown.
438 KB
./usr/share/javascript/openlayers/OpenLayers.mobile.js
438 KB
js-beautify {}
    
Offset 8836, 4964 lines modifiedOffset 8836, 14 lines modified
8836 ········​getVertices:​·​function(nodes)​·​{8836 ········​getVertices:​·​function(nodes)​·​{
8837 ············​return·​(nodes·​===·​true)​·​?·​[]·​:​·​this.​components.​slice(0,​·​this.​components.​length·​-​·​1)​;​8837 ············​return·​(nodes·​===·​true)​·​?·​[]·​:​·​this.​components.​slice(0,​·​this.​components.​length·​-​·​1)​;​
8838 ········​},​8838 ········​},​
  
8839 ········​CLASS_NAME:​·​"OpenLayers.​Geometry.​LinearRing"8839 ········​CLASS_NAME:​·​"OpenLayers.​Geometry.​LinearRing"
8840 ····​})​;​8840 ····​})​;​
8841 /​*·​=====================​=====================​=====================​=======8841 /​*·​=====================​=====================​=====================​=======
8842 ····​OpenLayers/​Handler.​js 
8843 ···​=====================​=====================​=====================​=======·​*/​ 
  
8844 /​*·​Copyright·​(c)​·​2006-​2013·​by·​OpenLayers·​Contributors·​(see·​authors.​txt·​for 
8845 ·​*·​full·​list·​of·​contributors)​.​·​Published·​under·​the·​2-​clause·​BSD·​license.​ 
8846 ·​*·​See·​license.​txt·​in·​the·​OpenLayers·​distribution·​or·​repository·​for·​the 
8847 ·​*·​full·​text·​of·​the·​license.​·​*/​ 
  
8848 /​** 
8849 ·​*·​@requires·​OpenLayers/​BaseTypes/​Class.​js 
8850 ·​*·​@requires·​OpenLayers/​Events.​js 
8851 ·​*/​ 
  
8852 /​** 
8853 ·​*·​Class:​·​OpenLayers.​Handler 
8854 ·​*·​Base·​class·​to·​construct·​a·​higher-​level·​handler·​for·​event·​sequences.​··​All 
8855 ·​*·····​handlers·​have·​activate·​and·​deactivate·​methods.​··​In·​addition,​·​they·​have 
8856 ·​*·····​methods·​named·​like·​browser·​events.​··​When·​a·​handler·​is·​activated,​·​any 
8857 ·​*·····​additional·​methods·​named·​like·​a·​browser·​event·​is·​registered·​as·​a 
8858 ·​*·····​listener·​for·​the·​corresponding·​event.​··​When·​a·​handler·​is·​deactivated,​ 
8859 ·​*·····​those·​same·​methods·​are·​unregistered·​as·​event·​listeners.​ 
8860 ·​* 
8861 ·​*·​Handlers·​also·​typically·​have·​a·​callbacks·​object·​with·​keys·​named·​like 
8862 ·​*·····​the·​abstracted·​events·​or·​event·​sequences·​that·​they·​are·​in·​charge·​of 
8863 ·​*·····​handling.​··​The·​controls·​that·​wrap·​handlers·​define·​the·​methods·​that 
8864 ·​*·····​correspond·​to·​these·​abstract·​events·​-​·​so·​instead·​of·​listening·​for 
8865 ·​*·····​individual·​browser·​events,​·​they·​only·​listen·​for·​the·​abstract·​events 
8866 ·​*·····​defined·​by·​the·​handler.​ 
8867 ·​*····· 
8868 ·​*·​Handlers·​are·​created·​by·​controls,​·​which·​ultimately·​have·​the·​responsibility 
8869 ·​*·····​of·​making·​changes·​to·​the·​the·​state·​of·​the·​application.​··​Handlers 
8870 ·​*·····​themselves·​may·​make·​temporary·​changes,​·​but·​in·​general·​are·​expected·​to 
8871 ·​*·····​return·​the·​application·​in·​the·​same·​state·​that·​they·​found·​it.​ 
8872 ·​*/​ 
8873 OpenLayers.​Handler·​=·​OpenLayers.​Class({ 
  
8874 ····​/​** 
8875 ·····​*·​Property:​·​id 
8876 ·····​*·​{String} 
8877 ·····​*/​ 
8878 ····​id:​·​null,​ 
  
8879 ····​/​** 
8880 ·····​*·​APIProperty:​·​control 
8881 ·····​*·​{<OpenLayers.​Control>}.​·​The·​control·​that·​initialized·​this·​handler.​··​The 
8882 ·····​*·····​control·​is·​assumed·​to·​have·​a·​valid·​map·​property·​-​·​that·​map·​is·​used 
8883 ·····​*·····​in·​the·​handler's·​own·​setMap·​method.​ 
8884 ·····​*/​ 
8885 ····​control:​·​null,​ 
  
8886 ····​/​** 
8887 ·····​*·​Property:​·​map 
8888 ·····​*·​{<OpenLayers.​Map>} 
8889 ·····​*/​ 
8890 ····​map:​·​null,​ 
  
8891 ····​/​** 
8892 ·····​*·​APIProperty:​·​keyMask 
8893 ·····​*·​{Integer}·​Use·​bitwise·​operators·​and·​one·​or·​more·​of·​the·​OpenLayers.​Handler 
8894 ·····​*·····​constants·​to·​construct·​a·​keyMask.​··​The·​keyMask·​is·​used·​by 
8895 ·····​*·····​<checkModifiers>.​··​If·​the·​keyMask·​matches·​the·​combination·​of·​keys 
8896 ·····​*·····​down·​on·​an·​event,​·​checkModifiers·​returns·​true.​ 
8897 ·····​* 
8898 ·····​*·​Example:​ 
8899 ·····​*·​(code)​ 
8900 ·····​*·····​/​/​·​handler·​only·​responds·​if·​the·​Shift·​key·​is·​down 
8901 ·····​*·····​handler.​keyMask·​=·​OpenLayers.​Handler.​MOD_SHIFT;​ 
8902 ·····​* 
8903 ·····​*·····​/​/​·​handler·​only·​responds·​if·​Ctrl-​Shift·​is·​down 
8904 ·····​*·····​handler.​keyMask·​=·​OpenLayers.​Handler.​MOD_SHIFT·​| 
8905 ·····​*·······················​OpenLayers.​Handler.​MOD_CTRL;​ 
8906 ·····​*·​(end)​ 
8907 ·····​*/​ 
8908 ····​keyMask:​·​null,​ 
  
8909 ····​/​** 
8910 ·····​*·​Property:​·​active 
8911 ·····​*·​{Boolean} 
8912 ·····​*/​ 
8913 ····​active:​·​false,​ 
  
8914 ····​/​** 
8915 ·····​*·​Property:​·​evt 
8916 ·····​*·​{Event}·​This·​property·​references·​the·​last·​event·​handled·​by·​the·​handler.​ 
8917 ·····​*·····​Note·​that·​this·​property·​is·​not·​part·​of·​the·​stable·​API.​··​Use·​of·​the 
8918 ·····​*·····​evt·​property·​should·​be·​restricted·​to·​controls·​in·​the·​library 
8919 ·····​*·····​or·​other·​applications·​that·​are·​willing·​to·​update·​with·​changes·​to 
8920 ·····​*·····​the·​OpenLayers·​code.​ 
8921 ·····​*/​ 
8922 ····​evt:​·​null,​ 
  
8923 ····​/​** 
8924 ·····​*·​Property:​·​touch 
8925 ·····​*·​{Boolean}·​Indicates·​the·​support·​of·​touch·​events.​·​When·​touch·​events·​are· 
8926 ·····​*·····​started·​touch·​will·​be·​true·​and·​all·​mouse·​related·​listeners·​will·​do· 
8927 ·····​*·····​nothing.​ 
8928 ·····​*/​ 
8929 ····​touch:​·​false,​ 
  
8930 ····​/​** 
8931 ·····​*·​Constructor:​·​OpenLayers.​Handler 
8932 ·····​*·​Construct·​a·​handler.​ 
8933 ·····​* 
8934 ·····​*·​Parameters:​ 
8935 ·····​*·​control·​-​·​{<OpenLayers.​Control>}·​The·​control·​that·​initialized·​this 
8936 ·····​*·····​handler.​··​The·​control·​is·​assumed·​to·​have·​a·​valid·​map·​property;​·​that 
8937 ·····​*·····​map·​is·​used·​in·​the·​handler's·​own·​setMap·​method.​··​If·​a·​map·​property 
8938 ·····​*·····​is·​present·​in·​the·​options·​argument·​it·​will·​be·​used·​instead.​ 
8939 ·····​*·​callbacks·​-​·​{Object}·​An·​object·​whose·​properties·​correspond·​to·​abstracted 
8940 ·····​*·····​events·​or·​sequences·​of·​browser·​events.​··​The·​values·​for·​these 
8941 ·····​*·····​properties·​are·​functions·​defined·​by·​the·​control·​that·​get·​called·​by 
8942 ·····​*·····​the·​handler.​ 
8943 ·····​*·​options·​-​·​{Object}·​An·​optional·​object·​whose·​properties·​will·​be·​set·​on 
8944 ·····​*·····​the·​handler.​ 
8945 ·····​*/​ 
8946 ····​initialize:​·​function(control,​·​callbacks,​·​options)​·​{ 
8947 ········​OpenLayers.​Util.​extend(this,​·​options)​;​ 
8948 ········​this.​control·​=·​control;​ 
8949 ········​this.​callbacks·​=·​callbacks;​ 
  
Max diff block lines reached; 279888/448400 bytes (62.42%) of diff not shown.
168 KB
./usr/share/javascript/openlayers/OpenLayers.mobile.min.js
168 KB
js-beautify {}
    
Offset 3469, 2146 lines modifiedOffset 3469, 14 lines modified
3469 ········​return·​intersect3469 ········​return·​intersect
3470 ····​},​3470 ····​},​
3471 ····​getVertices:​·​function(nodes)​·​{3471 ····​getVertices:​·​function(nodes)​·​{
3472 ········​return·​nodes·​===·​true·​?·​[]·​:​·​this.​components.​slice(0,​·​this.​components.​length·​-​·​1)​3472 ········​return·​nodes·​===·​true·​?·​[]·​:​·​this.​components.​slice(0,​·​this.​components.​length·​-​·​1)​
3473 ····​},​3473 ····​},​
3474 ····​CLASS_NAME:​·​"OpenLayers.​Geometry.​LinearRing"3474 ····​CLASS_NAME:​·​"OpenLayers.​Geometry.​LinearRing"
3475 })​;​3475 })​;​
3476 OpenLayers.​Handler·​=·​OpenLayers.​Class({ 
3477 ····​id:​·​null,​ 
3478 ····​control:​·​null,​ 
3479 ····​map:​·​null,​ 
3480 ····​keyMask:​·​null,​ 
3481 ····​active:​·​false,​ 
3482 ····​evt:​·​null,​ 
3483 ····​touch:​·​false,​ 
3484 ····​initialize:​·​function(control,​·​callbacks,​·​options)​·​{ 
3485 ········​OpenLayers.​Util.​extend(this,​·​options)​;​ 
3486 ········​this.​control·​=·​control;​ 
3487 ········​this.​callbacks·​=·​callbacks;​ 
3488 ········​var·​map·​=·​this.​map·​||·​control.​map;​ 
3489 ········​if·​(map)​·​{ 
3490 ············​this.​setMap(map)​ 
3491 ········​} 
3492 ········​this.​id·​=·​OpenLayers.​Util.​createUniqueID(this.​CLASS_NAME·​+·​"_")​ 
3493 ····​},​ 
3494 ····​setMap:​·​function(map)​·​{ 
3495 ········​this.​map·​=·​map 
3496 ····​},​ 
3497 ····​checkModifiers:​·​function(evt)​·​{ 
3498 ········​if·​(this.​keyMask·​==·​null)​·​{ 
3499 ············​return·​true 
3500 ········​} 
3501 ········​var·​keyModifiers·​=·​(evt.​shiftKey·​?·​OpenLayers.​Handler.​MOD_SHIFT·​:​·​0)​·​|·​(evt.​ctrlKey·​?·​OpenLayers.​Handler.​MOD_CTRL·​:​·​0)​·​|·​(evt.​altKey·​?·​OpenLayers.​Handler.​MOD_ALT·​:​·​0)​·​|·​(evt.​metaKey·​?·​OpenLayers.​Handler.​MOD_META·​:​·​0)​;​ 
3502 ········​return·​keyModifiers·​==·​this.​keyMask 
3503 ····​},​ 
3504 ····​activate:​·​function()​·​{ 
3505 ········​if·​(this.​active)​·​{ 
3506 ············​return·​false 
3507 ········​} 
3508 ········​var·​events·​=·​OpenLayers.​Events.​prototype.​BROWSER_EVENTS;​ 
3509 ········​for·​(var·​i·​=·​0,​·​len·​=·​events.​length;​·​i·​<·​len;​·​i++)​·​{ 
3510 ············​if·​(this[events[i]])​·​{ 
3511 ················​this.​register(events[i],​·​this[events[i]])​ 
3512 ············​} 
3513 ········​} 
3514 ········​this.​active·​=·​true;​ 
3515 ········​return·​true 
3516 ····​},​ 
3517 ····​deactivate:​·​function()​·​{ 
3518 ········​if·​(!this.​active)​·​{ 
3519 ············​return·​false 
3520 ········​} 
3521 ········​var·​events·​=·​OpenLayers.​Events.​prototype.​BROWSER_EVENTS;​ 
3522 ········​for·​(var·​i·​=·​0,​·​len·​=·​events.​length;​·​i·​<·​len;​·​i++)​·​{ 
3523 ············​if·​(this[events[i]])​·​{ 
3524 ················​this.​unregister(events[i],​·​this[events[i]])​ 
3525 ············​} 
3526 ········​} 
3527 ········​this.​touch·​=·​false;​ 
3528 ········​this.​active·​=·​false;​ 
3529 ········​return·​true 
3530 ····​},​ 
3531 ····​startTouch:​·​function()​·​{ 
3532 ········​if·​(!this.​touch)​·​{ 
3533 ············​this.​touch·​=·​true;​ 
3534 ············​var·​events·​=·​["mousedown",​·​"mouseup",​·​"mousemove",​·​"click",​·​"dblclick",​·​"mouseout"];​ 
3535 ············​for·​(var·​i·​=·​0,​·​len·​=·​events.​length;​·​i·​<·​len;​·​i++)​·​{ 
3536 ················​if·​(this[events[i]])​·​{ 
3537 ····················​this.​unregister(events[i],​·​this[events[i]])​ 
3538 ················​} 
3539 ············​} 
3540 ········​} 
3541 ····​},​ 
3542 ····​callback:​·​function(name,​·​args)​·​{ 
3543 ········​if·​(name·​&&·​this.​callbacks[name])​·​{ 
3544 ············​this.​callbacks[name].​apply(this.​control,​·​args)​ 
3545 ········​} 
3546 ····​},​ 
3547 ····​register:​·​function(name,​·​method)​·​{ 
3548 ········​this.​map.​events.​registerPriority(name​,​·​this,​·​method)​;​ 
3549 ········​this.​map.​events.​registerPriority(name​,​·​this,​·​this.​setEvent)​ 
3550 ····​},​ 
3551 ····​unregister:​·​function(name,​·​method)​·​{ 
3552 ········​this.​map.​events.​unregister(name,​·​this,​·​method)​;​ 
3553 ········​this.​map.​events.​unregister(name,​·​this,​·​this.​setEvent)​ 
3554 ····​},​ 
3555 ····​setEvent:​·​function(evt)​·​{ 
3556 ········​this.​evt·​=·​evt;​ 
3557 ········​return·​true 
3558 ····​},​ 
3559 ····​destroy:​·​function()​·​{ 
3560 ········​this.​deactivate()​;​ 
3561 ········​this.​control·​=·​this.​map·​=·​null 
3562 ····​},​ 
3563 ····​CLASS_NAME:​·​"OpenLayers.​Handler" 
3564 })​;​ 
3565 OpenLayers.​Handler.​MOD_NONE·​=·​0;​ 
3566 OpenLayers.​Handler.​MOD_SHIFT·​=·​1;​ 
3567 OpenLayers.​Handler.​MOD_CTRL·​=·​2;​ 
3568 OpenLayers.​Handler.​MOD_ALT·​=·​4;​ 
3569 OpenLayers.​Handler.​MOD_META·​=·​8;​ 
3570 OpenLayers.​Handler.​Point·​=·​OpenLayers.​Class(OpenLayers.​Handler,​·​{ 
3571 ····​point:​·​null,​ 
3572 ····​layer:​·​null,​ 
3573 ····​multi:​·​false,​ 
3574 ····​citeCompliant:​·​false,​ 
3575 ····​mouseDown:​·​false,​ 
3576 ····​stoppedDown:​·​null,​ 
3577 ····​lastDown:​·​null,​ 
3578 ····​lastUp:​·​null,​ 
3579 ····​persist:​·​false,​ 
3580 ····​stopDown:​·​false,​ 
3581 ····​stopUp:​·​false,​ 
3582 ····​layerOptions:​·​null,​ 
3583 ····​pixelTolerance:​·​5,​ 
3584 ····​lastTouchPx:​·​null,​ 
3585 ····​initialize:​·​function(control,​·​callbacks,​·​options)​·​{ 
3586 ········​if·​(!(options·​&&·​options.​layerOptions·​&&·​options.​layerOptions.​styleMap)​)​·​{ 
3587 ············​this.​style·​=·​OpenLayers.​Util.​extend(OpenLayers.​Feature.​Vector.​style["default"],​·​{})​ 
3588 ········​} 
3589 ········​OpenLayers.​Handler.​prototype.​initialize.​apply(this,​·​arguments)​ 
3590 ····​},​ 
3591 ····​activate:​·​function()​·​{ 
3592 ········​if·​(!OpenLayers.​Handler.​prototype.​activate.​apply(this,​·​arguments)​)​·​{ 
3593 ············​return·​false 
3594 ········​} 
3595 ········​var·​options·​=·​OpenLayers.​Util.​extend({ 
Max diff block lines reached; 88460/172236 bytes (51.36%) of diff not shown.
5.53 MB
./usr/share/javascript/openlayers/OpenLayers.tests.js
5.53 MB
js-beautify {}
    
Offset 4426, 16374 lines modifiedOffset 4426, 16975 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/​Format.​js4432 ····​OpenLayers/​Util/​vendorPrefix.​js
4433 ···​=====================​=====================​=====================​=======·​*/​4433 ···​=====================​=====================​=====================​=======·​*/​
  
4434 /​*·​Copyright·​(c)​·​2006-​2013·​by·​OpenLayers·​Contributors·​(see·​authors.​txt·​for4434 /​*·​Copyright·​(c)​·​2006-​2013·​by·​OpenLayers·​Contributors·​(see·​authors.​txt·​for
4435 ·​*·​full·​list·​of·​contributors)​.​·​Published·​under·​the·​2-​clause·​BSD·​license.​4435 ·​*·​full·​list·​of·​contributors)​.​·​Published·​under·​the·​2-​clause·​BSD·​license.​
4436 ·​*·​See·​license.​txt·​in·​the·​OpenLayers·​distribution·​or·​repository·​for·​the4436 ·​*·​See·​license.​txt·​in·​the·​OpenLayers·​distribution·​or·​repository·​for·​the
4437 ·​*·​full·​text·​of·​the·​license.​·​*/​4437 ·​*·​full·​text·​of·​the·​license.​·​*/​
  
4438 /​**4438 /​**
4439 ·​*·​@requires·​OpenLayers/​BaseTypes/​Class.​js4439 ·​*·​@requires·​OpenLayers/​SingleFile.​js
4440 ·​*·​@requires·​OpenLayers/​Util.​js 
4441 ·​*/​4440 ·​*/​
  
 4441 OpenLayers.​Util·​=·​OpenLayers.​Util·​||·​{};​
4442 /​**4442 /​**
4443 ·​*·Class:​·​OpenLayers.​Format4443 ·​*·Namespace:​·​OpenLayers.​Util.​vendorPrefix
4444 ·​*·Base·​class·​for·format·​reading/​writing·a·​variety·of·​formats.​··​Subclasses4444 ·​*·A·​collection·​of·​utility·​functions·to·​detect·vendor·​prefixed·​features
4445 ·​*·····​of·​OpenLayers.​Format·​are·​expected·​to·​have·​read·​and·​write·​methods.​ 
4446 ·​*/​4445 ·​*/​
4447 OpenLayers.​Format·​=·​OpenLayers.​Class({4446 OpenLayers.​Util.​vendorPrefix·​=·​(function()​·{
 4447 ····​"use·​strict";​
4448 ····​/​** 
4449 ·····​*·​Property:​·​options 
4450 ·····​*·​{Object}·​A·​reference·​to·​options·​passed·​to·​the·​constructor.​ 
4451 ·····​*/​ 
4452 ····​options:​·​null,​ 
  
4453 ····​/​** 
4454 ·····​*·​APIProperty:​·​externalProjection 
4455 ·····​*·​{<OpenLayers.​Projection>}·​When·​passed·​a·​externalProjection·​and 
4456 ·····​*·····​internalProjection,​·​the·​format·​will·​reproject·​the·​geometries·​it 
4457 ·····​*·····​reads·​or·​writes.​·​The·​externalProjection·​is·​the·​projection·​used·​by 
4458 ·····​*·····​the·​content·​which·​is·​passed·​into·​read·​or·​which·​comes·​out·​of·​write.​ 
4459 ·····​*·····​In·​order·​to·​reproject,​·​a·​projection·​transformation·​function·​for·​the 
4460 ·····​*·····​specified·​projections·​must·​be·​available.​·​This·​support·​may·​be· 
4461 ·····​*·····​provided·​via·​proj4js·​or·​via·​a·​custom·​transformation·​function.​·​See 
4462 ·····​*·····​{<OpenLayers.​Projection.​addTransform>}·​for·​more·​information·​on 
4463 ·····​*·····​custom·​transformations.​ 
4464 ·····​*/​ 
4465 ····​externalProjection:​·​null,​ 
  
4466 ····​/​** 
4467 ·····​*·​APIProperty:​·​internalProjection 
4468 ·····​*·​{<OpenLayers.​Projection>}·​When·​passed·​a·​externalProjection·​and 
4469 ·····​*·····​internalProjection,​·​the·​format·​will·​reproject·​the·​geometries·​it 
4470 ·····​*·····​reads·​or·​writes.​·​The·​internalProjection·​is·​the·​projection·​used·​by 
4471 ·····​*·····​the·​geometries·​which·​are·​returned·​by·​read·​or·​which·​are·​passed·​into 
4472 ·····​*·····​write.​··​In·​order·​to·​reproject,​·​a·​projection·​transformation·​function 
4473 ·····​*·····​for·​the·​specified·​projections·​must·​be·​available.​·​This·​support·​may·​be 
4474 ·····​*·····​provided·​via·​proj4js·​or·​via·​a·​custom·​transformation·​function.​·​See 
4475 ·····​*·····​{<OpenLayers.​Projection.​addTransform>}·​for·​more·​information·​on 
4476 ·····​*·····​custom·​transformations.​ 
4477 ·····​*/​ 
4478 ····​internalProjection:​·​null,​ 
  
4479 ····/​**4448 ····var·​VENDOR_PREFIXES·​=·​["",​·​"O",​·​"ms",​·​"Moz",​·​"Webkit"],​
4480 ·····*·APIProperty:​·data4449 ········divStyle·​=·​document.​createElement("div")​.​style,​
4481 ·····*·​{Object}·​When·​<keepData>·is·true,​·this·​is·​the·parsed·string·sent·​to4450 ········cssCache·=·{},​
4482 ·····*·····​<read>.​4451 ········jsCache·​=·​{};​
4483 ·····​*/​ 
4484 ····​data:​·​null,​ 
  
4485 ····​/​** 
4486 ·····​*·​APIProperty:​·​keepData 
4487 ·····​*·​{Object}·​Maintain·​a·​reference·​(<data>)​·​to·​the·​most·​recently·​read·​data.​ 
4488 ·····​*·····​Default·​is·​false.​ 
4489 ·····​*/​ 
4490 ····​keepData:​·​false,​ 
  
4491 ····​/​**4452 ····​/​**
4492 ·····​*·Constructor:​·OpenLayers.​Format4453 ·····​*·Function:​·domToCss
4493 ·····​*·Instances·of·​this·​class·​are·not·useful.​··​See·​one·​of·​the·subclasses.​4454 ·····​*·Converts·a·​upper·​camel·case·DOM·​style·property·​name·​to·​a·CSS·​property
 4455 ·····​*······​i.​e.​·​transformOrigin·​-​>·​transform-​origin
 4456 ·····​*······​or···​WebkitTransformOrigin​·​-​>·​-​webkit-​transform-​origin
4494 ·····​*4457 ·····​*
4495 ·····​*·​Parameters:​4458 ·····​*·​Parameters:​
4496 ·····​*·options·​-​·​{Object}·​An·optional·object·​with·​properties·​to·set·on·​the4459 ·····​*·​prefixedDom·​-​·{String}·The·​property·​to·convert
4497 ·····​*···········​format 
4498 ·····​* 
4499 ·····​*·​Valid·​options:​ 
4500 ·····​*·​keepData·​-​·​{Boolean}·​If·​true,​·​upon·​<read>,​·​the·​data·​property·​will·​be 
4501 ·····​*·····​set·​to·​the·​parsed·​object·​(e.​g.​·​the·​json·​or·​xml·​object)​.​ 
4502 ·····​*4460 ·····​*
4503 ·····​*·​Returns:​4461 ·····​*·​Returns:​
4504 ·····​*·An·instance·of·​OpenLayers.​Format4462 ·····​*·{String}·​The·CSS·property
4505 ·····​*/​4463 ·····​*/​
4506 ····initialize:​·​function(options)​·​{4464 ····function·​domToCss(prefixedDom)​·​{
4507 ········OpenLayers.​Util.​extend(this,​·​options)​;​4465 ········if·​(!prefixedDom)​·​{
4508 ········this.​options·​=·options;​4466 ············​return·null;​
4509 ····},​4467 ········​}
 4468 ········​return·​prefixedDom.​
 4469 ········​replace(/​([A-​Z])​/​g,​·​function(c)​·​{
 4470 ············​return·​"-​"·​+·​c.​toLowerCase()​;​
 4471 ········​})​.​
 4472 ········​replace(/​^ms-​/​,​·​"-​ms-​")​;​
 4473 ····​}
  
4510 ····​/​**4474 ····​/​**
4511 ·····​*·​APIMethod:​·destroy4475 ·····​*·​APIMethod:​·css
4512 ·····​*·Clean·up.​4476 ·····​*·Detect·​which·​property·​is·used·​for·a·​CSS·property
 4477 ·····​*
 4478 ·····​*·​Parameters:​
 4479 ·····​*·​property·​-​·​{String}·​The·​standard·​(unprefixed)​·​CSS·​property·​name
 4480 ·····​*
 4481 ·····​*·​Returns:​
 4482 ·····​*·​{String}·​The·​standard·​CSS·​property,​·​prefixed·​property·​or·​null·​if·​not
 4483 ·····​*··········​supported
4513 ·····​*/​4484 ·····​*/​
4514 ····destroy:​·function()​·​{},​4485 ····function·css(property)​·​{
 4486 ········​if·​(cssCache[property]·​===·​undefined)​·​{
 4487 ············​var·​domProperty·​=·​property.​
 4488 ············​replace(/​(-​[\s\S])​/​g,​·​function(c)​·​{
 4489 ················​return·​c.​charAt(1)​.​toUpperCase()​;​
 4490 ············​})​;​
 4491 ············​var·​prefixedDom·​=·​style(domProperty)​;​
 4492 ············​cssCache[property]·​=·​domToCss(prefixedDom)​;​
 4493 ········​}
 4494 ········​return·​cssCache[property];​
 4495 ····​}
  
Max diff block lines reached; 5789869/5795233 bytes (99.91%) of diff not shown.
2.11 MB
./usr/share/javascript/openlayers/OpenLayers.tests.min.js
2.11 MB
js-beautify {}
    
Offset 1605, 14 lines modifiedOffset 1605, 3600 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·​str1610 ····​return·​str
1611 };​1611 };​
 1612 OpenLayers.​Util·​=·​OpenLayers.​Util·​||·​{};​
 1613 OpenLayers.​Util.​vendorPrefix·​=·​function()​·​{
 1614 ····​"use·​strict";​
 1615 ····​var·​VENDOR_PREFIXES·​=·​["",​·​"O",​·​"ms",​·​"Moz",​·​"Webkit"],​
 1616 ········​divStyle·​=·​document.​createElement("div")​.​style,​
 1617 ········​cssCache·​=·​{},​
 1618 ········​jsCache·​=·​{};​
  
 1619 ····​function·​domToCss(prefixedDom)​·​{
 1620 ········​if·​(!prefixedDom)​·​{
 1621 ············​return·​null
 1622 ········​}
 1623 ········​return·​prefixedDom.​replace(/​([A-​Z])​/​g,​·​function(c)​·​{
 1624 ············​return·​"-​"·​+·​c.​toLowerCase()​
 1625 ········​})​.​replace(/​^ms-​/​,​·​"-​ms-​")​
 1626 ····​}
  
 1627 ····​function·​css(property)​·​{
 1628 ········​if·​(cssCache[property]·​===·​undefined)​·​{
 1629 ············​var·​domProperty·​=·​property.​replace(/​(-​[\s\S])​/​g,​·​function(c)​·​{
 1630 ················​return·​c.​charAt(1)​.​toUpperCase()​
 1631 ············​})​;​
 1632 ············​var·​prefixedDom·​=·​style(domProperty)​;​
 1633 ············​cssCache[property]·​=·​domToCss(prefixedDom)​
 1634 ········​}
 1635 ········​return·​cssCache[property]
 1636 ····​}
  
 1637 ····​function·​js(obj,​·​property)​·​{
 1638 ········​if·​(jsCache[property]·​===·​undefined)​·​{
 1639 ············​var·​tmpProp,​·​i·​=·​0,​
 1640 ················​l·​=·​VENDOR_PREFIXES.​length,​
 1641 ················​prefix,​·​isStyleObj·​=·​typeof·​obj.​cssText·​!==·​"undefined";​
 1642 ············​jsCache[property]·​=·​null;​
 1643 ············​for·​(;​·​i·​<·​l;​·​i++)​·​{
 1644 ················​prefix·​=·​VENDOR_PREFIXES[i];​
 1645 ················​if·​(prefix)​·​{
 1646 ····················​if·​(!isStyleObj)​·​{
 1647 ························​prefix·​=·​prefix.​toLowerCase()​
 1648 ····················​}
 1649 ····················​tmpProp·​=·​prefix·​+·​property.​charAt(0)​.​toUpperCase()​·​+·​property.​slice(1)​
 1650 ················​}·​else·​{
 1651 ····················​tmpProp·​=·​property
 1652 ················​}
 1653 ················​if·​(obj[tmpProp]·​!==·​undefined)​·​{
 1654 ····················​jsCache[property]·​=·​tmpProp;​
 1655 ····················​break
 1656 ················​}
 1657 ············​}
 1658 ········​}
 1659 ········​return·​jsCache[property]
 1660 ····​}
  
 1661 ····​function·​style(property)​·​{
 1662 ········​return·​js(divStyle,​·​property)​
 1663 ····​}
 1664 ····​return·​{
 1665 ········​css:​·​css,​
 1666 ········​js:​·​js,​
 1667 ········​style:​·​style,​
 1668 ········​cssCache:​·​cssCache,​
 1669 ········​jsCache:​·​jsCache
 1670 ····​}
 1671 }()​;​
 1672 OpenLayers.​Event·​=·​{
 1673 ····​observers:​·​false,​
 1674 ····​KEY_SPACE:​·​32,​
 1675 ····​KEY_BACKSPACE:​·​8,​
 1676 ····​KEY_TAB:​·​9,​
 1677 ····​KEY_RETURN:​·​13,​
 1678 ····​KEY_ESC:​·​27,​
 1679 ····​KEY_LEFT:​·​37,​
 1680 ····​KEY_UP:​·​38,​
 1681 ····​KEY_RIGHT:​·​39,​
 1682 ····​KEY_DOWN:​·​40,​
 1683 ····​KEY_DELETE:​·​46,​
 1684 ····​element:​·​function(event)​·​{
 1685 ········​return·​event.​target·​||·​event.​srcElement
 1686 ····​},​
 1687 ····​isSingleTouch:​·​function(event)​·​{
 1688 ········​return·​event.​touches·​&&·​event.​touches.​length·​==·​1
 1689 ····​},​
 1690 ····​isMultiTouch:​·​function(event)​·​{
 1691 ········​return·​event.​touches·​&&·​event.​touches.​length·​>·​1
 1692 ····​},​
 1693 ····​isLeftClick:​·​function(event)​·​{
 1694 ········​return·​event.​which·​&&·​event.​which·​==·​1·​||·​event.​button·​&&·​event.​button·​==·​1
 1695 ····​},​
 1696 ····​isRightClick:​·​function(event)​·​{
 1697 ········​return·​event.​which·​&&·​event.​which·​==·​3·​||·​event.​button·​&&·​event.​button·​==·​2
 1698 ····​},​
 1699 ····​stop:​·​function(event,​·​allowDefault)​·​{
 1700 ········​if·​(!allowDefault)​·​{
 1701 ············​OpenLayers.​Event.​preventDefault(event)​
 1702 ········​}
 1703 ········​if·​(event.​stopPropagation)​·​{
 1704 ············​event.​stopPropagation()​
 1705 ········​}·​else·​{
 1706 ············​event.​cancelBubble·​=·​true
 1707 ········​}
 1708 ····​},​
 1709 ····​preventDefault:​·​function(event)​·​{
 1710 ········​if·​(event.​preventDefault)​·​{
 1711 ············​event.​preventDefault()​
 1712 ········​}·​else·​{
 1713 ············​event.​returnValue·​=·​false
 1714 ········​}
 1715 ····​},​
 1716 ····​findElement:​·​function(event,​·​tagName)​·​{
 1717 ········​var·​element·​=·​OpenLayers.​Event.​element(event)​;​
 1718 ········​while·​(element.​parentNode·​&&·​(!element.​tagName·​||·​element.​tagName.​toUpperCase()​·​!=·​tagName.​toUpperCase()​)​)​·​{
 1719 ············​element·​=·​element.​parentNode
 1720 ········​}
 1721 ········​return·​element
 1722 ····​},​
 1723 ····​observe:​·​function(elementParam​,​·​name,​·​observer,​·​useCapture)​·​{
 1724 ········​var·​element·​=·​OpenLayers.​Util.​getElement(elementPar​am)​;​
 1725 ········​useCapture·​=·​useCapture·​||·​false;​
 1726 ········​if·​(name·​==·​"keypress"·​&&·​(navigator.​appVersion.​match(/​Konqueror|Safari|KHTM​L/​)​·​||·​element.​attachEvent)​)​·​{
 1727 ············​name·​=·​"keydown"
Max diff block lines reached; 2071246/2209875 bytes (93.73%) of diff not shown.