Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·a8b691201f10cf133bb27cf95f95c2dc·715616·javascript·optional·libjs-openlayers_2.13.1+ds2-11_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-03-06·18:35:30.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-03-06·18:35:30.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3684·2025-03-06·18:35:30.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3684·2025-03-06·18:35:30.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···71 | 3 | -rw-r--r--···0········0········0···711740·2025-03-06·18:35:30.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; 4289196/4299509 bytes (99.76%) of diff not shown. |
Offset 4426, 1943 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/Feature.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 | ·*·Class:·OpenLayers.Feature | ||
4444 | ·*·Features·are·combinations·of·geography·and·attributes.·The·OpenLayers.Feature | ||
4445 | ·*·····class·specifically·combines·a·marker·and·a·lonlat. | ||
4446 | ·*/ | ||
4447 | OpenLayers.Feature·=·OpenLayers.Class({ | ||
4448 | ····/**· | ||
4449 | ·····*·Property:·layer· | ||
4450 | ·····*·{<OpenLayers.Layer>}· | ||
4451 | ·····*/ | ||
4452 | ····layer:·null, | ||
4453 | ····/**· | ||
4454 | ·····*·Property:·id· | ||
4455 | ·····*·{String}· | ||
4456 | ·····*/ | ||
4457 | ····id:·null, | ||
4458 | ····/**· | ||
4459 | ·····*·Property:·lonlat· | ||
4460 | ·····*·{<OpenLayers.LonLat>}· | ||
4461 | ·····*/ | ||
4462 | ····lonlat:·null, | ||
4463 | ····/**· | ||
4464 | ·····*·Property:·data· | ||
4465 | ·····*·{Object}· | ||
4466 | ·····*/ | ||
4467 | ····data:·null, | ||
4468 | ····/**· | ||
4469 | ·····*·Property:·marker· | ||
4470 | ·····*·{<OpenLayers.Marker>}· | ||
4471 | ·····*/ | ||
4472 | ····marker:·null, | ||
4473 | ····/** | ||
4474 | ·····*·APIProperty:·popupClass | ||
4475 | ·····*·{<OpenLayers.Class>}·The·class·which·will·be·used·to·instantiate | ||
4476 | ·····*·····a·new·Popup.·Default·is·<OpenLayers.Popup.Anchored>. | ||
4477 | ·····*/ | ||
4478 | ····popupClass:·null, | ||
4479 | ····/**· | ||
4480 | ·····*·Property:·popup· | ||
4481 | ·····*·{<OpenLayers.Popup>}· | ||
4482 | ·····*/ | ||
4483 | ····popup:·null, | ||
4484 | ····/**· | ||
4485 | ·····*·Constructor:·OpenLayers.Feature | ||
4486 | ·····*·Constructor·for·features. | ||
4487 | ·····* | ||
4488 | ·····*·Parameters: | ||
4489 | ·····*·layer·-·{<OpenLayers.Layer>}· | ||
4490 | ·····*·lonlat·-·{<OpenLayers.LonLat>}· | ||
4491 | ·····*·data·-·{Object}· | ||
4492 | ·····*· | ||
4493 | ·····*·Returns: | ||
4494 | ·····*·{<OpenLayers.Feature>} | ||
4495 | ·····*/ | ||
4496 | ····initialize:·function(layer,·lonlat,·data)·{ | ||
4497 | ········this.layer·=·layer; | ||
4498 | ········this.lonlat·=·lonlat; | ||
4499 | ········this.data·=·(data·!=·null)·?·data·:·{}; | ||
4500 | ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_"); | ||
4501 | ····}, | ||
4502 | ····/**· | ||
4503 | ·····*·Method:·destroy | ||
4504 | ·····*·nullify·references·to·prevent·circular·references·and·memory·leaks | ||
4505 | ·····*/ | ||
4506 | ····destroy:·function()·{ | ||
4507 | ········//remove·the·popup·from·the·map | ||
4508 | ········if·((this.layer·!=·null)·&&·(this.layer.map·!=·null))·{ | ||
4509 | ············if·(this.popup·!=·null)·{ | ||
4510 | ················this.layer.map.removePopup(this.popup); | ||
4511 | ············} | ||
4512 | ········} | ||
4513 | ········//·remove·the·marker·from·the·layer | ||
4514 | ········if·(this.layer·!=·null·&&·this.marker·!=·null)·{ | ||
4515 | ············this.layer.removeMarker(this.marker); | ||
4516 | ········} | ||
4517 | ········this.layer·=·null; | ||
4518 | ········this.id·=·null; | ||
4519 | ········this.lonlat·=·null; | ||
4520 | ········this.data·=·null; | ||
4521 | ········if·(this.marker·!=·null)·{ | ||
4522 | ············this.destroyMarker(this.marker); | ||
4523 | ············this.marker·=·null; | ||
4524 | ········} | ||
4525 | ········if·(this.popup·!=·null)·{ | ||
4526 | ············this.destroyPopup(this.popup); | ||
4527 | ············this.popup·=·null; | ||
4528 | ········} | ||
4529 | ····}, | ||
4530 | ····/** | ||
4531 | ·····*·Method:·onScreen | ||
4532 | ·····*· | ||
4533 | ·····*·Returns: | ||
4534 | ·····*·{Boolean}·Whether·or·not·the·feature·is·currently·visible·on·screen | ||
4535 | ·····*···········(based·on·its·'lonlat'·property) | ||
Max diff block lines reached; 804958/872495 bytes (92.26%) of diff not shown. |
Offset 1605, 752 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.Feature·=·OpenLayers.Class({ | ||
1613 | ····layer:·null, | ||
1614 | ····id:·null, | ||
1615 | ····lonlat:·null, | ||
1616 | ····data:·null, | ||
1617 | ····marker:·null, | ||
1618 | ····popupClass:·null, | ||
1619 | ····popup:·null, | ||
1620 | ····initialize:·function(layer,·lonlat,·data)·{ | ||
1621 | ········this.layer·=·layer; | ||
1622 | ········this.lonlat·=·lonlat; | ||
1623 | ········this.data·=·data·!=·null·?·data·:·{}; | ||
1624 | ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_") | ||
1625 | ····}, | ||
1626 | ····destroy:·function()·{ | ||
1627 | ········if·(this.layer·!=·null·&&·this.layer.map·!=·null)·{ | ||
1628 | ············if·(this.popup·!=·null)·{ | ||
1629 | ················this.layer.map.removePopup(this.popup) | ||
1630 | ············} | ||
1631 | ········} | ||
1632 | ········if·(this.layer·!=·null·&&·this.marker·!=·null)·{ | ||
1633 | ············this.layer.removeMarker(this.marker) | ||
1634 | ········} | ||
1635 | ········this.layer·=·null; | ||
1636 | ········this.id·=·null; | ||
1637 | ········this.lonlat·=·null; | ||
1638 | ········this.data·=·null; | ||
1639 | ········if·(this.marker·!=·null)·{ | ||
1640 | ············this.destroyMarker(this.marker); | ||
1641 | ············this.marker·=·null | ||
1642 | ········} | ||
1643 | ········if·(this.popup·!=·null)·{ | ||
1644 | ············this.destroyPopup(this.popup); | ||
1645 | ············this.popup·=·null | ||
1646 | ········} | ||
1647 | ····}, | ||
1648 | ····onScreen:·function()·{ | ||
1649 | ········var·onScreen·=·false; | ||
1650 | ········if·(this.layer·!=·null·&&·this.layer.map·!=·null)·{ | ||
1651 | ············var·screenBounds·=·this.layer.map.getExtent(); | ||
1652 | ············onScreen·=·screenBounds.containsLonLat(this.lonlat) | ||
1653 | ········} | ||
1654 | ········return·onScreen | ||
1655 | ····}, | ||
1656 | ····createMarker:·function()·{ | ||
1657 | ········if·(this.lonlat·!=·null)·{ | ||
1658 | ············this.marker·=·new·OpenLayers.Marker(this.lonlat,·this.data.icon) | ||
1659 | ········} | ||
1660 | ········return·this.marker | ||
1661 | ····}, | ||
1662 | ····destroyMarker:·function()·{ | ||
1663 | ········this.marker.destroy() | ||
1664 | ····}, | ||
1665 | ····createPopup:·function(closeBox)·{ | ||
1666 | ········if·(this.lonlat·!=·null)·{ | ||
1667 | ············if·(!this.popup)·{ | ||
1668 | ················var·anchor·=·this.marker·?·this.marker.icon·:·null; | ||
1669 | ················var·popupClass·=·this.popupClass·?·this.popupClass·:·OpenLayers.Popup.Anchored; | ||
1670 | ················this.popup·=·new·popupClass(this.id·+·"_popup",·this.lonlat,·this.data.popupSize,·this.data.popupContentHTML,·anchor,·closeBox) | ||
1671 | ············} | ||
1672 | ············if·(this.data.overflow·!=·null)·{ | ||
1673 | ················this.popup.contentDiv.style.overflow·=·this.data.overflow | ||
1674 | ············} | ||
1675 | ············this.popup.feature·=·this | ||
1676 | ········} | ||
1677 | ········return·this.popup | ||
1678 | ····}, | ||
1679 | ····destroyPopup:·function()·{ | ||
1680 | ········if·(this.popup)·{ | ||
1681 | ············this.popup.feature·=·null; | ||
1682 | ············this.popup.destroy(); | ||
1683 | ············this.popup·=·null | ||
1684 | ········} | ||
1685 | ····}, | ||
1686 | ····CLASS_NAME:·"OpenLayers.Feature" | ||
1687 | }); | ||
1688 | OpenLayers.State·=·{ | ||
1689 | ····UNKNOWN:·"Unknown", | ||
1690 | ····INSERT:·"Insert", | ||
1691 | ····UPDATE:·"Update", | ||
1692 | ····DELETE:·"Delete" | ||
1693 | }; | ||
1694 | OpenLayers.Feature.Vector·=·OpenLayers.Class(OpenLayers.Feature,·{ | ||
1695 | ····fid:·null, | ||
1696 | ····geometry:·null, | ||
1697 | ····attributes:·null, | ||
1698 | ····bounds:·null, | ||
1699 | ····state:·null, | ||
1700 | ····style:·null, | ||
1701 | ····url:·null, | ||
1702 | ····renderIntent:·"default", | ||
1703 | ····modified:·null, | ||
1704 | ····initialize:·function(geometry,·attributes,·style)·{ | ||
1705 | ········OpenLayers.Feature.prototype.initialize.apply(this,·[null,·null,·attributes]); | ||
1706 | ········this.lonlat·=·null; | ||
1707 | ········this.geometry·=·geometry·?·geometry·:·null; | ||
1708 | ········this.state·=·null; | ||
1709 | ········this.attributes·=·{}; | ||
1710 | ········if·(attributes)·{ | ||
1711 | ············this.attributes·=·OpenLayers.Util.extend(this.attributes,·attributes) | ||
1712 | ········} | ||
1713 | ········this.style·=·style·?·style·:·null | ||
1714 | ····}, | ||
1715 | ····destroy:·function()·{ | ||
1716 | ········if·(this.layer)·{ | ||
1717 | ············this.layer.removeFeatures(this); | ||
1718 | ············this.layer·=·null | ||
1719 | ········} | ||
1720 | ········this.geometry·=·null; | ||
1721 | ········this.modified·=·null; | ||
1722 | ········OpenLayers.Feature.prototype.destroy.apply(this,·arguments) | ||
1723 | ····}, | ||
1724 | ····clone:·function()·{ | ||
1725 | ········return·new·OpenLayers.Feature.Vector(this.geometry·?·this.geometry.clone()·:·null,·this.attributes,·this.style) | ||
1726 | ····}, | ||
1727 | ····onScreen:·function(boundsOnly)·{ | ||
1728 | ········var·onScreen·=·false; | ||
1729 | ········if·(this.layer·&&·this.layer.map)·{ | ||
1730 | ············var·screenBounds·=·this.layer.map.getExtent(); | ||
1731 | ············if·(boundsOnly)·{ | ||
Max diff block lines reached; 340535/367871 bytes (92.57%) 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; 1540674/1545207 bytes (99.71%) 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; 1231310/1243160 bytes (99.05%) 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; 418357/423427 bytes (98.80%) of diff not shown. |
Offset 33176, 1630 lines modified | Offset 33176, 14 lines modified | ||
33176 | /** | 33176 | /** |
33177 | ·*·Constant:·CORNER_SIZE | 33177 | ·*·Constant:·CORNER_SIZE |
33178 | ·*·{Integer}·5.·Border·space·for·the·RICO·corners. | 33178 | ·*·{Integer}·5.·Border·space·for·the·RICO·corners. |
33179 | ·*/ | 33179 | ·*/ |
33180 | OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5; | 33180 | OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5; |
33181 | /*·====================================================================== | 33181 | /*·====================================================================== |
33182 | ····OpenLayers/Symbolizer.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.Symbolizer | ||
33193 | ·*·Base·class·representing·a·symbolizer·used·for·feature·rendering. | ||
33194 | ·*/ | ||
33195 | OpenLayers.Symbolizer·=·OpenLayers.Class({ | ||
33196 | ····/** | ||
33197 | ·····*·APIProperty:·zIndex | ||
33198 | ·····*·{Number}·The·zIndex·determines·the·rendering·order·for·a·symbolizer. | ||
33199 | ·····*·····Symbolizers·with·larger·zIndex·values·are·rendered·over·symbolizers | ||
33200 | ·····*·····with·smaller·zIndex·values.··Default·is·0. | ||
33201 | ·····*/ | ||
33202 | ····zIndex:·0, | ||
33203 | ····/** | ||
33204 | ·····*·Constructor:·OpenLayers.Symbolizer | ||
33205 | ·····*·Instances·of·this·class·are·not·useful.··See·one·of·the·subclasses. | ||
33206 | ·····* | ||
33207 | ·····*·Parameters: | ||
33208 | ·····*·config·-·{Object}·An·object·containing·properties·to·be·set·on·the· | ||
33209 | ·····*·····symbolizer.··Any·documented·symbolizer·property·can·be·set·at· | ||
33210 | ·····*·····construction. | ||
33211 | ·····* | ||
33212 | ·····*·Returns: | ||
33213 | ·····*·A·new·symbolizer. | ||
33214 | ·····*/ | ||
33215 | ····initialize:·function(config)·{ | ||
33216 | ········OpenLayers.Util.extend(this,·config); | ||
33217 | ····}, | ||
33218 | ····/**· | ||
33219 | ·····*·APIMethod:·clone | ||
33220 | ·····*·Create·a·copy·of·this·symbolizer. | ||
33221 | ·····* | ||
33222 | ·····*·Returns·a·symbolizer·of·the·same·type·with·the·same·properties. | ||
33223 | ·····*/ | ||
33224 | ····clone:·function()·{ | ||
33225 | ········var·Type·=·eval(this.CLASS_NAME); | ||
33226 | ········return·new·Type(OpenLayers.Util.extend({},·this)); | ||
33227 | ····}, | ||
33228 | ····CLASS_NAME:·"OpenLayers.Symbolizer" | ||
33229 | }); | ||
33230 | /*·====================================================================== | ||
33231 | ····OpenLayers/Rule.js | ||
33232 | ···======================================================================·*/ | ||
33233 | /*·Copyright·(c)·2006-2013·by·OpenLayers·Contributors·(see·authors.txt·for | ||
33234 | ·*·full·list·of·contributors).·Published·under·the·2-clause·BSD·license. | ||
33235 | ·*·See·license.txt·in·the·OpenLayers·distribution·or·repository·for·the | ||
33236 | ·*·full·text·of·the·license.·*/ | ||
33237 | /** | ||
33238 | ·*·@requires·OpenLayers/BaseTypes/Class.js | ||
33239 | ·*·@requires·OpenLayers/Util.js | ||
33240 | ·*·@requires·OpenLayers/Style.js | ||
33241 | ·*/ | ||
33242 | /** | ||
33243 | ·*·Class:·OpenLayers.Rule | ||
33244 | ·*·This·class·represents·an·SLD·Rule,·as·being·used·for·rule-based·SLD·styling. | ||
33245 | ·*/ | ||
33246 | OpenLayers.Rule·=·OpenLayers.Class({ | ||
33247 | ····/** | ||
33248 | ·····*·Property:·id | ||
33249 | ·····*·{String}·A·unique·id·for·this·session. | ||
33250 | ·····*/ | ||
33251 | ····id:·null, | ||
33252 | ····/** | ||
33253 | ·····*·APIProperty:·name | ||
33254 | ·····*·{String}·name·of·this·rule | ||
33255 | ·····*/ | ||
33256 | ····name:·null, | ||
33257 | ····/** | ||
33258 | ·····*·Property:·title | ||
33259 | ·····*·{String}·Title·of·this·rule·(set·if·included·in·SLD) | ||
33260 | ·····*/ | ||
33261 | ····title:·null, | ||
33262 | ····/** | ||
33263 | ·····*·Property:·description | ||
33264 | ·····*·{String}·Description·of·this·rule·(set·if·abstract·is·included·in·SLD) | ||
33265 | ·····*/ | ||
33266 | ····description:·null, | ||
33267 | ····/** | ||
33268 | ·····*·Property:·context | ||
33269 | ·····*·{Object}·An·optional·object·with·properties·that·the·rule·should·be | ||
33270 | ·····*·evaluated·against.·If·no·context·is·specified,·feature.attributes·will | ||
33271 | ·····*·be·used. | ||
33272 | ·····*/ | ||
33273 | ····context:·null, | ||
33274 | ····/** | ||
33275 | ·····*·Property:·filter | ||
33276 | ·····*·{<OpenLayers.Filter>}·Optional·filter·for·the·rule. | ||
33277 | ·····*/ | ||
33278 | ····filter:·null, | ||
33279 | ····/** | ||
33280 | ·····*·Property:·elseFilter | ||
Max diff block lines reached; 2846469/2895994 bytes (98.29%) of diff not shown. |
Offset 13318, 520 lines modified | Offset 13318, 14 lines modified | ||
13318 | ········var·corner·=·OpenLayers.Bounds.oppositeQuadrant(this.relativePosition); | 13318 | ········var·corner·=·OpenLayers.Bounds.oppositeQuadrant(this.relativePosition); |
13319 | ········OpenLayers.Util.removeItem(corners,·corner); | 13319 | ········OpenLayers.Util.removeItem(corners,·corner); |
13320 | ········return·corners.join("·") | 13320 | ········return·corners.join("·") |
13321 | ····}, | 13321 | ····}, |
13322 | ····CLASS_NAME:·"OpenLayers.Popup.AnchoredBubble" | 13322 | ····CLASS_NAME:·"OpenLayers.Popup.AnchoredBubble" |
13323 | }); | 13323 | }); |
13324 | OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5; | 13324 | OpenLayers.Popup.AnchoredBubble.CORNER_SIZE·=·5; |
13325 | OpenLayers.Symbolizer·=·OpenLayers.Class({ | ||
13326 | ····zIndex:·0, | ||
13327 | ····initialize:·function(config)·{ | ||
13328 | ········OpenLayers.Util.extend(this,·config) | ||
13329 | ····}, | ||
13330 | ····clone:·function()·{ | ||
13331 | ········var·Type·=·eval(this.CLASS_NAME); | ||
13332 | ········return·new·Type(OpenLayers.Util.extend({},·this)) | ||
13333 | ····}, | ||
13334 | ····CLASS_NAME:·"OpenLayers.Symbolizer" | ||
13335 | }); | ||
13336 | OpenLayers.Rule·=·OpenLayers.Class({ | ||
13337 | ····id:·null, | ||
13338 | ····name:·null, | ||
13339 | ····title:·null, | ||
13340 | ····description:·null, | ||
13341 | ····context:·null, | ||
13342 | ····filter:·null, | ||
13343 | ····elseFilter:·false, | ||
13344 | ····symbolizer:·null, | ||
13345 | ····symbolizers:·null, | ||
13346 | ····minScaleDenominator:·null, | ||
13347 | ····maxScaleDenominator:·null, | ||
13348 | ····initialize:·function(options)·{ | ||
13349 | ········this.symbolizer·=·{}; | ||
13350 | ········OpenLayers.Util.extend(this,·options); | ||
13351 | ········if·(this.symbolizers)·{ | ||
13352 | ············delete·this.symbolizer | ||
13353 | ········} | ||
13354 | ········this.id·=·OpenLayers.Util.createUniqueID(this.CLASS_NAME·+·"_") | ||
13355 | ····}, | ||
13356 | ····destroy:·function()·{ | ||
13357 | ········for·(var·i·in·this.symbolizer)·{ | ||
13358 | ············this.symbolizer[i]·=·null | ||
13359 | ········} | ||
13360 | ········this.symbolizer·=·null; | ||
13361 | ········delete·this.symbolizers | ||
13362 | ····}, | ||
13363 | ····evaluate:·function(feature)·{ | ||
13364 | ········var·context·=·this.getContext(feature); | ||
13365 | ········var·applies·=·true; | ||
13366 | ········if·(this.minScaleDenominator·||·this.maxScaleDenominator)·{ | ||
13367 | ············var·scale·=·feature.layer.map.getScale() | ||
13368 | ········} | ||
13369 | ········if·(this.minScaleDenominator)·{ | ||
13370 | ············applies·=·scale·>=·OpenLayers.Style.createLiteral(this.minScaleDenominator,·context) | ||
13371 | ········} | ||
13372 | ········if·(applies·&&·this.maxScaleDenominator)·{ | ||
13373 | ············applies·=·scale·<·OpenLayers.Style.createLiteral(this.maxScaleDenominator,·context) | ||
13374 | ········} | ||
13375 | ········if·(applies·&&·this.filter)·{ | ||
13376 | ············if·(this.filter.CLASS_NAME·==·"OpenLayers.Filter.FeatureId")·{ | ||
13377 | ················applies·=·this.filter.evaluate(feature) | ||
13378 | ············}·else·{ | ||
13379 | ················applies·=·this.filter.evaluate(context) | ||
13380 | ············} | ||
13381 | ········} | ||
13382 | ········return·applies | ||
13383 | ····}, | ||
13384 | ····getContext:·function(feature)·{ | ||
13385 | ········var·context·=·this.context; | ||
13386 | ········if·(!context)·{ | ||
13387 | ············context·=·feature.attributes·||·feature.data | ||
13388 | ········} | ||
13389 | ········if·(typeof·this.context·==·"function")·{ | ||
13390 | ············context·=·this.context(feature) | ||
13391 | ········} | ||
13392 | ········return·context | ||
13393 | ····}, | ||
13394 | ····clone:·function()·{ | ||
13395 | ········var·options·=·OpenLayers.Util.extend({},·this); | ||
13396 | ········if·(this.symbolizers)·{ | ||
13397 | ············var·len·=·this.symbolizers.length; | ||
13398 | ············options.symbolizers·=·new·Array(len); | ||
13399 | ············for·(var·i·=·0;·i·<·len;·++i)·{ | ||
13400 | ················options.symbolizers[i]·=·this.symbolizers[i].clone() | ||
13401 | ············} | ||
13402 | ········}·else·{ | ||
13403 | ············options.symbolizer·=·{}; | ||
13404 | ············var·value,·type; | ||
13405 | ············for·(var·key·in·this.symbolizer)·{ | ||
13406 | ················value·=·this.symbolizer[key]; | ||
13407 | ················type·=·typeof·value; | ||
13408 | ················if·(type·===·"object")·{ | ||
13409 | ····················options.symbolizer[key]·=·OpenLayers.Util.extend({},·value) | ||
13410 | ················}·else·if·(type·===·"string")·{ | ||
13411 | ····················options.symbolizer[key]·=·value | ||
13412 | ················} | ||
13413 | ············} | ||
13414 | ········} | ||
13415 | ········options.filter·=·this.filter·&&·this.filter.clone(); | ||
13416 | ········options.context·=·this.context·&&·OpenLayers.Util.extend({},·this.context); | ||
13417 | ········return·new·OpenLayers.Rule(options) | ||
13418 | ····}, | ||
13419 | ····CLASS_NAME:·"OpenLayers.Rule" | ||
13420 | }); | ||
13421 | OpenLayers.Symbolizer.Point·=·OpenLayers.Class(OpenLayers.Symbolizer,·{ | ||
13422 | ····initialize:·function(config)·{ | ||
13423 | ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments) | ||
13424 | ····}, | ||
13425 | ····CLASS_NAME:·"OpenLayers.Symbolizer.Point" | ||
13426 | }); | ||
13427 | OpenLayers.Symbolizer.Line·=·OpenLayers.Class(OpenLayers.Symbolizer,·{ | ||
13428 | ····initialize:·function(config)·{ | ||
13429 | ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments) | ||
13430 | ····}, | ||
13431 | ····CLASS_NAME:·"OpenLayers.Symbolizer.Line" | ||
13432 | }); | ||
13433 | OpenLayers.Symbolizer.Polygon·=·OpenLayers.Class(OpenLayers.Symbolizer,·{ | ||
13434 | ····initialize:·function(config)·{ | ||
13435 | ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments) | ||
13436 | ····}, | ||
13437 | ····CLASS_NAME:·"OpenLayers.Symbolizer.Polygon" | ||
13438 | }); | ||
13439 | OpenLayers.Symbolizer.Text·=·OpenLayers.Class(OpenLayers.Symbolizer,·{ | ||
13440 | ····initialize:·function(config)·{ | ||
13441 | ········OpenLayers.Symbolizer.prototype.initialize.apply(this,·arguments) | ||
13442 | ····}, | ||
13443 | ····CLASS_NAME:·"OpenLayers.Symbolizer.Text" | ||
13444 | }); | ||
Max diff block lines reached; 1393873/1411256 bytes (98.77%) of diff not shown. |