Add basic slippy map implementation. Needs apache config to keep torggle out of this dir.

ents.gpx file should really come from elsewhere once this is working.
The javascript link should point to /usr/share/javascript which contains openlayers (from libjs-openlayers)
This commit is contained in:
expoonserver 2013-08-11 21:03:59 +01:00
parent 2e40991173
commit 6224053447
5 changed files with 887 additions and 0 deletions

387
map/ents.gpx Normal file
View File

@ -0,0 +1,387 @@
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.0" creator="survex - findentrances" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<wpt lon="13.80662456" lat="47.68403935"><ele>1675.46</ele><name>103.1</name></wpt>
<wpt lon="13.81571300" lat="47.66992698"><ele>1702.30</ele><name>113.sumpf.8_10</name></wpt>
<wpt lon="13.80887496" lat="47.66860291"><ele>1660.32</ele><name>142.45</name></wpt>
<wpt lon="13.81269145" lat="47.67096625"><ele>1757.62</ele><name>143.canyon.b0</name></wpt>
<wpt lon="13.81263080" lat="47.67112084"><ele>1757.83</ele><name>143.p143</name></wpt>
<wpt lon="13.81107461" lat="47.68053123"><ele>1734.28</ele><name>145.p145a</name></wpt>
<wpt lon="13.81080964" lat="47.68049455"><ele>1731.76</ele><name>145.p145b</name></wpt>
<wpt lon="13.81765539" lat="47.68974746"><ele>1813.22</ele><name>2002-03to2004-15.6</name></wpt>
<wpt lon="13.81867604" lat="47.68933134"><ele>1841.33</ele><name>2002-03to2004-15.p2002-03</name></wpt>
<wpt lon="13.81757807" lat="47.69059403"><ele>1807.24</ele><name>2002-03to2004-15.p2004-15a</name></wpt>
<wpt lon="13.81728558" lat="47.69052556"><ele>1802.63</ele><name>2004-15to2004-14.p2004-14</name></wpt>
<wpt lon="13.81757807" lat="47.69059403"><ele>1807.24</ele><name>2004-15to2004-14.p2004-15a</name></wpt>
<wpt lon="13.81953482" lat="47.69388645"><ele>1867.14</ele><name>2004-18to2006-09.p2004-18</name></wpt>
<wpt lon="13.82154185" lat="47.69467459"><ele>1912.43</ele><name>2004-18to2006-09.p2006-09</name></wpt>
<wpt lon="13.82081734" lat="47.69494144"><ele>1905.08</ele><name>2004-18to2006-09.p258a</name></wpt>
<wpt lon="13.82094009" lat="47.69491835"><ele>1910.23</ele><name>2004-18to2006-09.p258b</name></wpt>
<wpt lon="13.81243024" lat="47.68251753"><ele>1738.38</ele><name>2006-06.4</name></wpt>
<wpt lon="13.81217853" lat="47.68257766"><ele>1731.12</ele><name>2006-06.7</name></wpt>
<wpt lon="13.81014185" lat="47.66977304"><ele>1726.84</ele><name>2007-neu.1</name></wpt>
<wpt lon="13.82209137" lat="47.69936311"><ele>1909.80</ele><name>2010-03.1</name></wpt>
<wpt lon="13.82157217" lat="47.69881775"><ele>1919.28</ele><name>2012-ns-03.1</name></wpt>
<wpt lon="13.82111071" lat="47.70079047"><ele>1905.27</ele><name>2012-ns-10.1</name></wpt>
<wpt lon="13.82044611" lat="47.70265730"><ele>1940.80</ele><name>233.1</name></wpt>
<wpt lon="13.81803427" lat="47.68859472"><ele>1830.48</ele><name>234to2002-03.1</name></wpt>
<wpt lon="13.81832755" lat="47.68877850"><ele>1838.80</ele><name>234to2002-03.3</name></wpt>
<wpt lon="13.81883144" lat="47.68889267"><ele>1843.05</ele><name>234to2002-03.5</name></wpt>
<wpt lon="13.81867604" lat="47.68933134"><ele>1841.33</ele><name>234to2002-03.9</name></wpt>
<wpt lon="13.81756630" lat="47.69297805"><ele>1807.96</ele><name>243.5</name></wpt>
<wpt lon="13.83195669" lat="47.70280745"><ele>1946.79</ele><name>bs16</name></wpt>
<wpt lon="13.83143142" lat="47.70332318"><ele>1925.79</ele><name>bs17</name></wpt>
<wpt lon="13.83306761" lat="47.70308523"><ele>1936.79</ele><name>bs19</name></wpt>
<wpt lon="13.82860901" lat="47.70640905"><ele>1976.79</ele><name>casino.0</name></wpt>
<wpt lon="13.82173371" lat="47.70500829"><ele>1941.80</ele><name>e02.0</name></wpt>
<wpt lon="13.82031830" lat="47.70612054"><ele>1956.80</ele><name>e09.0</name></wpt>
<wpt lon="13.82082674" lat="47.70203510"><ele>1931.80</ele><name>e10.0</name></wpt>
<wpt lon="13.81523580" lat="47.69967515"><ele>1876.81</ele><name>e28.0</name></wpt>
<wpt lon="13.82638774" lat="47.69262169"><ele>1946.81</ele><name>gps02.p2002-10</name></wpt>
<wpt lon="13.82457628" lat="47.69264740"><ele>1906.81</ele><name>gps02.p2002-ad-01</name></wpt>
<wpt lon="13.82515033" lat="47.69277987"><ele>1903.81</ele><name>gps02.p2002-ad-02</name></wpt>
<wpt lon="13.82472486" lat="47.69429268"><ele>1924.81</ele><name>gps02.p2002-ad-03</name></wpt>
<wpt lon="13.82441957" lat="47.69441091"><ele>1948.81</ele><name>gps02.p2002-ad-04</name></wpt>
<wpt lon="13.82434712" lat="47.69093051"><ele>1946.81</ele><name>gps02.p2002-x09</name></wpt>
<wpt lon="13.82619931" lat="47.69241563"><ele>1946.81</ele><name>gps02.p2002-x09b</name></wpt>
<wpt lon="13.81923302" lat="47.69826432"><ele>1846.80</ele><name>gps02.p2002-x15</name></wpt>
<wpt lon="13.81772693" lat="47.69675065"><ele>1846.81</ele><name>gps02.p2002-x16</name></wpt>
<wpt lon="13.81826898" lat="47.69629867"><ele>1846.81</ele><name>gps02.p2002-x17</name></wpt>
<wpt lon="13.81792061" lat="47.69463624"><ele>1846.81</ele><name>gps02.p2002-x18</name></wpt>
<wpt lon="13.82492418" lat="47.69708898"><ele>1946.80</ele><name>gps02.p2005-05</name></wpt>
<wpt lon="13.82754887" lat="47.69427163"><ele>1946.80</ele><name>gps02.p2005-06</name></wpt>
<wpt lon="13.82692749" lat="47.69335690"><ele>1946.80</ele><name>gps02.p2005-08</name></wpt>
<wpt lon="13.81909719" lat="47.67610890"><ele>1781.82</ele><name>gps02olly.2001-06</name></wpt>
<wpt lon="13.81788207" lat="47.67623139"><ele>1795.83</ele><name>gps02olly.2001-07</name></wpt>
<wpt lon="13.81829913" lat="47.67546190"><ele>1794.83</ele><name>gps02olly.2001-08</name></wpt>
<wpt lon="13.81834475" lat="47.67521041"><ele>1773.83</ele><name>gps02olly.2001-09</name></wpt>
<wpt lon="13.81858016" lat="47.67481692"><ele>1768.83</ele><name>gps02olly.2001-10</name></wpt>
<wpt lon="13.81859791" lat="47.67461915"><ele>1749.83</ele><name>gps02olly.2001-11</name></wpt>
<wpt lon="13.81874669" lat="47.67452166"><ele>1732.83</ele><name>gps02olly.2001-12</name></wpt>
<wpt lon="13.81927895" lat="47.67583292"><ele>1746.82</ele><name>gps02olly.2002-ob-01</name></wpt>
<wpt lon="13.82017906" lat="47.67668356"><ele>1746.82</ele><name>gps02olly.2002-w-01</name></wpt>
<wpt lon="13.81915677" lat="47.67700932"><ele>1773.82</ele><name>gps02olly.235</name></wpt>
<wpt lon="13.81763075" lat="47.67556292"><ele>1798.83</ele><name>gps02olly.236</name></wpt>
<wpt lon="13.81800330" lat="47.67558483"><ele>1823.83</ele><name>gps02olly.237</name></wpt>
<wpt lon="13.81865887" lat="47.67722916"><ele>1781.82</ele><name>gps02olly.238</name></wpt>
<wpt lon="13.81927449" lat="47.67710956"><ele>1777.82</ele><name>gps02olly.88f</name></wpt>
<wpt lon="13.81792936" lat="47.67708670"><ele>1796.82</ele><name>gps02olly.cliffhole</name></wpt>
<wpt lon="13.81857709" lat="47.67613061"><ele>1772.83</ele><name>gps02olly.hfg-ka88</name></wpt>
<wpt lon="13.82431074" lat="47.68560617"><ele>1821.81</ele><name>gps03.2003-07</name></wpt>
<wpt lon="13.82145119" lat="47.69035819"><ele>2046.81</ele><name>gps03_bis.p2003-x11</name></wpt>
<wpt lon="13.82046124" lat="47.68990368"><ele>2046.81</ele><name>gps03_bis.p2003-x12</name></wpt>
<wpt lon="13.81989548" lat="47.68922252"><ele>2046.81</ele><name>gps03_bis.p2003-x13</name></wpt>
<wpt lon="13.82037583" lat="47.68931043"><ele>2046.81</ele><name>gps03_bis.p2003-x14</name></wpt>
<wpt lon="13.82167714" lat="47.68743417"><ele>2046.81</ele><name>gps03_bis.p2003-x15</name></wpt>
<wpt lon="13.82259967" lat="47.68923806"><ele>2046.81</ele><name>gps03_bis.p2003-x16</name></wpt>
<wpt lon="13.82342467" lat="47.69057468"><ele>2046.81</ele><name>gps03_bis.p2003-x17</name></wpt>
<wpt lon="13.81987115" lat="47.69091350"><ele>2046.81</ele><name>gps03_bis.p2003-x18</name></wpt>
<wpt lon="13.81776820" lat="47.69399830"><ele>1846.81</ele><name>gps04.p2004-10</name></wpt>
<wpt lon="13.82743062" lat="47.68503009"><ele>1750.81</ele><name>gps04.p2004-12</name></wpt>
<wpt lon="13.82738089" lat="47.68387619"><ele>1741.81</ele><name>gps04.p2004-13</name></wpt>
<wpt lon="13.81915994" lat="47.69323695"><ele>1877.81</ele><name>gps04.p2004-16</name></wpt>
<wpt lon="13.81916202" lat="47.69346179"><ele>1880.81</ele><name>gps04.p2004-17</name></wpt>
<wpt lon="13.81953482" lat="47.69388645"><ele>1867.14</ele><name>gps04.p2004-18</name></wpt>
<wpt lon="13.81769074" lat="47.69282040"><ele>1806.81</ele><name>gps04.p2004-21</name></wpt>
<wpt lon="13.82302847" lat="47.69237516"><ele>1918.81</ele><name>gps04.p247</name></wpt>
<wpt lon="13.81586265" lat="47.68667612"><ele>1819.82</ele><name>gps06.2006-01</name></wpt>
<wpt lon="13.81321382" lat="47.68395296"><ele>1753.82</ele><name>gps06.2006-02</name></wpt>
<wpt lon="13.81314657" lat="47.68388129"><ele>1752.82</ele><name>gps06.2006-03</name></wpt>
<wpt lon="13.81900263" lat="47.69495548"><ele>1847.81</ele><name>gps06.2006-05</name></wpt>
<wpt lon="13.82650122" lat="47.69335872"><ele>1914.81</ele><name>gps06.2006-07</name></wpt>
<wpt lon="13.80379853" lat="47.69008058"><ele>46.82</ele><name>gps98.1996_05</name></wpt>
<wpt lon="13.81712175" lat="47.67005518"><ele>1646.83</ele><name>gruenstein.1</name></wpt>
<wpt lon="13.82244584" lat="47.70421380"><ele>1922.80</ele><name>haldenloch.eingang.0</name></wpt>
<wpt lon="13.81622935" lat="47.71356678"><ele>1871.79</ele><name>lou-toti.lt-eingang.1</name></wpt>
<wpt lon="13.83862217" lat="47.70669616"><ele>1885.79</ele><name>lunge.ent</name></wpt>
<wpt lon="13.81019829" lat="47.67012357"><ele>1726.84</ele><name>neuerschacht.12</name></wpt>
<wpt lon="13.79490026" lat="47.65338426"><ele>840.86</ele><name>p1</name></wpt>
<wpt lon="13.80575377" lat="47.67930637"><ele>1686.89</ele><name>p100</name></wpt>
<wpt lon="13.80702270" lat="47.68392457"><ele>1674.70</ele><name>p101a</name></wpt>
<wpt lon="13.81100702" lat="47.68466311"><ele>1707.20</ele><name>p104</name></wpt>
<wpt lon="13.81049781" lat="47.68439755"><ele>1692.89</ele><name>p105</name></wpt>
<wpt lon="13.81028521" lat="47.68409983"><ele>1693.66</ele><name>p106</name></wpt>
<wpt lon="13.81112485" lat="47.68217873"><ele>1708.07</ele><name>p107</name></wpt>
<wpt lon="13.80932134" lat="47.68388309"><ele>1681.40</ele><name>p108</name></wpt>
<wpt lon="13.81464047" lat="47.66889785"><ele>1643.29</ele><name>p109</name></wpt>
<wpt lon="13.80958961" lat="47.68897902"><ele>1727.26</ele><name>p111</name></wpt>
<wpt lon="13.80967014" lat="47.68883999"><ele>1726.60</ele><name>p112</name></wpt>
<wpt lon="13.81532608" lat="47.66968350"><ele>1688.33</ele><name>p113</name></wpt>
<wpt lon="13.80980176" lat="47.66708106"><ele>1535.12</ele><name>p115</name></wpt>
<wpt lon="13.81563077" lat="47.66715946"><ele>1458.06</ele><name>p115b</name></wpt>
<wpt lon="13.80982972" lat="47.66718320"><ele>1544.97</ele><name>p115c</name></wpt>
<wpt lon="13.80780449" lat="47.67075277"><ele>1709.83</ele><name>p116</name></wpt>
<wpt lon="13.83477691" lat="47.69088564"><ele>1656.80</ele><name>p131</name></wpt>
<wpt lon="13.81733126" lat="47.67764883"><ele>1830.61</ele><name>p135</name></wpt>
<wpt lon="13.81685385" lat="47.67765119"><ele>1842.43</ele><name>p136</name></wpt>
<wpt lon="13.81690709" lat="47.67780782"><ele>1836.31</ele><name>p136b</name></wpt>
<wpt lon="13.81695730" lat="47.67793839"><ele>1837.68</ele><name>p136c</name></wpt>
<wpt lon="13.81702909" lat="47.67793917"><ele>1839.33</ele><name>p136d</name></wpt>
<wpt lon="13.81632468" lat="47.67752803"><ele>1842.07</ele><name>p138</name></wpt>
<wpt lon="13.81618961" lat="47.67848269"><ele>1873.97</ele><name>p139</name></wpt>
<wpt lon="13.80793214" lat="47.66866489"><ele>1669.95</ele><name>p141</name></wpt>
<wpt lon="13.81332585" lat="47.67132148"><ele>1758.27</ele><name>p144</name></wpt>
<wpt lon="13.81240411" lat="47.67076363"><ele>1745.56</ele><name>p144b</name></wpt>
<wpt lon="13.80984667" lat="47.68145846"><ele>1700.35</ele><name>p148</name></wpt>
<wpt lon="13.81696562" lat="47.66965533"><ele>1649.18</ele><name>p150</name></wpt>
<wpt lon="13.81646330" lat="47.66931556"><ele>1646.07</ele><name>p151</name></wpt>
<wpt lon="13.81654859" lat="47.66912048"><ele>1639.24</ele><name>p152</name></wpt>
<wpt lon="13.81348468" lat="47.67429607"><ele>1790.51</ele><name>p153</name></wpt>
<wpt lon="13.81339523" lat="47.67545416"><ele>1817.87</ele><name>p154</name></wpt>
<wpt lon="13.81361897" lat="47.67530942"><ele>1809.65</ele><name>p154b</name></wpt>
<wpt lon="13.81498554" lat="47.67546939"><ele>1797.23</ele><name>p155</name></wpt>
<wpt lon="13.81322650" lat="47.67827289"><ele>1841.01</ele><name>p156</name></wpt>
<wpt lon="13.81217853" lat="47.68257766"><ele>1731.12</ele><name>p157</name></wpt>
<wpt lon="13.81388706" lat="47.67386789"><ele>1761.32</ele><name>p158</name></wpt>
<wpt lon="13.80286672" lat="47.68006924"><ele>1684.70</ele><name>p160</name></wpt>
<wpt lon="13.81827959" lat="47.68127630"><ele>1834.54</ele><name>p161</name></wpt>
<wpt lon="13.81866742" lat="47.68052528"><ele>1799.32</ele><name>p161b</name></wpt>
<wpt lon="13.81879782" lat="47.68062780"><ele>1799.47</ele><name>p161c</name></wpt>
<wpt lon="13.82339582" lat="47.67932859"><ele>1661.04</ele><name>p161d</name></wpt>
<wpt lon="13.82696240" lat="47.68303901"><ele>1706.53</ele><name>p161e</name></wpt>
<wpt lon="13.82663759" lat="47.68258773"><ele>1707.02</ele><name>p161f</name></wpt>
<wpt lon="13.82666195" lat="47.68383555"><ele>1764.89</ele><name>p161g</name></wpt>
<wpt lon="13.82715433" lat="47.68505403"><ele>1735.50</ele><name>p161h</name></wpt>
<wpt lon="13.81866804" lat="47.67839782"><ele>1794.24</ele><name>p162</name></wpt>
<wpt lon="13.81842160" lat="47.67808703"><ele>1800.51</ele><name>p162b</name></wpt>
<wpt lon="13.81843089" lat="47.67666772"><ele>1773.37</ele><name>p163</name></wpt>
<wpt lon="13.80599983" lat="47.68026520"><ele>1672.52</ele><name>p164rig</name></wpt>
<wpt lon="13.81639456" lat="47.68612994"><ele>1839.46</ele><name>p165</name></wpt>
<wpt lon="13.80498339" lat="47.68121653"><ele>1682.76</ele><name>p171b</name></wpt>
<wpt lon="13.80516054" lat="47.68181193"><ele>1677.85</ele><name>p172</name></wpt>
<wpt lon="13.80599221" lat="47.68563119"><ele>1706.11</ele><name>p174</name></wpt>
<wpt lon="13.80787565" lat="47.68689297"><ele>1706.45</ele><name>p175</name></wpt>
<wpt lon="13.80827954" lat="47.68742781"><ele>1715.21</ele><name>p176</name></wpt>
<wpt lon="13.78853773" lat="47.65824885"><ele>1486.86</ele><name>p18</name></wpt>
<wpt lon="13.82007994" lat="47.68192160"><ele>1813.46</ele><name>p180</name></wpt>
<wpt lon="13.79991935" lat="47.68383270"><ele>1643.89</ele><name>p182</name></wpt>
<wpt lon="13.79853521" lat="47.68437326"><ele>1638.58</ele><name>p183</name></wpt>
<wpt lon="13.79902177" lat="47.68407341"><ele>1638.33</ele><name>p184</name></wpt>
<wpt lon="13.81712253" lat="47.68045576"><ele>1810.28</ele><name>p185</name></wpt>
<wpt lon="13.80897468" lat="47.67704786"><ele>1748.08</ele><name>p186</name></wpt>
<wpt lon="13.80552418" lat="47.67988715"><ele>1676.30</ele><name>p188</name></wpt>
<wpt lon="13.82001409" lat="47.68152577"><ele>1811.14</ele><name>p191</name></wpt>
<wpt lon="13.82123119" lat="47.68062734"><ele>1791.05</ele><name>p193</name></wpt>
<wpt lon="13.81534560" lat="47.68673674"><ele>1809.58</ele><name>p194</name></wpt>
<wpt lon="13.81616700" lat="47.68687856"><ele>1825.67</ele><name>p195</name></wpt>
<wpt lon="13.81678696" lat="47.68704299"><ele>1837.71</ele><name>p196</name></wpt>
<wpt lon="13.80773872" lat="47.67737538"><ele>1700.63</ele><name>p1976_b4</name></wpt>
<wpt lon="13.81284136" lat="47.68283646"><ele>1746.61</ele><name>p1987-02</name></wpt>
<wpt lon="13.81299098" lat="47.67798849"><ele>1848.42</ele><name>p199</name></wpt>
<wpt lon="13.80761244" lat="47.68374352"><ele>1678.65</ele><name>p1998-x01</name></wpt>
<wpt lon="13.82026943" lat="47.69019381"><ele>1861.38</ele><name>p2000-08</name></wpt>
<wpt lon="13.82108951" lat="47.69155043"><ele>1856.82</ele><name>p2001-02</name></wpt>
<wpt lon="13.82052005" lat="47.69148043"><ele>1849.61</ele><name>p2001-03</name></wpt>
<wpt lon="13.82169804" lat="47.69271547"><ele>1907.58</ele><name>p2002-05</name></wpt>
<wpt lon="13.82139278" lat="47.69267890"><ele>1907.81</ele><name>p2002-06</name></wpt>
<wpt lon="13.82061284" lat="47.69282627"><ele>1875.94</ele><name>p2002-07</name></wpt>
<wpt lon="13.82031565" lat="47.69261158"><ele>1863.31</ele><name>p2002-08</name></wpt>
<wpt lon="13.81957108" lat="47.67458906"><ele>1699.01</ele><name>p2002-w-02</name></wpt>
<wpt lon="13.82461983" lat="47.69056347"><ele>1911.81</ele><name>p2003-01</name></wpt>
<wpt lon="13.81058580" lat="47.68383335"><ele>1689.13</ele><name>p2004-01</name></wpt>
<wpt lon="13.81088086" lat="47.68398521"><ele>1692.63</ele><name>p2004-02</name></wpt>
<wpt lon="13.80720549" lat="47.68129683"><ele>1677.59</ele><name>p2004-03</name></wpt>
<wpt lon="13.80873963" lat="47.68667734"><ele>1697.55</ele><name>p2004-07</name></wpt>
<wpt lon="13.80927319" lat="47.68636484"><ele>1695.07</ele><name>p2004-08</name></wpt>
<wpt lon="13.82741128" lat="47.68382281"><ele>1710.37</ele><name>p2004-13</name></wpt>
<wpt lon="13.81728558" lat="47.69052556"><ele>1802.63</ele><name>p2004-14</name></wpt>
<wpt lon="13.81953482" lat="47.69388645"><ele>1867.14</ele><name>p2004-18</name></wpt>
<wpt lon="13.82707193" lat="47.68748531"><ele>1810.53</ele><name>p2004-19a</name></wpt>
<wpt lon="13.82704650" lat="47.68755827"><ele>1813.39</ele><name>p2004-19b</name></wpt>
<wpt lon="13.82683014" lat="47.68743939"><ele>1816.02</ele><name>p2004-19c</name></wpt>
<wpt lon="13.82048540" lat="47.69005448"><ele>1860.70</ele><name>p2004-20</name></wpt>
<wpt lon="13.83192520" lat="47.69098570"><ele>1764.04</ele><name>p2005-01</name></wpt>
<wpt lon="13.82695283" lat="47.68884671"><ele>1802.05</ele><name>p2005-02</name></wpt>
<wpt lon="13.83089728" lat="47.69056894"><ele>1731.04</ele><name>p2005-03</name></wpt>
<wpt lon="13.82723893" lat="47.69389520"><ele>1846.80</ele><name>p2005-07</name></wpt>
<wpt lon="13.81074037" lat="47.68406179"><ele>1695.14</ele><name>p2005-91</name></wpt>
<wpt lon="13.80907881" lat="47.68289789"><ele>1682.07</ele><name>p2005-92</name></wpt>
<wpt lon="13.80869899" lat="47.68294542"><ele>1678.85</ele><name>p2005-93</name></wpt>
<wpt lon="13.80900754" lat="47.68299874"><ele>1681.80</ele><name>p2005-94</name></wpt>
<wpt lon="13.80892326" lat="47.68303156"><ele>1682.13</ele><name>p2005-95</name></wpt>
<wpt lon="13.80869468" lat="47.68344182"><ele>1680.45</ele><name>p2005-96</name></wpt>
<wpt lon="13.80947907" lat="47.68456428"><ele>1683.39</ele><name>p2005-97</name></wpt>
<wpt lon="13.80933112" lat="47.68456678"><ele>1682.71</ele><name>p2005-98</name></wpt>
<wpt lon="13.80890787" lat="47.68420256"><ele>1675.43</ele><name>p2005-99</name></wpt>
<wpt lon="13.81994841" lat="47.69084373"><ele>1837.25</ele><name>p2006-08</name></wpt>
<wpt lon="13.80977769" lat="47.68178379"><ele>1697.64</ele><name>p2006-70</name></wpt>
<wpt lon="13.81092375" lat="47.68514446"><ele>1694.09</ele><name>p2006-71</name></wpt>
<wpt lon="13.80874183" lat="47.67729094"><ele>1747.45</ele><name>p2006-72</name></wpt>
<wpt lon="13.80987293" lat="47.68332975"><ele>1689.93</ele><name>p2006-73</name></wpt>
<wpt lon="13.82283371" lat="47.69005552"><ele>1907.81</ele><name>p2007-01</name></wpt>
<wpt lon="13.82210286" lat="47.69024749"><ele>1892.81</ele><name>p2007-02</name></wpt>
<wpt lon="13.82497467" lat="47.68253637"><ele>1793.82</ele><name>p2007-03</name></wpt>
<wpt lon="13.82376714" lat="47.69158954"><ele>1915.81</ele><name>p2007-04</name></wpt>
<wpt lon="13.82560719" lat="47.68323521"><ele>1796.81</ele><name>p2007-04a</name></wpt>
<wpt lon="13.82632149" lat="47.68413157"><ele>1804.81</ele><name>p2007-05</name></wpt>
<wpt lon="13.82449699" lat="47.68700846"><ele>1856.81</ele><name>p2007-06</name></wpt>
<wpt lon="13.82432196" lat="47.68966246"><ele>1919.81</ele><name>p2007-07</name></wpt>
<wpt lon="13.82611927" lat="47.69809122"><ele>1955.80</ele><name>p2007-11</name></wpt>
<wpt lon="13.82260538" lat="47.69271873"><ele>1829.81</ele><name>p2007-12</name></wpt>
<wpt lon="13.80967814" lat="47.68536744"><ele>1688.06</ele><name>p2007-70</name></wpt>
<wpt lon="13.80974340" lat="47.68530799"><ele>1688.40</ele><name>p2007-71</name></wpt>
<wpt lon="13.80998197" lat="47.68292799"><ele>1692.87</ele><name>p2007-72</name></wpt>
<wpt lon="13.82281598" lat="47.69530813"><ele>1934.81</ele><name>p2009-01</name></wpt>
<wpt lon="13.82331331" lat="47.69578270"><ele>1918.80</ele><name>p2009-02</name></wpt>
<wpt lon="13.82365599" lat="47.69538551"><ele>1933.80</ele><name>p2009-03</name></wpt>
<wpt lon="13.82313561" lat="47.69529778"><ele>1932.81</ele><name>p2009-04</name></wpt>
<wpt lon="13.81328935" lat="47.67891409"><ele>1826.29</ele><name>p201</name></wpt>
<wpt lon="13.81710806" lat="47.69720897"><ele>1820.02</ele><name>p2010-01</name></wpt>
<wpt lon="13.82211997" lat="47.69639036"><ele>1905.80</ele><name>p2010-02</name></wpt>
<wpt lon="13.82210792" lat="47.69939443"><ele>1912.80</ele><name>p2010-03</name></wpt>
<wpt lon="13.82181449" lat="47.69935969"><ele>1906.80</ele><name>p2010-04</name></wpt>
<wpt lon="13.82130323" lat="47.69882221"><ele>1931.80</ele><name>p2010-05</name></wpt>
<wpt lon="13.82043544" lat="47.69503129"><ele>1896.79</ele><name>p2010-06</name></wpt>
<wpt lon="13.82701843" lat="47.69979598"><ele>1984.80</ele><name>p2011-01</name></wpt>
<wpt lon="13.81172902" lat="47.68234334"><ele>1725.75</ele><name>p2012-70</name></wpt>
<wpt lon="13.81146433" lat="47.68229389"><ele>1715.77</ele><name>p2012-70b</name></wpt>
<wpt lon="13.81181599" lat="47.68241646"><ele>1726.91</ele><name>p2012-70c</name></wpt>
<wpt lon="13.82367763" lat="47.69913594"><ele>1935.80</ele><name>p2012-dd-01</name></wpt>
<wpt lon="13.82387763" lat="47.69915307"><ele>1925.80</ele><name>p2012-dd-02</name></wpt>
<wpt lon="13.82398723" lat="47.69947639"><ele>1925.80</ele><name>p2012-dd-03</name></wpt>
<wpt lon="13.82834683" lat="47.69979056"><ele>2003.80</ele><name>p2012-dd-04</name></wpt>
<wpt lon="13.83215962" lat="47.70285010"><ele>1940.79</ele><name>p2012-dd-05</name></wpt>
<wpt lon="13.83307345" lat="47.70086746"><ele>1927.79</ele><name>p2012-dd-06</name></wpt>
<wpt lon="13.83389151" lat="47.70002747"><ele>1930.79</ele><name>p2012-dd-07</name></wpt>
<wpt lon="13.83435155" lat="47.69936891"><ele>1948.80</ele><name>p2012-dd-08</name></wpt>
<wpt lon="13.83297950" lat="47.69939284"><ele>1973.80</ele><name>p2012-dd-09</name></wpt>
<wpt lon="13.83532864" lat="47.69984134"><ele>1932.79</ele><name>p2012-dd-10</name></wpt>
<wpt lon="13.83688737" lat="47.69983455"><ele>1877.79</ele><name>p2012-dd-11</name></wpt>
<wpt lon="13.82264996" lat="47.69441671"><ele>1948.81</ele><name>p2012-hw-01</name></wpt>
<wpt lon="13.82248332" lat="47.69525000"><ele>1919.81</ele><name>p2012-hw-02</name></wpt>
<wpt lon="13.82066426" lat="47.69668055"><ele>1861.81</ele><name>p2012-ns-01</name></wpt>
<wpt lon="13.82176965" lat="47.69849151"><ele>1922.80</ele><name>p2012-ns-02</name></wpt>
<wpt lon="13.82156167" lat="47.69884927"><ele>1921.80</ele><name>p2012-ns-03</name></wpt>
<wpt lon="13.82221138" lat="47.69960292"><ele>1913.80</ele><name>p2012-ns-05</name></wpt>
<wpt lon="13.82232847" lat="47.69973005"><ele>1916.80</ele><name>p2012-ns-06</name></wpt>
<wpt lon="13.82247902" lat="47.70014557"><ele>1922.80</ele><name>p2012-ns-07</name></wpt>
<wpt lon="13.82223088" lat="47.70051187"><ele>1928.80</ele><name>p2012-ns-08</name></wpt>
<wpt lon="13.82208026" lat="47.70069032"><ele>1934.80</ele><name>p2012-ns-09</name></wpt>
<wpt lon="13.82113088" lat="47.70082447"><ele>1909.80</ele><name>p2012-ns-10</name></wpt>
<wpt lon="13.82058718" lat="47.70010815"><ele>1923.80</ele><name>p2012-ns-11</name></wpt>
<wpt lon="13.82129671" lat="47.70115017"><ele>1925.80</ele><name>p2012-ns-12</name></wpt>
<wpt lon="13.82246039" lat="47.69801289"><ele>1931.80</ele><name>p2012-ns-13</name></wpt>
<wpt lon="13.82395097" lat="47.69870297"><ele>1934.80</ele><name>p2012-ns-14</name></wpt>
<wpt lon="13.82199900" lat="47.69897091"><ele>1921.80</ele><name>p2012-ns-15</name></wpt>
<wpt lon="13.82544833" lat="47.69908712"><ele>1939.80</ele><name>p2012-ok-01</name></wpt>
<wpt lon="13.82580609" lat="47.69977462"><ele>1944.80</ele><name>p2012-ok-02</name></wpt>
<wpt lon="13.83143142" lat="47.70332318"><ele>1925.79</ele><name>p2012-ok-03</name></wpt>
<wpt lon="13.80679381" lat="47.66887077"><ele>1682.51</ele><name>p202</name></wpt>
<wpt lon="13.81096268" lat="47.67195269"><ele>1757.96</ele><name>p203</name></wpt>
<wpt lon="13.82142115" lat="47.69094211"><ele>1859.21</ele><name>p204a</name></wpt>
<wpt lon="13.82093517" lat="47.69279271"><ele>1877.93</ele><name>p204c</name></wpt>
<wpt lon="13.82028842" lat="47.69240366"><ele>1861.44</ele><name>p204e</name></wpt>
<wpt lon="13.82040851" lat="47.69252565"><ele>1865.61</ele><name>p204f</name></wpt>
<wpt lon="13.81776476" lat="47.69361067"><ele>1823.45</ele><name>p204g</name></wpt>
<wpt lon="13.81807973" lat="47.69360197"><ele>1833.74</ele><name>p204h</name></wpt>
<wpt lon="13.81812740" lat="47.69357056"><ele>1834.08</ele><name>p204i</name></wpt>
<wpt lon="13.81820523" lat="47.67888697"><ele>1811.69</ele><name>p205</name></wpt>
<wpt lon="13.81463553" lat="47.67317745"><ele>1745.82</ele><name>p206</name></wpt>
<wpt lon="13.80367573" lat="47.67927195"><ele>1711.05</ele><name>p207</name></wpt>
<wpt lon="13.80372221" lat="47.67940568"><ele>1707.80</ele><name>p208</name></wpt>
<wpt lon="13.81695248" lat="47.67797942"><ele>1839.71</ele><name>p209</name></wpt>
<wpt lon="13.82199814" lat="47.68574182"><ele>1869.23</ele><name>p214</name></wpt>
<wpt lon="13.82013887" lat="47.67550631"><ele>1691.98</ele><name>p215a</name></wpt>
<wpt lon="13.82013891" lat="47.67554031"><ele>1696.63</ele><name>p215b</name></wpt>
<wpt lon="13.81971266" lat="47.67503763"><ele>1697.78</ele><name>p216</name></wpt>
<wpt lon="13.81965688" lat="47.67478108"><ele>1695.09</ele><name>p217</name></wpt>
<wpt lon="13.81734067" lat="47.67886047"><ele>1826.00</ele><name>p218</name></wpt>
<wpt lon="13.81754687" lat="47.67870581"><ele>1832.44</ele><name>p219</name></wpt>
<wpt lon="13.81068660" lat="47.68039316"><ele>1733.83</ele><name>p220</name></wpt>
<wpt lon="13.82240787" lat="47.68519963"><ele>1854.03</ele><name>p222</name></wpt>
<wpt lon="13.82229838" lat="47.68550032"><ele>1860.46</ele><name>p223</name></wpt>
<wpt lon="13.82209680" lat="47.68497807"><ele>1849.77</ele><name>p224</name></wpt>
<wpt lon="13.81111131" lat="47.67976146"><ele>1784.83</ele><name>p225</name></wpt>
<wpt lon="13.80554927" lat="47.68017495"><ele>1671.61</ele><name>p226a</name></wpt>
<wpt lon="13.80568189" lat="47.68017135"><ele>1669.81</ele><name>p226b</name></wpt>
<wpt lon="13.80554451" lat="47.68020843"><ele>1672.32</ele><name>p227</name></wpt>
<wpt lon="13.79941056" lat="47.66705738"><ele>1646.80</ele><name>p228</name></wpt>
<wpt lon="13.81940015" lat="47.67465193"><ele>1710.10</ele><name>p229</name></wpt>
<wpt lon="13.81829523" lat="47.68324818"><ele>1851.82</ele><name>p230</name></wpt>
<wpt lon="13.82166367" lat="47.69115118"><ele>1861.93</ele><name>p231a</name></wpt>
<wpt lon="13.82166037" lat="47.69134160"><ele>1862.00</ele><name>p231b</name></wpt>
<wpt lon="13.82190546" lat="47.69131134"><ele>1870.00</ele><name>p231c</name></wpt>
<wpt lon="13.82172697" lat="47.69114021"><ele>1861.90</ele><name>p231d</name></wpt>
<wpt lon="13.82175642" lat="47.69102569"><ele>1864.00</ele><name>p231e</name></wpt>
<wpt lon="13.82190870" lat="47.69101425"><ele>1866.03</ele><name>p231f</name></wpt>
<wpt lon="13.82179946" lat="47.69109970"><ele>1866.83</ele><name>p231g</name></wpt>
<wpt lon="13.82176587" lat="47.69114023"><ele>1861.85</ele><name>p231h</name></wpt>
<wpt lon="13.82155810" lat="47.69123060"><ele>1858.56</ele><name>p231i</name></wpt>
<wpt lon="13.82016457" lat="47.70246961"><ele>1946.80</ele><name>p232</name></wpt>
<wpt lon="13.81803427" lat="47.68859472"><ele>1830.48</ele><name>p234a</name></wpt>
<wpt lon="13.81832755" lat="47.68877850"><ele>1838.80</ele><name>p234b</name></wpt>
<wpt lon="13.82249273" lat="47.68919875"><ele>1879.33</ele><name>p239</name></wpt>
<wpt lon="13.82432624" lat="47.68583995"><ele>1837.81</ele><name>p240</name></wpt>
<wpt lon="13.82206080" lat="47.69217339"><ele>1890.31</ele><name>p241</name></wpt>
<wpt lon="13.82125124" lat="47.69258613"><ele>1881.87</ele><name>p242</name></wpt>
<wpt lon="13.82218212" lat="47.69112237"><ele>1877.90</ele><name>p244</name></wpt>
<wpt lon="13.81727072" lat="47.69212566"><ele>1781.71</ele><name>p245</name></wpt>
<wpt lon="13.82340203" lat="47.68671631"><ele>1834.81</ele><name>p246</name></wpt>
<wpt lon="13.82491602" lat="47.69051436"><ele>1911.81</ele><name>p248</name></wpt>
<wpt lon="13.81883144" lat="47.68889267"><ele>1843.05</ele><name>p249</name></wpt>
<wpt lon="13.80495336" lat="47.68156589"><ele>1684.65</ele><name>p250</name></wpt>
<wpt lon="13.82081734" lat="47.69494144"><ele>1905.08</ele><name>p258a</name></wpt>
<wpt lon="13.82094009" lat="47.69491835"><ele>1910.23</ele><name>p258b</name></wpt>
<wpt lon="13.80385099" lat="47.66705133"><ele>1629.13</ele><name>p31</name></wpt>
<wpt lon="13.80881197" lat="47.66784982"><ele>1614.77</ele><name>p32</name></wpt>
<wpt lon="13.80731345" lat="47.67756349"><ele>1705.51</ele><name>p36</name></wpt>
<wpt lon="13.81806966" lat="47.67297267"><ele>1736.31</ele><name>p40a</name></wpt>
<wpt lon="13.82032735" lat="47.67559825"><ele>1689.11</ele><name>p40e</name></wpt>
<wpt lon="13.81981715" lat="47.67604102"><ele>1735.46</ele><name>p40f</name></wpt>
<wpt lon="13.81991316" lat="47.67526272"><ele>1693.72</ele><name>p40h</name></wpt>
<wpt lon="13.81954480" lat="47.67471392"><ele>1698.72</ele><name>p40s</name></wpt>
<wpt lon="13.80969925" lat="47.66892024"><ele>1668.43</ele><name>p41a</name></wpt>
<wpt lon="13.81013926" lat="47.66903157"><ele>1682.02</ele><name>p41b</name></wpt>
<wpt lon="13.80748672" lat="47.67731310"><ele>1700.61</ele><name>p75</name></wpt>
<wpt lon="13.81028521" lat="47.68409983"><ele>1693.66</ele><name>p76</name></wpt>
<wpt lon="13.81039915" lat="47.68415161"><ele>1692.36</ele><name>p76a</name></wpt>
<wpt lon="13.81039192" lat="47.68419104"><ele>1694.10</ele><name>p76b</name></wpt>
<wpt lon="13.80836600" lat="47.67058857"><ele>1713.13</ele><name>p78a</name></wpt>
<wpt lon="13.80819221" lat="47.67045383"><ele>1706.42</ele><name>p78b</name></wpt>
<wpt lon="13.80838175" lat="47.67267414"><ele>1713.05</ele><name>p78d</name></wpt>
<wpt lon="13.80912798" lat="47.67055098"><ele>1729.20</ele><name>p78e</name></wpt>
<wpt lon="13.80873358" lat="47.67991778"><ele>1713.09</ele><name>p80</name></wpt>
<wpt lon="13.80975768" lat="47.68070540"><ele>1703.86</ele><name>p81</name></wpt>
<wpt lon="13.80988862" lat="47.68075163"><ele>1702.02</ele><name>p81b</name></wpt>
<wpt lon="13.81028326" lat="47.68091576"><ele>1704.69</ele><name>p82</name></wpt>
<wpt lon="13.81042741" lat="47.68090581"><ele>1710.55</ele><name>p82b</name></wpt>
<wpt lon="13.81115657" lat="47.68197471"><ele>1717.34</ele><name>p83</name></wpt>
<wpt lon="13.81009206" lat="47.68077480"><ele>1704.14</ele><name>p85</name></wpt>
<wpt lon="13.81177195" lat="47.66803204"><ele>1589.31</ele><name>p87</name></wpt>
<wpt lon="13.81608752" lat="47.67019874"><ele>1692.84</ele><name>p88</name></wpt>
<wpt lon="13.80374019" lat="47.67888404"><ele>1716.44</ele><name>p90</name></wpt>
<wpt lon="13.80238967" lat="47.67996460"><ele>1687.16</ele><name>p91</name></wpt>
<wpt lon="13.80236459" lat="47.68016968"><ele>1685.02</ele><name>p93</name></wpt>
<wpt lon="13.80209212" lat="47.68057579"><ele>1677.28</ele><name>p94</name></wpt>
<wpt lon="13.79939310" lat="47.67092320"><ele>1645.84</ele><name>p95</name></wpt>
<wpt lon="13.79950170" lat="47.67115661"><ele>1641.84</ele><name>p96</name></wpt>
<wpt lon="13.80988186" lat="47.68506584"><ele>1685.17</ele><name>p97</name></wpt>
<wpt lon="13.80943324" lat="47.68797862"><ele>1721.77</ele><name>p98</name></wpt>
<wpt lon="13.81041033" lat="47.68384163"><ele>1688.32</ele><name>p99</name></wpt>
<wpt lon="13.80896330" lat="47.68255453"><ele>1677.43</ele><name>p99ob02</name></wpt>
<wpt lon="13.81952333" lat="47.68154376"><ele>1810.68</ele><name>pmi5</name></wpt>
<wpt lon="13.82031108" lat="47.69267905"><ele>1869.61</ele><name>pquarriesd</name></wpt>
<wpt lon="13.80789450" lat="47.67793283"><ele>1714.14</ele><name>pwk12</name></wpt>
<wpt lon="13.84084426" lat="47.70502971"><ele>1881.79</ele><name>raetsel.ent</name></wpt>
<wpt lon="13.83806665" lat="47.70697381"><ele>1896.79</ele><name>sternloch.ent</name></wpt>
<wpt lon="13.80693546" lat="47.68382059"><ele>1676.28</ele><name>t101</name></wpt>
<wpt lon="13.80649953" lat="47.68395450"><ele>1675.26</ele><name>t102</name></wpt>
<wpt lon="13.80662456" lat="47.68403935"><ele>1675.46</ele><name>t103</name></wpt>
<wpt lon="13.81565286" lat="47.67933622"><ele>1820.84</ele><name>t147</name></wpt>
<wpt lon="13.81320828" lat="47.67827503"><ele>1841.08</ele><name>t156</name></wpt>
<wpt lon="13.80391256" lat="47.67955898"><ele>1694.09</ele><name>t159</name></wpt>
<wpt lon="13.80532655" lat="47.68092750"><ele>1677.78</ele><name>t171</name></wpt>
<wpt lon="13.80644653" lat="47.68474071"><ele>1683.39</ele><name>t173</name></wpt>
<wpt lon="13.80607295" lat="47.68030970"><ele>1674.00</ele><name>t189</name></wpt>
<wpt lon="13.80629641" lat="47.68060424"><ele>1672.76</ele><name>t190</name></wpt>
<wpt lon="13.80676804" lat="47.68054771"><ele>1685.37</ele><name>t197</name></wpt>
<wpt lon="13.80621862" lat="47.67969849"><ele>1677.51</ele><name>t198</name></wpt>
<wpt lon="13.80532979" lat="47.68512178"><ele>1690.89</ele><name>t200</name></wpt>
<wpt lon="13.81757807" lat="47.69059403"><ele>1807.24</ele><name>t2004-15a</name></wpt>
<wpt lon="13.81801662" lat="47.69069877"><ele>1813.99</ele><name>t2004-15b</name></wpt>
<wpt lon="13.82131636" lat="47.69107620"><ele>1858.19</ele><name>t204b</name></wpt>
<wpt lon="13.81806999" lat="47.69260223"><ele>1819.08</ele><name>t204d</name></wpt>
<wpt lon="13.80730971" lat="47.68158565"><ele>1673.25</ele><name>t210</name></wpt>
<wpt lon="13.81729234" lat="47.69311438"><ele>1799.25</ele><name>t251</name></wpt>
<wpt lon="13.81189224" lat="47.68509169"><ele>1546.82</ele><name>tantalus</name></wpt>
<wpt lon="13.81692594" lat="47.70091826"><ele>1906.80</ele><name>upsidedown.8</name></wpt>
</gpx>

