none
Embedding Bing Map with veloroutes

    Question

  • My question is probably ludicrously straightforward. I co-edit a UK cycling website and want to embed an Ordnance Survey map with a route on (with data points generated by veloroutes.org.) Here is my page so far. The maps are, rather Dr Seussishly,  Bing 1 and Bing 2

    BING 1 is just an iframe with the successful Bing URL in. That shows the route OK but it's not an embed so I get the Bing menu bar and the Task Area to the left. If I knew the right HTML to switch them off, I'd be happy. This is the code:-

     <iframe height="800" src="http://www.bing.com/maps/?sty=s&amp;w=800&amp;h=800&amp;mapurl=http:%2F%2Fveloroutes.org%2Fk%2F%3Fr%3D73668" width="920"></iframe>

    BING 2 is an adapted chunk of HTML generated from Bing's "share" button. It shows the correct area at the correct scale but not the route. This is the HTML:

    <div id="mapviewer"><iframe frameborder="0" height="800" id="map" name="mapFrame" scrolling="no" src="http://uk.bing.com/maps/embed/?lvl=12&amp;cp=54.44969907978041%7E-2.2551370000000093&amp;sty=s&amp;draggable=true&amp;v=2&amp;dir=0&amp;mapurl=http%3A%2F%2Fveloroutes.org/k/?r=73668&amp;form=LMLTEW&amp;mkt=en-gb&amp;emid=166592f4-a281-b057-04f3-2aa6b06375e1&amp;w=800&amp;h=800" width="800"></iframe></div>

    Any ideas?

    Monday, February 06, 2012 8:37 AM

Answers

  • Ok, you won't be able to load data that you uploaded into the bing.com/maps page into any other map. You should consider loading your data into a different format such as GPX and then loading that into a the normal Bing Maps API. IFraming in the bing.com/maps page is just a bad experience and against the terms of use. If you decide to use GPX take a look at this module for Bing Maps V7 that shows you how to import your data into the map: http://bingmapsv7modules.codeplex.com/wikipage?title=GPX%20Parser

    http://rbrundritt.wordpress.com

    Wednesday, February 08, 2012 11:25 PM
    Owner

