Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...

Started by G_flow, July 07, 2023, 02:01:03 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

G_flow

Quote from: LaurentG on August 04, 2023, 02:36:03 PM
Yes, of course.
You only have to duplicate all the lines relative to this map in onlinemapsources.xml (only one onlinemapsources.xml file, with all lines defining the map repeated in the same file)

Actually, not exactly "duplicate", since
- parameter will be different in both paragraphs according to your need (run vs. ride)
- but also uid=... (in 1st line of each map definition) has to be different (actually, all maps defined in onlinemapsources.xml must have a unique uid)
- and also <name>....</name>  has to be unique as well (actually, I'm not 100% sure it has "technically" to be unique, but at least to allow you to identify uniquely the map in the list....)

Thanks, as you can see in the attached photo, I changed the uid to 5 at the end, and it seems now I do have two maps on the list. The problem is that when I try to change the names (both of them), as in the blue rectangles, the result is that I don't see any heatmap on the list. 

LaurentG

You probably do a typo error somewhere modifying the name...

Each line must remain on the form
<name>Whichever name you want</name>

If you do not understand your mistake / mistyping, pls attach the modified xml file here in order for me to review it and find what's wrong.

G_flow

Quote from: LaurentG on August 04, 2023, 05:37:03 PM
You probably do a typo error somewhere modifying the name...

Each line must remain on the form
<name>Whichever name you want</name>

If you do not understand your mistake / mistyping, pls attach the modified xml file here in order for me to review it and find what's wrong.

Yes you are probably right, it's working now. I think the reason for the problem was using the sign "&" in the name I gave. I named it heatmap ride&bluered   Once I changed it to heatmap rideandblurered , the maps appeared in the list. Thx!

LaurentG

Special characters, like "&" must be "encapsulated" in a "CDATA" section (on the model of what is done for <url> and <website> tags in the file).

If you want to name your map "Strava heatmap ride&bluered", the <name> line has to be

<name><![CDATA[Strava heatmap ride&bluered]]></name>


G_flow

Hi guys, I've tried to implement in my custom map file some maps, but they are not appearing. And also the two strava heatmap that I managed to present in the past are gone as well. I guess it's ok to post the full code here?

<?xml version="1.0" encoding="utf-8"?>
<onlinemapsources>

<onlinemapsource uid="100034">
<name>Strava HeatMap rideandbluered</name>
<url><![CDATA[https://strava-heatmap.tiles.freemap.sk/ride/bluered/{$z}/{$x}/{$y}.png?px=256]]></url>
<website><![CDATA[© Strava]]></website>
<minzoom>1</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="User-Agent">{om}</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>

<onlinemapsource uid="100035">
<name>Strava HeatMap runandbluered</name>
<url><![CDATA[https://strava-heatmap.tiles.freemap.sk/run/bluered/{$z}/{$x}/{$y}.png?px=256]]></url>
<website><![CDATA[© Strava]]></website>
<minzoom>1</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="User-Agent">{om}</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>

onlinemapsource uid="1">
<name>Google (SAT)</name>
<url><![CDATA[http://khm{$s}.googleapis.com/kh?v=197&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>18</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>

<onlinemapsource uid="2">
<name>Google (TOPO)</name>
<url><![CDATA[http://mt{$s}.google.com/vt/lyrs=t,r&hl=iw&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>15</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>

<onlinemapsource uid="3">
<name>Google (HYBRID)</name>
<url><![CDATA[http://mt{$s}.google.com/vt/lyrs=s,m&hl=iw&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>15</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>

<onlinemapsource uid="4">
<name>Cyclemap (TOPO)</name>
<url><![CDATA[http://{$s}.tile.opencyclemap.org/cycle/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>18</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>a,b,c</servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>

<onlinemapsource uid="5">
<name>Geofabrik (STREETS)</name>
<url><![CDATA[http://{$s}.tile.geofabrik.de/549e80f319af070f8ea8d0f149a149c2/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>16</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>a,b,c</servers>
</onlinemapsource>

<onlinemapsource uid="6">
<name>Bing (STREETS)</name>
<url><![CDATA[http://ak.dynamic.t2.tiles.virtualearth.ne{$s}/comp/ch/{$q}?mk{$s}=he-il&ur=IL&i{$s}=G,VE,BX,L,LA]]></url>
<minzoom>1</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<servers>t</servers>
</onlinemapsource>



</onlinemapsources>

Lenz

Hello G_flow,
a "<" is missing at the beginning of line 44 - add it and it will work.

G_flow

Quote from: Lenz on August 12, 2023, 08:05:08 AM
Hello G_flow,
a "<" is missing at the beginning of line 44 - add it and it will work.

Thank you, Lenz, it worked.