120
map/index.html Normal file
View File

@ -0,0 +1,120 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Loser cave map</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en" />
<meta name="generator" content="Easymap" />
<link rel="stylesheet" type="text/css" href="map.css" />
<script type="text/javascript" src="javascript/openlayers/OpenLayers.min.js"></script>
<script type="text/javascript" src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
<script type="text/javascript" src="util.js"></script>
<script type="text/javascript">
//<![CDATA[
var map;
var showPopupOnHover = true;
text = new Array("Show map information","Hide map information");
function drawmap() {
OpenLayers.Lang.setCode('en');
map = new OpenLayers.Map('map', {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
controls: [
new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.Attribution()],
maxExtent:
new OpenLayers.Bounds(-20037508.34,-20037508.34,
20037508.34, 20037508.34),
numZoomLevels: 18,
maxResolution: 156543,
units: 'meters'
});
// Display the control elements
// This appear momentarily then dissappear. Not sure what's wrong.
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.Permalink('permalink'));
map.addControl(new OpenLayers.Control.ScaleLine());
map.addControl(new OpenLayers.Control.LayerSwitcher());
// Position and Zoomlevel of the map
lon = 13.8081;
lat = 47.6776;
zoom = 14;
checkForPermalink();
//this isn't right yet - GPX points are not appearing
map.addLayer(
new OpenLayers.Layer.Vector("Entrances","ents.gpx",
{format: OpenLayers.Format.GPX({extractWaypoints: true}),
styleMap: new OpenLayers.StyleMap(
{pointRadius: "5", label: "${wpt}", strokeColor: "#FF0000", strokeWidth: 3, strokeOpacity: 0.8}
),
projection: new OpenLayers.Projection("EPSG:4326")
}
)
);
// Display layers
layer_markers = new OpenLayers.Layer.Markers("Marker", { projection: new OpenLayers.Projection("EPSG:4326"),visibility: true, displayInLayerSwitcher: false });
layer_vectors = new OpenLayers.Layer.Vector("Zeichnungen", { displayInLayerSwitcher: false } );map.addLayer(layer_vectors);map.addLayer(layer_markers)
layers = new Array();
layer_layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
map.addLayer(layer_layerMapnik);
layers.push(new Array(layer_layerMapnik,'layer_layerMapnik'));
layer_layerCyclemap = new OpenLayers.Layer.OSM.CycleMap("Cyclemap");
map.addLayer(layer_layerCyclemap);
layers.push(new Array(layer_layerCyclemap,'layer_layerCyclemap'));
setLayer(1);
// Jump to the right location
jumpTo(lon,lat,zoom);
// Display marker icons
icons = new Array();
icons[0] = new Array('http://openlayers.org/api/img/marker.png','21','25','0.5','1');
//icons[4] = new Array('http://osmtools.de/easymap/images/pin_red.png','16','28','0','1');
//icons[6] = new Array('http://osmtools.de/easymap/images/pin_green.png','16','28','0','1');
//icons[10] = new Array('http://osmtools.de/easymap/images/haus_red.png','20','24','0.5','0.5');
// Display markers
addMarker(layer_markers,13.8248,47.6884,"<b>Stone Bridge</b><p />Not the real stone bridge: this is a demo",false,0);
geometries = new Array();
// Nochmal was..
jumpTo(lon, lat, zoom);
toggleInfo();
checkUtilVersion(4);
}
//]]>
</script>
</head>
<body onload="drawmap();">
<div id="descriptionToggle" onclick="toggleInfo()">Show map information</div>
<div id="description" class="hide">Expo prototype slippy map<br >Please mouseover<br >the pin markers.<br ></div>
<div id="map"></div>
<div class="hide"><p><p>If you see this text, you opened the map HTML-File without the necessary files.</p></div>
</body>
</html>