All replies

  • Rather than trying to hack away at the URL's try using some of the supported approaches. The Bing Maps Embedded API is documented here: http://msdn.microsoft.com/en-us/library/ee692180.aspx The URL for the bing.com/maps site is documented here: http://onlinehelp.microsoft.com/en-us/bing/ff808440.aspx But if you want full control and a much better user experience then use the full Bing Maps API.

    http://rbrundritt.wordpress.com

    Tuesday, February 07, 2012 4:40 PM
    Owner
  • Hi Richard

    Thanks for your reply but I am still getting nowhere. I've tried the embed function and it's stripping out my route. This is the successful map as a stand-alone tab:-

    http://www.bing.com/maps/default.aspx?sty=s&mapurl=http://veloroutes.org/k/?r=73668

    So that's what I want to see, working just fine in a Bing page. So I click the "Share" button and click Customise and preview. Straight away, you can see in the preview window that the route has vanished. This is confirmed when you examine the embed code:-

    <div id="mapviewer"><iframe id="map" Name="mapFrame" scrolling="no" width="500" height="400" frameborder="0" src="http://www.bing.com/maps/embed/?lvl=12&amp;cp=54.44969907978041~-2.2551370000000093&amp;sty=s&amp;draggable=true&amp;v=2&amp;dir=0&amp;mapurl=http%3A%2F%2Fveloroutes.org%2Fk%2F%3Fr&amp;form=LMLTEW&amp;mkt=en-gb&amp;emid=a82aa83f-0b5d-02bd-63b9-225b69d0c6ba&amp;w=500&amp;h=400"></iframe>
    </div>

    See? It's stripped out the route number (73668) and specified the map by cp, and lvl instead. I wonder if it's because the syntax ?r=73668 (which is meant to tell veloroutes which route to display) is being misinterpreted as a Bing parameter (similar to ?sty=s). Any thoughts?

    Tuesday, February 07, 2012 6:34 PM
  • Ok, you won't be able to load data that you uploaded into the bing.com/maps page into any other map. You should consider loading your data into a different format such as GPX and then loading that into a the normal Bing Maps API. IFraming in the bing.com/maps page is just a bad experience and against the terms of use. If you decide to use GPX take a look at this module for Bing Maps V7 that shows you how to import your data into the map: http://bingmapsv7modules.codeplex.com/wikipage?title=GPX%20Parser

    http://rbrundritt.wordpress.com

    Wednesday, February 08, 2012 11:25 PM
    Owner
  • Hi Richard.

    Thanks for replying again. OK, I have my GPX file (ATTACHED). What’s the next step? Bear in  mind my IT skill level is such that editing a line of HTML is a good day for me…

    I saved your zip file, ran simple.html and metadataexample.html and both produced very similar results. I got a view of the world with a big banner across saying “Invalid Credentials, sign up for a developers account.” So I signed up and generated a key, which I entered in the “Credentials” field of the HTML. Then I get the world and no banner. But none of the buttons at the bottom work. Even if I add a fifth button that says

            <input type="button" value="Local file (Nine Standards)" onclick="LoadGPX('/Data/NineStandards.gpx')"/>

    What would be the next step?

    <?xml version="1.0" encoding="UTF-8"?><gpx version="1.1" creator="VeloRoutes.org - http://www.veloroutes.org" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"><rte><name>Keld to Kirkby Stephen</name><cmt><![CDATA[ Permalink: 
    http://veloroutes.org/bikemaps/?route=73668]]></cmt><rtept lat="54.405619" lon="-2.166538"><name>point 1</name><ele>1056.160</ele></rtept> <rtept lat="54.405206" lon="-2.166882"><name>point 2</name><ele>1066.000</ele></rtept> <rtept lat="54.404957" lon="-2.167268"><name>point 3</name><ele>1082.400</ele></rtept> <rtept lat="54.404932" lon="-2.168169"><name>point 4</name><ele>1098.800</ele></rtept> <rtept lat="54.404682" lon="-2.168834"><name>point 5</name><ele>1115.200</ele></rtept> <rtept lat="54.405906" lon="-2.170787"><name>point 6</name><ele>1141.440</ele></rtept> <rtept lat="54.406568" lon="-2.171259"><name>point 7</name><ele>1111.920</ele></rtept> <rtept lat="54.407392" lon="-2.174199"><name>point 8</name><ele>1082.400</ele></rtept> <rtept lat="54.408066" lon="-2.175143"><name>point 9</name><ele>1052.880</ele></rtept> <rtept lat="54.409415" lon="-2.183468"><name>point 10</name><ele>1098.800</ele></rtept> <rtept lat="54.409328" lon="-2.184734"><name>point 11</name><ele>1108.640</ele></rtept> <rtept lat="54.409690" lon="-2.187395"><name>point 12</name><ele>1121.760</ele></rtept> <rtept lat="54.409153" lon="-2.190464"><name>point 13</name><ele>1108.640</ele></rtept> <rtept lat="54.409165" lon="-2.191622"><name>point 14</name><ele>1108.640</ele></rtept> <rtept lat="54.407080" lon="-2.194819"><name>point 15</name><ele>1203.760</ele></rtept> <rtept lat="54.406867" lon="-2.196107"><name>point 16</name><ele>1203.760</ele></rtept> <rtept lat="54.407404" lon="-2.197781"><name>point 17</name><ele>1125.040</ele></rtept> <rtept lat="54.407330" lon="-2.200291"><name>point 18</name><ele>1125.040</ele></rtept> <rtept lat="54.407529" lon="-2.200549"><name>point 19</name><ele>1125.040</ele></rtept> <rtept lat="54.407517" lon="-2.202158"><name>point 20</name><ele>1128.320</ele></rtept> <rtept lat="54.407966" lon="-2.202952"><name>point 21</name><ele>1161.120</ele></rtept> <rtept lat="54.408029" lon="-2.204475"><name>point 22</name><ele>1177.520</ele></rtept> <rtept lat="54.408641" lon="-2.206557"><name>point 23</name><ele>1223.440</ele></rtept> <rtept lat="54.408666" lon="-2.207050"><name>point 24</name><ele>1223.440</ele></rtept> <rtept lat="54.409103" lon="-2.208359"><name>point 25</name><ele>1269.360</ele></rtept> <rtept lat="54.408791" lon="-2.210011"><name>point 26</name><ele>1295.600</ele></rtept> <rtept lat="54.408878" lon="-2.216878"><name>point 27</name><ele>1400.560</ele></rtept> <rtept lat="54.409265" lon="-2.218745"><name>point 28</name><ele>1426.800</ele></rtept> <rtept lat="54.409115" lon="-2.220118"><name>point 29</name><ele>1453.040</ele></rtept> <rtept lat="54.408566" lon="-2.221491"><name>point 30</name><ele>1433.360</ele></rtept> <rtept lat="54.408129" lon="-2.224281"><name>point 31</name><ele>1459.600</ele></rtept> <rtept lat="54.408191" lon="-2.226534"><name>point 32</name><ele>1466.160</ele></rtept> <rtept lat="54.407867" lon="-2.229517"><name>point 33</name><ele>1394.000</ele></rtept> <rtept lat="54.407966" lon="-2.233207"><name>point 34</name><ele>1462.880</ele></rtept> <rtept lat="54.408216" lon="-2.233937"><name>point 35</name><ele>1469.440</ele></rtept> <rtept lat="54.408416" lon="-2.236276"><name>point 36</name><ele>1482.560</ele></rtept> <rtept lat="54.408329" lon="-2.239408"><name>point 37</name><ele>1459.600</ele></rtept> <rtept lat="54.408991" lon="-2.240932"><name>point 38</name><ele>1505.520</ele></rtept> <rtept lat="54.411276" lon="-2.248592"><name>point 39</name><ele>1512.080</ele></rtept> <rtept lat="54.411750" lon="-2.249644"><name>point 40</name><ele>1443.200</ele></rtept> <rtept lat="54.414785" lon="-2.255652"><name>point 41</name><ele>1482.560</ele></rtept> <rtept lat="54.415259" lon="-2.256274"><name>point 42</name><ele>1456.320</ele></rtept> <rtept lat="54.417869" lon="-2.259943"><name>point 43</name><ele>1479.280</ele></rtept> <rtept lat="54.419055" lon="-2.260716"><name>point 44</name><ele>1515.360</ele></rtept> <rtept lat="54.419554" lon="-2.261703"><name>point 45</name><ele>1495.680</ele></rtept> <rtept lat="54.420378" lon="-2.262046"><name>point 46</name><ele>1528.480</ele></rtept> <rtept lat="54.420428" lon="-2.262518"><name>point 47</name><ele>1531.760</ele></rtept> <rtept lat="54.421552" lon="-2.263741"><name>point 48</name><ele>1554.720</ele></rtept> <rtept lat="54.422051" lon="-2.265887"><name>point 49</name><ele>1485.840</ele></rtept> <rtept lat="54.423325" lon="-2.268462"><name>point 50</name><ele>1515.360</ele></rtept> <rtept lat="54.423549" lon="-2.269707"><name>point 51</name><ele>1489.120</ele></rtept> <rtept lat="54.424198" lon="-2.270393"><name>point 52</name><ele>1528.480</ele></rtept> <rtept lat="54.424922" lon="-2.270350"><name>point 53</name><ele>1548.160</ele></rtept> <rtept lat="54.424648" lon="-2.272239"><name>point 54</name><ele>1505.520</ele></rtept> <rtept lat="54.425122" lon="-2.273355"><name>point 55</name><ele>1485.840</ele></rtept> <rtept lat="54.425447" lon="-2.273355"><name>point 56</name><ele>1518.640</ele></rtept> <rtept lat="54.427519" lon="-2.278419"><name>point 57</name><ele>1498.960</ele></rtept> <rtept lat="54.427569" lon="-2.284427"><name>point 58</name><ele>1544.880</ele></rtept> <rtept lat="54.427868" lon="-2.285843"><name>point 59</name><ele>1558.000</ele></rtept> <rtept lat="54.432412" lon="-2.292709"><name>point 60</name><ele>1666.240</ele></rtept> <rtept lat="54.433410" lon="-2.297044"><name>point 61</name><ele>1689.200</ele></rtept> <rtept lat="54.435183" lon="-2.297430"><name>point 62</name><ele>1692.480</ele></rtept> <rtept lat="54.435607" lon="-2.297087"><name>point 63</name><ele>1689.200</ele></rtept> <rtept lat="54.437404" lon="-2.297430"><name>point 64</name><ele>1669.520</ele></rtept> <rtept lat="54.440399" lon="-2.294512"><name>point 65</name><ele>1659.680</ele></rtept> <rtept lat="54.441073" lon="-2.293696"><name>point 66</name><ele>1623.600</ele></rtept> <rtept lat="54.441297" lon="-2.290778"><name>point 67</name><ele>1702.320</ele></rtept> <rtept lat="54.442545" lon="-2.288461"><name>point 68</name><ele>1712.160</ele></rtept> <rtept lat="54.443294" lon="-2.288246"><name>point 69</name><ele>1715.440</ele></rtept> <rtept lat="54.445178" lon="-2.286680"><name>point 70</name><ele>1751.520</ele></rtept> <rtept lat="54.445739" lon="-2.286229"><name>point 71</name><ele>1751.520</ele></rtept> <rtept lat="54.445640" lon="-2.285843"><name>point 72</name><ele>1751.520</ele></rtept> <rtept lat="54.445852" lon="-2.285500"><name>point 73</name><ele>1787.600</ele></rtept> <rtept lat="54.446438" lon="-2.285800"><name>point 74</name><ele>1833.520</ele></rtept> <rtept lat="54.446950" lon="-2.285178"><name>point 75</name><ele>1853.200</ele></rtept> <rtept lat="54.447218" lon="-2.284781"><name>point 76</name><ele>1853.200</ele></rtept> <rtept lat="54.447948" lon="-2.284995"><name>point 77</name><ele>1853.200</ele></rtept> <rtept lat="54.448684" lon="-2.285167"><name>point 78</name><ele>1804.000</ele></rtept> <rtept lat="54.449158" lon="-2.286701"><name>point 79</name><ele>1735.120</ele></rtept> <rtept lat="54.450456" lon="-2.288278"><name>point 80</name><ele>1708.880</ele></rtept> <rtept lat="54.451229" lon="-2.289265"><name>point 81</name><ele>1626.880</ele></rtept> <rtept lat="54.451965" lon="-2.291658"><name>point 82</name><ele>1620.320</ele></rtept> <rtept lat="54.452620" lon="-2.292216"><name>point 83</name><ele>1640.000</ele></rtept> <rtept lat="54.453556" lon="-2.292699"><name>point 84</name><ele>1620.320</ele></rtept> <rtept lat="54.454660" lon="-2.292345"><name>point 85</name><ele>1620.320</ele></rtept> <rtept lat="54.455165" lon="-2.292720"><name>point 86</name><ele>1515.360</ele></rtept> <rtept lat="54.457011" lon="-2.296271"><name>point 87</name><ele>1446.480</ele></rtept> <rtept lat="54.457030" lon="-2.298900"><name>point 88</name><ele>1423.520</ele></rtept> <rtept lat="54.456986" lon="-2.300177"><name>point 89</name><ele>1387.440</ele></rtept> <rtept lat="54.457192" lon="-2.301872"><name>point 90</name><ele>1371.040</ele></rtept> <rtept lat="54.457373" lon="-2.303513"><name>point 91</name><ele>1364.480</ele></rtept> <rtept lat="54.457635" lon="-2.304103"><name>point 92</name><ele>1357.920</ele></rtept> <rtept lat="54.457628" lon="-2.304790"><name>point 93</name><ele>1298.880</ele></rtept> <rtept lat="54.458352" lon="-2.307751"><name>point 94</name><ele>1266.080</ele></rtept> <rtept lat="54.459593" lon="-2.308363"><name>point 95</name><ele>1233.280</ele></rtept> <rtept lat="54.460391" lon="-2.308159"><name>point 96</name><ele>1200.480</ele></rtept> <rtept lat="54.461115" lon="-2.308781"><name>point 97</name><ele>1161.120</ele></rtept> <rtept lat="54.461969" lon="-2.310036"><name>point 98</name><ele>1138.160</ele></rtept> <rtept lat="54.462511" lon="-2.311227"><name>point 99</name><ele>1128.320</ele></rtept> <rtept lat="54.462742" lon="-2.311345"><name>point 100</name><ele>1088.960</ele></rtept> <rtept lat="54.463316" lon="-2.312053"><name>point 101</name><ele>1069.280</ele></rtept> <rtept lat="54.464039" lon="-2.312397"><name>point 102</name><ele>1033.200</ele></rtept> <rtept lat="54.464675" lon="-2.312375"><name>point 103</name><ele>1033.200</ele></rtept> <rtept lat="54.466677" lon="-2.311313"><name>point 104</name><ele>1033.200</ele></rtept> <rtept lat="54.466802" lon="-2.311624"><name>point 105</name><ele>1039.760</ele></rtept> <rtept lat="54.466851" lon="-2.312043"><name>point 106</name><ele>1029.920</ele></rtept> <rtept lat="54.468011" lon="-2.312429"><name>point 107</name><ele>1056.160</ele></rtept> <rtept lat="54.468741" lon="-2.313062"><name>point 108</name><ele>1052.880</ele></rtept> <rtept lat="54.468915" lon="-2.313802"><name>point 109</name><ele>1036.480</ele></rtept> <rtept lat="54.469021" lon="-2.315272"><name>point 110</name><ele>1003.680</ele></rtept> <rtept lat="54.469221" lon="-2.316098"><name>point 111</name><ele>964.320</ele></rtept> <rtept lat="54.469944" lon="-2.317525"><name>point 112</name><ele>928.240</ele></rtept> <rtept lat="54.470530" lon="-2.318029"><name>point 113</name><ele>895.440</ele></rtept> <rtept lat="54.471378" lon="-2.319746"><name>point 114</name><ele>885.600</ele></rtept> <rtept lat="54.471690" lon="-2.321194"><name>point 115</name><ele>885.600</ele></rtept> <rtept lat="54.471833" lon="-2.321849"><name>point 116</name><ele>852.800</ele></rtept> <rtept lat="54.472407" lon="-2.322578"><name>point 117</name><ele>839.680</ele></rtept> <rtept lat="54.472419" lon="-2.322814"><name>point 118</name><ele>813.440</ele></rtept> <rtept lat="54.472351" lon="-2.322997"><name>point 119</name><ele>797.040</ele></rtept> <rtept lat="54.472114" lon="-2.324713"><name>point 120</name><ele>741.280</ele></rtept> <rtept lat="54.471852" lon="-2.325561"><name>point 121</name><ele>734.720</ele></rtept> <rtept lat="54.471359" lon="-2.328565"><name>point 122</name><ele>731.440</ele></rtept> <rtept lat="54.471403" lon="-2.328962"><name>point 123</name><ele>747.840</ele></rtept> <rtept lat="54.471066" lon="-2.329810"><name>point 124</name><ele>718.320</ele></rtept> <rtept lat="54.471216" lon="-2.330818"><name>point 125</name><ele>705.200</ele></rtept> <rtept lat="54.471228" lon="-2.331430"><name>point 126</name><ele>682.240</ele></rtept> <rtept lat="54.471272" lon="-2.331795"><name>point 127</name><ele>659.280</ele></rtept> <rtept lat="54.471197" lon="-2.332106"><name>point 128</name><ele>642.880</ele></rtept> <rtept lat="54.470649" lon="-2.333500"><name>point 129</name><ele>642.880</ele></rtept> <rtept lat="54.470642" lon="-2.334412"><name>point 130</name><ele>629.760</ele></rtept> <rtept lat="54.470861" lon="-2.334691"><name>point 131</name><ele>619.920</ele></rtept> <rtept lat="54.471328" lon="-2.335668"><name>point 132</name><ele>613.360</ele></rtept> <rtept lat="54.471347" lon="-2.336193"><name>point 133</name><ele>603.520</ele></rtept> <rtept lat="54.471634" lon="-2.336462"><name>point 134</name><ele>600.240</ele></rtept> <rtept lat="54.472376" lon="-2.336365"><name>point 135</name><ele>590.400</ele></rtept> <rtept lat="54.472999" lon="-2.336386"><name>point 136</name><ele>590.400</ele></rtept> <rtept lat="54.473978" lon="-2.336311"><name>point 137</name><ele>557.600</ele></rtept> <rtept lat="54.475025" lon="-2.336590"><name>point 138</name><ele>551.040</ele></rtept> <rtept lat="54.475842" lon="-2.336719"><name>point 139</name><ele>551.040</ele></rtept> <rtept lat="54.476341" lon="-2.336923"><name>point 140</name><ele>544.480</ele></rtept> <rtept lat="54.476160" lon="-2.338403"><name>point 141</name><ele>551.040</ele></rtept> <rtept lat="54.476677" lon="-2.342395"><name>point 142</name><ele>557.600</ele></rtept> <rtept lat="54.476509" lon="-2.345109"><name>point 143</name><ele>560.880</ele></rtept> <rtept lat="54.475867" lon="-2.347126"><name>point 144</name><ele>560.880</ele></rtept> <rtept lat="54.476297" lon="-2.348049"><name>point 145</name><ele>537.920</ele></rtept> <rtept lat="54.476160" lon="-2.348639"><name>point 146</name><ele>544.480</ele></rtept> <rtept lat="54.475555" lon="-2.348832"><name>point 147</name><ele>554.320</ele></rtept> <rtept lat="54.475262" lon="-2.349154"><name>point 148</name><ele>560.880</ele></rtept> <rtept lat="54.475836" lon="-2.349637"><name>point 149</name><ele>574.000</ele></rtept> <rtept lat="54.478017" lon="-2.350162"><name>point 150</name><ele>557.600</ele></rtept> <rtept lat="54.479750" lon="-2.350559"><name>point 151</name><ele>547.760</ele></rtept> <rtept lat="54.480517" lon="-2.350194"><name>point 152</name><ele>560.880</ele></rtept> <rtept lat="54.482100" lon="-2.349025"><name>point 153</name><ele>564.160</ele></rtept> <rtept lat="54.482156" lon="-2.348628"><name>point 154</name><ele>583.840</ele></rtept> <rtept lat="54.484163" lon="-2.342877"><name>point 155</name><ele>600.240</ele></rtept> <rtept lat="54.484438" lon="-2.342073"><name>point 156</name><ele>596.960</ele></rtept> <rtept lat="54.484868" lon="-2.339777"><name>point 157</name><ele>619.920</ele></rtept> <rtept lat="54.486557" lon="-2.336172"><name>point 158</name><ele>577.280</ele></rtept> <rtept lat="54.487653" lon="-2.334251"><name>point 159</name><ele>580.560</ele></rtept> <rtept lat="54.488102" lon="-2.334187"><name>point 160</name><ele>583.840</ele></rtept> <rtept lat="54.489025" lon="-2.334573"><name>point 161</name><ele>587.120</ele></rtept> <rtept lat="54.489536" lon="-2.334316"><name>point 162</name><ele>596.960</ele></rtept> <rtept lat="54.489897" lon="-2.333415"><name>point 163</name><ele>606.800</ele></rtept> <rtept lat="54.489984" lon="-2.332342"><name>point 164</name><ele>610.080</ele></rtept> <rtept lat="54.489860" lon="-2.330990"><name>point 165</name><ele>623.200</ele></rtept> <rtept lat="54.490059" lon="-2.329423"><name>point 166</name><ele>636.320</ele></rtept> <rtept lat="54.489560" lon="-2.327836"><name>point 167</name><ele>636.320</ele></rtept> <rtept lat="54.489573" lon="-2.325604"><name>point 168</name><ele>639.600</ele></rtept> <rtept lat="54.490695" lon="-2.320604"><name>point 169</name><ele>659.280</ele></rtept> <rtept lat="54.492091" lon="-2.315583"><name>point 170</name><ele>705.200</ele></rtept> <rtept lat="54.492614" lon="-2.314939"><name>point 171</name><ele>780.640</ele></rtept> <rtept lat="54.492863" lon="-2.314188"><name>point 172</name><ele>915.120</ele></rtept> <rtept lat="54.493125" lon="-2.310240"><name>point 173</name><ele>908.560</ele></rtept> <rtept lat="54.493262" lon="-2.309446"><name>point 174</name><ele>879.040</ele></rtept> <rtept lat="54.493374" lon="-2.308052"><name>point 175</name><ele>856.080</ele></rtept> <rtept lat="54.493611" lon="-2.307365"><name>point 176</name><ele>875.760</ele></rtept> <rtept lat="54.493536" lon="-2.304597"><name>point 177</name><ele>902.000</ele></rtept> <rtept lat="54.493723" lon="-2.303009"><name>point 178</name><ele>915.120</ele></rtept> <rtept lat="54.494022" lon="-2.301571"><name>point 179</name><ele>970.880</ele></rtept> <rtept lat="54.494060" lon="-2.300627"><name>point 180</name><ele>990.560</ele></rtept> <rtept lat="54.494645" lon="-2.292902"><name>point 181</name><ele>1003.680</ele></rtept> <rtept lat="54.494458" lon="-2.291336"><name>point 182</name><ele>1164.400</ele></rtept> <rtept lat="54.493798" lon="-2.289405"><name>point 183</name><ele>1203.760</ele></rtept> <rtept lat="54.492178" lon="-2.286744"><name>point 184</name><ele>1203.760</ele></rtept> <rtept lat="54.489934" lon="-2.278633"><name>point 185</name><ele>1187.360</ele></rtept> <rtept lat="54.489411" lon="-2.277732"><name>point 186</name><ele>1141.440</ele></rtept> <rtept lat="54.489112" lon="-2.275972"><name>point 187</name><ele>1141.440</ele></rtept> <rtept lat="54.488115" lon="-2.271852"><name>point 188</name><ele>1121.760</ele></rtept> <rtept lat="54.488140" lon="-2.269793"><name>point 189</name><ele>1121.760</ele></rtept> <rtept lat="54.487815" lon="-2.269664"><name>point 190</name><ele>1108.640</ele></rtept> <rtept lat="54.487068" lon="-2.268806"><name>point 191</name><ele>1092.240</ele></rtept> <rtept lat="54.486793" lon="-2.267475"><name>point 192</name><ele>1092.240</ele></rtept> <rtept lat="54.486744" lon="-2.266703"><name>point 193</name><ele>1075.840</ele></rtept> <rtept lat="54.486170" lon="-2.265458"><name>point 194</name><ele>1059.440</ele></rtept> <rtept lat="54.485746" lon="-2.263355"><name>point 195</name><ele>1059.440</ele></rtept> <rtept lat="54.485871" lon="-2.261810"><name>point 196</name><ele>1056.160</ele></rtept> <rtept lat="54.485497" lon="-2.260308"><name>point 197</name><ele>1066.000</ele></rtept> <rtept lat="54.484649" lon="-2.259364"><name>point 198</name><ele>1062.720</ele></rtept> <rtept lat="54.484076" lon="-2.254858"><name>point 199</name><ele>1075.840</ele></rtept> <rtept lat="54.482780" lon="-2.253485"><name>point 200</name><ele>1075.840</ele></rtept> <rtept lat="54.481633" lon="-2.251081"><name>point 201</name><ele>1092.240</ele></rtept> <rtept lat="54.481059" lon="-2.246103"><name>point 202</name><ele>1092.240</ele></rtept> <rtept lat="54.480760" lon="-2.245717"><name>point 203</name><ele>1111.920</ele></rtept> <rtept lat="54.480760" lon="-2.244000"><name>point 204</name><ele>1111.920</ele></rtept> <rtept lat="54.480237" lon="-2.242584"><name>point 205</name><ele>1111.920</ele></rtept> <rtept lat="54.480324" lon="-2.242262"><name>point 206</name><ele>1108.640</ele></rtept> <rtept lat="54.480224" lon="-2.241919"><name>point 207</name><ele>1134.880</ele></rtept> <rtept lat="54.480224" lon="-2.241383"><name>point 208</name><ele>1125.040</ele></rtept> <rtept lat="54.480099" lon="-2.241318"><name>point 209</name><ele>1125.040</ele></rtept> <rtept lat="54.479925" lon="-2.240986"><name>point 210</name><ele>1128.320</ele></rtept> <rtept lat="54.479763" lon="-2.240127"><name>point 211</name><ele>1151.280</ele></rtept> <rtept lat="54.479822" lon="-2.239800"><name>point 212</name><ele>1148.000</ele></rtept> <rtept lat="54.479800" lon="-2.239425"><name>point 213</name><ele>1141.440</ele></rtept> <rtept lat="54.479738" lon="-2.238609"><name>point 214</name><ele>1141.440</ele></rtept> <rtept lat="54.479716" lon="-2.238073"><name>point 215</name><ele>1170.960</ele></rtept> <rtept lat="54.479616" lon="-2.237670"><name>point 216</name><ele>1170.960</ele></rtept> <rtept lat="54.479454" lon="-2.237365"><name>point 217</name><ele>1170.960</ele></rtept> <rtept lat="54.479361" lon="-2.237064"><name>point 218</name><ele>1200.480</ele></rtept> <rtept lat="54.479264" lon="-2.236217"><name>point 219</name><ele>1200.480</ele></rtept> <rtept lat="54.479239" lon="-2.235535"><name>point 220</name><ele>1197.200</ele></rtept> <rtept lat="54.479230" lon="-2.235208"><name>point 221</name><ele>1197.200</ele></rtept> <rtept lat="54.479205" lon="-2.234865"><name>point 222</name><ele>1220.160</ele></rtept> <rtept lat="54.479283" lon="-2.234623"><name>point 223</name><ele>1220.160</ele></rtept> <rtept lat="54.479420" lon="-2.233765"><name>point 224</name><ele>1220.160</ele></rtept> <rtept lat="54.479610" lon="-2.233116"><name>point 225</name><ele>1236.560</ele></rtept> <rtept lat="54.480405" lon="-2.231700"><name>point 226</name><ele>1272.640</ele></rtept> <rtept lat="54.480314" lon="-2.231265"><name>point 227</name><ele>1338.240</ele></rtept> <rtept lat="54.480037" lon="-2.230552"><name>point 228</name><ele>1361.200</ele></rtept> <rtept lat="54.479772" lon="-2.230058"><name>point 229</name><ele>1374.320</ele></rtept> <rtept lat="54.479364" lon="-2.229077"><name>point 230</name><ele>1380.880</ele></rtept> <rtept lat="54.479345" lon="-2.228610"><name>point 231</name><ele>1400.560</ele></rtept> <rtept lat="54.479295" lon="-2.228197"><name>point 232</name><ele>1528.480</ele></rtept> <rtept lat="54.479174" lon="-2.227934"><name>point 233</name><ele>1548.160</ele></rtept> <rtept lat="54.478987" lon="-2.227414"><name>point 234</name><ele>1554.720</ele></rtept> <rtept lat="54.478881" lon="-2.226915"><name>point 235</name><ele>1561.280</ele></rtept> <rtept lat="54.478622" lon="-2.226394"><name>point 236</name><ele>1518.640</ele></rtept> <rtept lat="54.478426" lon="-2.225772"><name>point 237</name><ele>1538.320</ele></rtept> <rtept lat="54.478276" lon="-2.225257"><name>point 238</name><ele>1571.120</ele></rtept> <rtept lat="54.478008" lon="-2.224866"><name>point 239</name><ele>1587.520</ele></rtept> <rtept lat="54.477849" lon="-2.224281"><name>point 240</name><ele>1590.800</ele></rtept> <rtept lat="54.477634" lon="-2.223551"><name>point 241</name><ele>1580.960</ele></rtept> <rtept lat="54.477587" lon="-2.223331"><name>point 242</name><ele>1525.200</ele></rtept> <rtept lat="54.477656" lon="-2.223229"><name>point 243</name><ele>1505.520</ele></rtept> <rtept lat="54.477494" lon="-2.222854"><name>point 244</name><ele>1495.680</ele></rtept> <rtept lat="54.477182" lon="-2.222339"><name>point 245</name><ele>1515.360</ele></rtept> <rtept lat="54.477061" lon="-2.221861"><name>point 246</name><ele>1502.240</ele></rtept> <rtept lat="54.476955" lon="-2.221368"><name>point 247</name><ele>1476.000</ele></rtept> <rtept lat="54.476715" lon="-2.221212"><name>point 248</name><ele>1541.600</ele></rtept> <rtept lat="54.476484" lon="-2.220923"><name>point 249</name><ele>1594.080</ele></rtept> <rtept lat="54.476284" lon="-2.220815"><name>point 250</name><ele>1630.160</ele></rtept> <rtept lat="54.475879" lon="-2.220654"><name>point 251</name><ele>1617.040</ele></rtept> <rtept lat="54.475474" lon="-2.219877"><name>point 252</name><ele>1623.600</ele></rtept> <rtept lat="54.475278" lon="-2.218573"><name>point 253</name><ele>1669.520</ele></rtept> <rtept lat="54.475047" lon="-2.217570"><name>point 254</name><ele>1695.760</ele></rtept> <rtept lat="54.474713" lon="-2.214389"><name>point 255</name><ele>1715.440</ele></rtept> <rtept lat="54.474913" lon="-2.212501"><name>point 256</name><ele>1722.000</ele></rtept> <rtept lat="54.475324" lon="-2.211277"><name>point 257</name><ele>1715.440</ele></rtept> <rtept lat="54.475948" lon="-2.209046"><name>point 258</name><ele>1725.280</ele></rtept> <rtept lat="54.476447" lon="-2.207329"><name>point 259</name><ele>1725.280</ele></rtept> <rtept lat="54.477444" lon="-2.203918"><name>point 260</name><ele>1761.360</ele></rtept> <rtept lat="54.477145" lon="-2.203403"><name>point 261</name><ele>1774.480</ele></rtept> <rtept lat="54.476958" lon="-2.201278"><name>point 262</name><ele>1774.480</ele></rtept> <rtept lat="54.475711" lon="-2.199540"><name>point 263</name><ele>1781.040</ele></rtept> <rtept lat="54.475387" lon="-2.198467"><name>point 264</name><ele>1774.480</ele></rtept> <rtept lat="54.474626" lon="-2.197094"><name>point 265</name><ele>1774.480</ele></rtept> <rtept lat="54.473978" lon="-2.194541"><name>point 266</name><ele>1774.480</ele></rtept> <rtept lat="54.472906" lon="-2.191687"><name>point 267</name><ele>1777.760</ele></rtept> <rtept lat="54.471684" lon="-2.190485"><name>point 268</name><ele>1771.200</ele></rtept> <rtept lat="54.470586" lon="-2.187867"><name>point 269</name><ele>1761.360</ele></rtept> <rtept lat="54.468242" lon="-2.184477"><name>point 270</name><ele>1744.960</ele></rtept> <rtept lat="54.468417" lon="-2.182803"><name>point 271</name><ele>1712.160</ele></rtept> <rtept lat="54.468292" lon="-2.181559"><name>point 272</name><ele>1689.200</ele></rtept> <rtept lat="54.467718" lon="-2.180400"><name>point 273</name><ele>1699.040</ele></rtept> <rtept lat="54.467743" lon="-2.176881"><name>point 274</name><ele>1682.640</ele></rtept> <rtept lat="54.467469" lon="-2.174349"><name>point 275</name><ele>1659.680</ele></rtept> <rtept lat="54.466995" lon="-2.173877"><name>point 276</name><ele>1577.680</ele></rtept> <rtept lat="54.465174" lon="-2.173920"><name>point 277</name><ele>1640.000</ele></rtept> <rtept lat="54.464451" lon="-2.175078"><name>point 278</name><ele>1384.160</ele></rtept> <rtept lat="54.463104" lon="-2.175636"><name>point 279</name><ele>1430.080</ele></rtept> <rtept lat="54.461507" lon="-2.174520"><name>point 280</name><ele>1387.440</ele></rtept> <rtept lat="54.460385" lon="-2.172675"><name>point 281</name><ele>1364.480</ele></rtept> <rtept lat="54.459188" lon="-2.171946"><name>point 282</name><ele>1390.720</ele></rtept> <rtept lat="54.456169" lon="-2.166452"><name>point 283</name><ele>1377.600</ele></rtept> <rtept lat="54.456119" lon="-2.164822"><name>point 284</name><ele>1357.920</ele></rtept> <rtept lat="54.455920" lon="-2.163491"><name>point 285</name><ele>1416.960</ele></rtept> <rtept lat="54.455520" lon="-2.161946"><name>point 286</name><ele>1400.560</ele></rtept> <rtept lat="54.455396" lon="-2.161496"><name>point 287</name><ele>1390.720</ele></rtept> <rtept lat="54.455358" lon="-2.160316"><name>point 288</name><ele>1354.640</ele></rtept> <rtept lat="54.454622" lon="-2.160144"><name>point 289</name><ele>1325.120</ele></rtept> <rtept lat="54.452876" lon="-2.159715"><name>point 290</name><ele>1325.120</ele></rtept> <rtept lat="54.450568" lon="-2.160251"><name>point 291</name><ele>1266.080</ele></rtept> <rtept lat="54.450144" lon="-2.160208"><name>point 292</name><ele>1275.920</ele></rtept> <rtept lat="54.449769" lon="-2.159758"><name>point 293</name><ele>1207.040</ele></rtept> <rtept lat="54.448721" lon="-2.160101"><name>point 294</name><ele>1115.200</ele></rtept> <rtept lat="54.448381" lon="-2.161303"><name>point 295</name><ele>1039.760</ele></rtept> <rtept lat="54.448035" lon="-2.162080"><name>point 296</name><ele>1039.760</ele></rtept> <rtept lat="54.447524" lon="-2.162123"><name>point 297</name><ele>1046.320</ele></rtept> <rtept lat="54.446956" lon="-2.162284"><name>point 298</name><ele>1046.320</ele></rtept> <rtept lat="54.445696" lon="-2.163582"><name>point 299</name><ele>987.280</ele></rtept> <rtept lat="54.444863" lon="-2.164371"><name>point 300</name><ele>987.280</ele></rtept> <rtept lat="54.444155" lon="-2.165294"><name>point 301</name><ele>987.280</ele></rtept> <rtept lat="54.443207" lon="-2.166731"><name>point 302</name><ele>1000.400</ele></rtept> <rtept lat="54.442994" lon="-2.167697"><name>point 303</name><ele>1000.400</ele></rtept> <rtept lat="54.442071" lon="-2.168319"><name>point 304</name><ele>1013.520</ele></rtept> <rtept lat="54.440287" lon="-2.168148"><name>point 305</name><ele>1013.520</ele></rtept> <rtept lat="54.439669" lon="-2.167118"><name>point 306</name><ele>1020.080</ele></rtept> <rtept lat="54.437978" lon="-2.167547"><name>point 307</name><ele>1026.640</ele></rtept> <rtept lat="54.436349" lon="-2.167568"><name>point 308</name><ele>1013.520</ele></rtept> <rtept lat="54.435738" lon="-2.167289"><name>point 309</name><ele>1036.480</ele></rtept> <rtept lat="54.432736" lon="-2.168770"><name>point 310</name><ele>1036.480</ele></rtept> <rtept lat="54.430065" lon="-2.170959"><name>point 311</name><ele>1056.160</ele></rtept> </rte></gpx>

    Thursday, February 09, 2012 11:24 AM
  • There was an issue with the initial release, it only worked in IE. Redownload the zip file and it should work for you. I've testing it in IE7/8/9, Chrome and Firefox.


    http://rbrundritt.wordpress.com

    Friday, February 10, 2012 11:59 AM
    Owner
  • Well, I'm sorry - I must be missing something really obvious but I downloaded the zip file again and I got exactly the same result.  To recap, this is what I'm after...

    And this is what I get with your setup

    (None of the buttons worked.)

    Saturday, February 11, 2012 11:13 AM
  • I suspect you are just opening up the html file in a browser and not running the project in Visual Studio. This will cause the XML files to be unreachable. You need to run the visual studio application so that it hosts the xml files in IIS. Also, if you try running your file you will notice the map will not zoom to your data. That is because there is not bound information in the file metadata.

    http://rbrundritt.wordpress.com

    Sunday, February 12, 2012 7:26 AM
    Owner
  • Hi Richard

    Thanks for being so patient. As I said upthread, I'm not an IT guy. (I had to look up Visual Studio and IIS - had never heard of either). You're right, I am running your code in a browsers (IE9 and FF10). I've tried it locally (from harfd disc) and I've tried uploading your folder structure to my own site at http://www.normanhadley.com/Simple.html You can get a flavour for my (lack of) IT level from the site itself - I'm an engineer and writer, not a codemuncher. Run remotely, the local buttons work OK but not the "Fells loop" and not the one I've added. You suggest it's because the metadata lacks bounds but how come the following URL successfully sets and appropriate cp and lvl for the extent of waypoints?

    It seems utterly baffling to me that this works http://www.bing.com/maps/?sty=s&mapurl=http://veloroutes.org/k/?r=69470 but bing won't let me embed it without the left-hand and top pane. I've tried appending #CloseTaskArea or #ToggleTaskArea to the url. I've even tried including the bing url as an iframe and cropping with style="overflow:hidden;" Nothing works.

    Sunday, February 12, 2012 10:25 AM