1
map/javascript Symbolic link
View File

@ -0,0 +1 @@
/usr/share/javascript

102
map/map.css Normal file
View File

@ -0,0 +1,102 @@
@charset "utf-8";
html,body {
background-color: #FFF;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
font-family: Verdana, Arial, sans-serif;
font-size: 1em;
overflow: hidden;
color: #000;
}
a {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #000011;
text-decoration: underline;
}
#map {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
font-size: 1em;
color: #000;
}
.olFramedCloudPopupContent {
font-size: 0.8em;
font-family: Verdana, sans-serif;
}
#descriptionToggle {
position: absolute;
font-size: 1em;
z-index: 10000;
left: 80px;
height: 14px;
border-left: 1px solid #000040;
border-bottom: 1px solid #000040;
border-right: 1px solid #000040;
padding: 2px 10px;
margin-right: 200px;
background-color: #EEE;
font-size: 12px;
cursor: default;
opacity: 0.7;
}
#descriptionToggle:hover {
background-color: #FFF;
opacity: 1;
}
#description {
position: absolute;
z-index: 10000;
left: 80px;
top: 18px;
border: 1px solid #000040;
padding: 10px 10px;
margin-right: 200px;
background-color: #FFF;
font-size: 12px;
}
#attribution {
bottom: 0;
left: 0;
padding: 5px 8px 1px 8px;
position: absolute;
font-size: 11px;
font-style: italic;
z-index: 1000;
}
#layer {
position: absolute;
top: 60px;
right: 10px;
z-index: 10002;
}
#layer > div {
border: 1px solid #000;
background-color: #FFF;
padding: 4px 5px;
font-size: 0.7em;
cursor: default;
margin-bottom: 4px;
}
#layer div:hover {
}
#layer .active {
background-color: #EEF;
}
.hide { display: none; }

277
map/util.js Normal file
View File

@ -0,0 +1,277 @@
/*
* Einige Funktionen die ursprünglich von http://wiki.openstreetmap.org/wiki/DE:Karte_in_Webseite_einbinden stammen,
* teilweise modifiziert
*
* Some functions from the example at http://wiki.openstreetmap.org/wiki/DE:Karte_in_Webseite_einbinden, some
* slightly modified
*/
function jumpTo(lon, lat, zoom) {
var x = Lon2Merc(lon);
var y = Lat2Merc(lat);
map.setCenter(new OpenLayers.LonLat(x, y), zoom);
return false;
}
function Lon2Merc(lon) {
return 20037508.34 * lon / 180;
}
function Lat2Merc(lat) {
var PI = 3.14159265358979323846;
lat = Math.log(Math.tan( (90 + lat) * PI / 360)) / (PI / 180);
return 20037508.34 * lat / 180;
}
function addMarker(layer, lon, lat, popupContentHTML, showPopupOnLoad, iconId) {
// Koordinaten in LonLat umwandeln
var ll = new OpenLayers.LonLat(Lon2Merc(lon), Lat2Merc(lat));
// Feature erstellen und konfigurieren (Popup und Marker)
var feature = new OpenLayers.Feature(layer, ll);
feature.closeBox = true;
feature.popupClass = OpenLayers.Class(OpenLayers.Popup.FramedCloud, {minSize: new OpenLayers.Size(200, 120) } );
feature.data.popupContentHTML = popupContentHTML;
feature.data.overflow = "auto";
feature.data.icon = makeIcon(iconId);
// Marker erstellen
var marker = feature.createMarker();
/*
* Handler Funktionen für die Mouse-Events
*/
// Click
var markerClick = function(evt) {
// Wenn das Popup nicht sichtbar ist, dann kann es nicht fest sichtbar sein
if (!this.popup.visible())
this.popup.clicked = false;
if (this.popup.clicked == true) {
this.popup.clicked = false;
this.popup.hide();
}
else {
this.popup.clicked = true;
if (!this.popup.visible())
this.popup.show();
}
OpenLayers.Event.stop(evt);
};
// Hover
var markerHover = function(evt) {
// Wenn das Popup nicht sichtbar ist, dann kann es nicht fest sichtbar sein
if (!this.popup.visible())
this.popup.clicked = false;
if (!this.popup.clicked)
this.popup.show();
OpenLayers.Event.stop(evt);
}
// Hover End
var markerHoverEnd = function(evt) {
if (!this.popup.clicked) {
this.popup.hide();
}
OpenLayers.Event.stop(evt);
}
// Events auf den Marker registrieren und als Objekt das Feature übergeben
marker.events.register("mousedown", feature, markerClick);
if (showPopupOnHover) {
marker.events.register("mouseover", feature, markerHover);
marker.events.register("mouseout", feature, markerHoverEnd);
}
// Erstellten Marker der Ebene hinzufügen
layer.addMarker(marker);
// Popup erstellen, der Karte hinzufügen und anzeigen, falls gewünscht
map.addPopup(feature.createPopup(feature.closeBox));
if (showPopupOnLoad != true) {
// Wenn das Popup nicht angezeigt werden soll, verstecken und auf 'nicht angeklickt' setzen
feature.popup.hide();
feature.popup.clicked = false;
} else {
// Das Popup wird direkt angezeigt und zwar solange bis man es explizit schließt
feature.popup.clicked = true;
}
return marker;
}
/*
*
* Creates a new marker icon
*
* using the icons-array (defined in the html-file)
*
* index
* 0 address to the image
* 1 width of the image
* 2 height
* 3 factor by which the image should be offset horizontally
* 4 factor by which the image should be offset vertically
*
* please see the icon array itself for examples of values
*/
function makeIcon(iconId) {
var size = new OpenLayers.Size(icons[iconId][1],icons[iconId][2]);
var offset = new OpenLayers.Pixel(-(size.w*icons[iconId][3]), -(size.h*icons[iconId][4]));
var icon = new OpenLayers.Icon(icons[iconId][0],size,offset);
return icon;
}
function getCycleTileURL(bounds) {
var res = this.map.getResolution();
var x = Math.round((bounds.left - this.maxExtent.left) / (res * this.tileSize.w));
var y = Math.round((this.maxExtent.top - bounds.top) / (res * this.tileSize.h));
var z = this.map.getZoom();
var limit = Math.pow(2, z);
if (y < 0 || y >= limit)
{
return null;
}
else
{
x = ((x % limit) + limit) % limit;
return this.url + z + "/" + x + "/" + y + "." + this.type;
}
}
/*
* Funktion zum Zerlegen der URL um die Parameter zu erhalten (für den Permalink)
* Splits the URL in its parameters
*/
function get_parameters() {
// erzeugt für jeden in der url übergebenen parameter einen wert
// bsp: x.htm?nachname=Munch&vorname=Alex&bildfile=wasserfall.jpg erzeugt
// variable nachname mit wert Munch und
// variable vorname mit wert Alex
// variable bildfile mit wert wasserfall.jpg
var hier = document.URL;
var parameterzeile = hier.substr((hier.indexOf("?")+1));
var trennpos;
var endpos;
var paramname;
var paramwert;
var parameters = new Object();
while (parameterzeile != "") {
trennpos = parameterzeile.indexOf("=");
endpos = parameterzeile.indexOf("&");
if (endpos < 0) { endpos = 500000; }
paramname = parameterzeile.substr(0,trennpos);
paramwert = parameterzeile.substring(trennpos+1,endpos);
parameters[paramname] = paramwert;
//eval (paramname + " = \"" + paramwert + "\"");
parameterzeile = parameterzeile.substr(endpos+1);
}
return parameters;
}
/*
* Wie der Name schon sagt ebenfalls für den Permalink, überprüft ob die Parameter in der URL gefunden wurden und überschreibt
* sie gegebenenfalls.
* Checks the url for parameters of the permalink and overwrites the default values if necessary.
*/
function checkForPermalink() {
var parameters = get_parameters();
if (parameters['zoom'] != null)
zoom = parseInt(parameters['zoom']);
if (parameters['lat'] != null)
lat = parseFloat(parameters['lat']);
if (parameters['lon'] != null)
lon = parseFloat(parameters['lon']);
}
/*
* Debugging Funktion
*/
function var_dump(obj) {
if(typeof obj == "object") {
return "Type: "+typeof(obj)+((obj.constructor) ? "\nConstructor: "+obj.constructor : "")+"\nValue: " + obj;
} else {
return "Type: "+typeof(obj)+"\nValue: "+obj;
}
}//end function var_dump
/*
* Für den Layer-Switcher mit Buttons
*/
function setLayer(id) {
if (document.getElementById("layer") != null) {
for (var i=0;i<layers.length;++i)
document.getElementById(layers[i][1]).className = "";
}
varName = layers[id][0];
name = layers[id][1];
map.setBaseLayer(varName);
if (document.getElementById("layer") != null)
document.getElementById(name).className = "active";
}
/*
* Schaltet die Beschreibung der Karte an- und aus.
* Toggles the description of the map.
*/
function toggleInfo() {
var state = document.getElementById('description').className;
if (state == 'hide') {
// Info anzeigen
document.getElementById('description').className = '';
document.getElementById('descriptionToggle').innerHTML = text[1];
}
else {
// Info verstecken
document.getElementById('description').className = 'hide';
document.getElementById('descriptionToggle').innerHTML = text[0];
}
}
/*
* Zeichnet verschiedene Arten von geometrischen Objekten
* Draws different kinds of geometric objects
*/
function drawLine(coordinates,style) {
var linePoints = createPointsArrayFromCoordinates(coordinates);
var line = new OpenLayers.Geometry.LineString(linePoints);
var vector = new OpenLayers.Feature.Vector(line,null,style);
layer_vectors.addFeatures(vector);
return vector;
}
function drawPolygon(coordinates,style) {
var points = createPointsArrayFromCoordinates(coordinates);
var linearRing = new OpenLayers.Geometry.LinearRing(points);
var polygon = new OpenLayers.Geometry.Polygon([linearRing]);
var vector = new OpenLayers.Feature.Vector(polygon,null,style);
layer_vectors.addFeatures(vector);
return vector;
}
function createPointsArrayFromCoordinates(coordinates) {
var points = new Array();
for (var i=0;i<coordinates.length;++i) {
var lonlat = new OpenLayers.LonLat(coordinates[i][0],coordinates[i][1]).transform(new OpenLayers.Projection("EPSG:4326"),new OpenLayers.Projection("EPSG:900913"))
points.push(new OpenLayers.Geometry.Point(lonlat.lon,lonlat.lat))
}
return points;
}
/*
* Gibt eine Fehlermeldung aus, wenn die Version der JavaScript Datei nicht mit der erforderlichen übereinstimmt
* Outputs an error if the version of the JavaScript-File does not match the required one
*/
function checkUtilVersion(version) {
var thisFileVersion = 4;
if (version != thisFileVersion) {
alert("map.html and util.js versions do not match.\n\nPlease reload the page using your browsers 'reload' feature.\n\nIf the problem persists and you are the owner of this site, you may need to update the map's files.");
}
}