OruxMaps

Uncategorized Boards => GENERAL => Topic started by: G_flow on July 07, 2023, 02:01:03 PM

Title: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 07, 2023, 02:01:03 PM
Hello, any advice for the following?

1. Navigation to Start - I want to press on a point on a map and then Google Maps or Waze will take me there. It useful when I'm driving to the start point of the track.  I bumped it yesterday but can't find it now.

2. Can I change the cursor color/size? Now it's red.

3. When I'm following a track+recording, I don't see my location on the graph on the "right panel". I do see the altitude graph, but not my position on it.

4. Is there a way to display Strava heat map?

5. Is it possible to display a semi-transparent layer of a map on another map? So for example I can have the satellite map as the base map and on top of it, a semi-transperent topographic map, so I can "see through" the satellite map.

Many thanks!



Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 07, 2023, 03:31:52 PM
Hi,

Quote1. Navigation to Start - I want to press on a point on a map and then Google Maps or Waze will take me there. It useful when I'm driving to the start point of the track.  I bumped it yesterday but can't find it now.

you must create a waypoint first. Touching it will open a dialog, at the bottom there are several buttons, the one with the arrow is the one you are looking for.

QuoteCan I change the cursor color/size? Now it's red.

Yes you can, put your custom cursors (png format) on the folder defined in 'Settings - App storage - Cursors Directory' first and then look at 'Settings - User interface - Cursor'

Quote3. When I'm following a track+recording, I don't see my location on the graph on the "right panel". I do see the altitude graph, but not my position on it.

There is another graph for that that will display above the dashboard. Look at 'Settings - User interface - Dashboard - Altitude graph'

Quote4. Is there a way to display Strava heat map?

You must create an entry for it in the onlinemapsources.xml file located on the 'customonlinemaps' subfolder of the folder defined in 'Settings - App storage - Maps directory'. Example of mine here below:

<onlinemapsource uid="100034">
<name>Strava HeatMap</name>
<url><![CDATA[https://strava-heatmap.tiles.freemap.sk/all/hot/{$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>


If you are not familiar with xml, look at the builtin onlinemapsources.xml file located in the maps directory for inspiration.

Quote5. Is it possible to display a semi-transparent layer of a map on another map? So for example I can have the satellite map as the base map and on top of it, a semi-transperent topographic map, so I can "see through" the satellite map.

Yes it is, in oruxmaps those are called composite maps. On the map selector screen, at the top there are four buttons, click on the one with a plus sign and select 'Composite map'.
Note that all maps being part of the composite must have the same projection and the same tile size.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 09, 2023, 02:44:45 PM
Thank you very much, @Juanjo!! Much appreciated :)

I've managed to check and succeed with Navigation to Start and location on Graph. I'm still checking the suggested 3 solutions for the remaining issues. I'll report soon.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Haldo on July 11, 2023, 04:47:00 PM
Quote from: Juanjo on July 07, 2023, 03:31:52 PM

You must create an entry for it in the onlinemapsources.xml file located on the 'customonlinemaps' subfolder of the folder defined in 'Settings - App storage - Maps directory'. Example of mine here below:


If you are not familiar with xml, look at the builtin onlinemapsources.xml file located in the maps directory for inspiration.


about that.....  I always tried this... mainly for the google maps and earth maps   but I never achieve that.

I use the customonlinemaps as secondary maps location and I put the custom xml file in that dir. But I never found those maps in the list of the available maps.

What am I doing wrong?
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 11, 2023, 05:25:43 PM
Quote from: Haldo on July 11, 2023, 04:47:00 PM
about that.....  I always tried this... mainly for the google maps and earth maps   but I never achieve that.

I use the customonlinemaps as secondary maps location and I put the custom xml file in that dir. But I never found those maps in the list of the available maps.

What am I doing wrong?

Well, many things may go wrong, it's difficult to say without seeing the file.

Here below is an example of a valid file containing only one map definition, you can add as many <onlinemapsource> blocks as you want

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

<onlinemapsource uid="100034">
<name>Strava HeatMap</name>
<url><![CDATA[https://strava-heatmap.tiles.freemap.sk/all/hot/{$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>

</onlinemapsources>


One important thing is the uid, it is used to uniquely identify the map in the tile cache database. They must be unique not only within your file but within the app, meaning that you can not use in your custom file uids already present in the builtin one. If you do that your entries will be ignored.

Also, when you modify the custom onlinemapsources file, you have to refresh the map list to have them appearing in the list
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Haldo on July 11, 2023, 11:32:43 PM
Quote from: Juanjo on July 11, 2023, 05:25:43 PM
Well, many things may go wrong, it's difficult to say without seeing the file.

Here below is an example of a valid file containing only one map definition, you can add as many <onlinemapsource> blocks as you want

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

<onlinemapsource uid="100034">
<name>Strava HeatMap</name>
<url><![CDATA[https://strava-heatmap.tiles.freemap.sk/all/hot/{$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>

</onlinemapsources>


One important thing is the uid, it is used to uniquely identify the map in the tile cache database. They must be unique not only within your file but within the app, meaning that you can not use in your custom file uids already present in the builtin one. If you do that your entries will be ignored.

Also, when you modify the custom onlinemapsources file, you have to refresh the map list to have them appearing in the list


well...   Since I couldn't make it work this way, I always manually add the two maps I need in the original onlinemapsource.

It works like a charm. But the down part is that everytime the onlinemapsource gets updated I have to do it again.

BTW here is my file. The uid are unique.

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

<onlinemapsource uid="9999">
<name>Google Maps</name>
<url><![CDATA[http://mt{$s}.google.cn/vt/lyrs=m@121&hl={$l}&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<httpparam name=""></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="9998">
<name>Google Earth</name>
<!--<url><![CDATA[http://khm{$s}.google.cn/kh/v=123&x={$x}&y={$y}&z={$z}]]></url>-->
<url><![CDATA[http://www.google.cn/maps/vt?lyrs=s@168&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>20</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<httpparam name=""></httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>

</onlinemapsources>


and of course I am refreshing the list of maps
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Haldo on July 12, 2023, 09:28:13 AM
I stopped trying a long ago.. but now I know what was the issue....   I was stupid.

The name of the file MUST be "onlinemapsources"

Mine was without the ending "s"

Now works. Thank you anyway.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Tronpo on July 12, 2023, 02:01:35 PM
Quote from: Haldo on July 12, 2023, 09:28:13 AM
I stopped trying a long ago.. but now I know what was the issue....   I was stupid.

The name of the file MUST be "onlinemapsources"

Mine was without the ending "s"

Now works. Thank you anyway.

How angry it is, how something so simple has bothered you for so long... I understand you.

🅃🅁🄾🄽🄿🄾
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 15, 2023, 03:50:53 PM
Quote from: Juanjo on July 07, 2023, 03:31:52 PM

You must create an entry for it in the onlinemapsources.xml file located on the 'customonlinemaps' subfolder of the folder defined in 'Settings - App storage - Maps directory'. Example of mine here below:

<onlinemapsource uid="100034">
<name>Strava HeatMap</name>
<url><![CDATA[https://strava-heatmap.tiles.freemap.sk/all/hot/{$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>


If you are not familiar with xml, look at the builtin onlinemapsources.xml file located in the maps directory for inspiration.

Yes it is, in oruxmaps those are called composite maps. On the map selector screen, at the top there are four buttons, click on the one with a plus sign and select 'Composite map'.
Note that all maps being part of the composite must have the same projection and the same tile size.

Hello, I've tried today to add the code you inserted to the xml file, but when I looked at the ONLINE maps there wasn't any maps there. Also previous maps disappeared. I think I'm using a unique onlinemapsource file as someone in the community made it custom-made to our needs. Is it possible that I insert the all code of the file and you would implement what is needed? But I don't think I can upload the file here... Any suggestions? Thank you!!

Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 15, 2023, 04:07:07 PM
Quote from: Juanjo on July 07, 2023, 03:31:52 PM


Yes you can, put your custom cursors (png format) on the folder defined in 'Settings - App storage - Cursors Directory' first and then look at 'Settings - User interface - Cursor'


Thank you for your suggestion, but I don't think the solution works for me. When I followed your instructions, it only resulted in a PNG picture that couldn't be rotated like the red arrowhead shown in the screenshot. What I actually want is to be able to change the size and color of the arrowhead. Do you think it's possible to achieve this? Thank you for your assistance.

Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 15, 2023, 05:46:45 PM
Quote from: G_flow on July 15, 2023, 03:50:53 PM
Hello, I've tried today to add the code you inserted to the xml file, but when I looked at the ONLINE maps there wasn't any maps there. Also previous maps disappeared. I think I'm using a unique onlinemapsource file as someone in the community made it custom-made to our needs. Is it possible that I insert the all code of the file and you would implement what is needed? But I don't think I can upload the file here... Any suggestions? Thank you!!

it is not advisable to modify the builtin onlinemapsources.xml file on the maps folder because, when the app is updated, this file may be overwritten.
You have to create your own onlinemapsouces.xml file in the customonlinemaps subfolder. The app would search for maps on both files and will never modify/overwrite your custom one.

The full code is this:
<?xml version="1.0" encoding="utf-8"?>
<onlinemapsources>

<onlinemapsource uid="100034">
<name>Strava HeatMap</name>
<url><![CDATA[https://strava-heatmap.tiles.freemap.sk/all/hot/{$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>

</onlinemapsources>


You can copy this to a file, save it as onlinemapsources.xml and copy it to the customonlinemaps folder, then goto oruxmaps and refresh the map list, a new map named 'Strava HeatMap' should appear in the list
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 15, 2023, 05:56:32 PM
Quote from: G_flow on July 15, 2023, 04:07:07 PM
Thank you for your suggestion, but I don't think the solution works for me. When I followed your instructions, it only resulted in a PNG picture that couldn't be rotated like the red arrowhead shown in the screenshot. What I actually want is to be able to change the size and color of the arrowhead. Do you think it's possible to achieve this? Thank you for your assistance.

I am not sure I understand what you want to achieve here. If what you mean is 'is it possible to have cursors that can rotate at runtime?' the answer is no.
You can use custom cursors but those are just plain png files. The app will not rotate them in any way.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 18, 2023, 02:47:07 PM
So I'm happy to update that I've managed to deal with the heatmap, that's great, thx!

About the transparent issue:


Quote from: Juanjo on July 07, 2023, 03:31:52 PM

Yes it is, in oruxmaps those are called composite maps. On the map selector screen, at the top there are four buttons, click on the one with a plus sign and select 'Composite map'.
Note that all maps being part of the composite must have the same projection and the same tile size.

I did what you said but I don't see the maps that I wanna use on the list that opens, once I press the plus sign.

The maps I wanna use:

- Offline map
- Online satellite map
- Online Strava heatmap

Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 18, 2023, 02:50:33 PM
Quote from: Juanjo on July 15, 2023, 05:56:32 PM
I am not sure I understand what you want to achieve here. If what you mean is 'is it possible to have cursors that can rotate at runtime?' the answer is no.
You can use custom cursors but those are just plain png files. The app will not rotate them in any way.

I see, I wish the feature of changing the cursor size and color be implemented soon, sometimes when I navigate the cursor is too small for me and the path on the map is red, which makes it all difficult.

Where can I purpose that to the developers?
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 18, 2023, 04:30:05 PM
Quote from: G_flow on July 18, 2023, 02:50:33 PM
I see, I wish the feature of changing the cursor size and color be implemented soon, sometimes when I navigate the cursor is too small for me and the path on the map is red, which makes it all difficult.

Where can I purpose that to the developers?

This can already be done using custom cursors as I explained you here:
QuoteYes you can, put your custom cursors (png format) on the folder defined in 'Settings - App storage - Cursors Directory' first and then look at 'Settings - User interface - Cursor'

As an example, copy the attached file to the cursors directory on your device, then goto 'Settings - User interface - Cursor' and touch GPS cursor, a list will open containing the 2 builtin cursors and the new one 'North arrow blue'.
BTW, unlike what i said in another post, this cursor will rotate to show the direction you are moving to. To work properly the arrow on the original png must point to the North.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 18, 2023, 04:33:37 PM
QuoteI did what you said but I don't see the maps that I wanna use on the list that opens, once I press the plus sign.

The maps I wanna use:

- Offline map
- Online satellite map
- Online Strava heatmap

That's strange, the Strava HeatMap that you added should be there as well as other online and offline maps.
Can you please attach a screenshot?
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Tronpo on July 18, 2023, 08:48:35 PM
Quote from: G_flow on July 18, 2023, 02:47:07 PM
So I'm happy to update that I've managed to deal with the heatmap, that's great, thx!

About the transparent issue:


I did what you said but I don't see the maps that I wanna use on the list that opens, once I press the plus sign.

The maps I wanna use:

- Offline map
- Online satellite map
- Online Strava heatmap

Maybe this will help you 👇

http://tronpoonpo.blogspot.com/2021/07/mapas-compuestos.html

You can translate the blog into your language 👇
https://youtu.be/3TsnSIekCXc

🅃🅁🄾🄽🄿🄾
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 23, 2023, 03:32:57 PM
Quote from: Juanjo on July 18, 2023, 04:30:05 PM
This can already be done using custom cursors as I explained you here:
As an example, copy the attached file to the cursors directory on your device, then goto 'Settings - User interface - Cursor' and touch GPS cursor, a list will open containing the 2 builtin cursors and the new one 'North arrow blue'.
BTW, unlike what i said in another post, this cursor will rotate to show the direction you are moving to. To work properly the arrow on the original png must point to the North.

Thank you, I've managed to implement the North arrow blue.png (Also removed the white background). But now I have both arrows displayed - the new blue arrow and the red arrow. When recording/following, the blue arrow is always in a second delay than the red one. I want it to replace completely the red (default) arrow. Please see the attached pictures.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 23, 2023, 03:39:05 PM
Quote from: G_flow on July 18, 2023, 02:50:33 PM
I see, I wish the feature of changing the cursor size and color be implemented soon, sometimes when I navigate the cursor is too small for me and the path on the map is red, which makes it all difficult.

Where can I purpose that to the developers?

Sure, see 3 screenshots:

1. The screen I see once I press the + sign.
2. My offline maps screen.
3. My online maps screen.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 23, 2023, 06:48:35 PM
QuoteThank you, I've managed to implement the North arrow blue.png (Also removed the white background). But now I have both arrows displayed - the new blue arrow and the red arrow. When recording/following, the blue arrow is always in a second delay than the red one. I want it to replace completely the red (default) arrow. Please see the attached pictures.

you assigned the blue arrow to the map center marker, you should assign it to the GPS marker instead.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 23, 2023, 06:53:11 PM
QuoteSure, see 3 screenshots:

1. The screen I see once I press the + sign.
2. My offline maps screen.
3. My online maps screen.

on the first screenshot you must click the button next to 'COMPOSITE MAP', a dialog will open where you can compose your map.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 24, 2023, 03:27:49 PM
Quote from: Juanjo on July 23, 2023, 06:53:11 PM
on the first screenshot you must click the button next to 'COMPOSITE MAP', a dialog will open where you can compose your map.

Thank you, @Juanjo, both your solutions (cursor issue and composite map) worked for me.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 27, 2023, 09:37:37 AM
Quote from: Juanjo on July 18, 2023, 04:33:37 PM
That's strange, the Strava HeatMap that you added should be there as well as other online and offline maps.
Can you please attach a screenshot?

Hello, I managed to implement the Strava Heatmap. I have an issue, when I'm zooming in it, the map disappears and I left with my GPS single only. Please see the screenshots attached. We'll appreciate any help.



Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 27, 2023, 10:01:07 AM
Quote from: G_flow on July 23, 2023, 03:32:57 PM
Thank you, I've managed to implement the North arrow blue.png (Also removed the white background). But now I have both arrows displayed - the new blue arrow and the red arrow. When recording/following, the blue arrow is always in a second delay than the red one. I want it to replace completely the red (default) arrow. Please see the attached pictures.

Hi I have questions about the cursor, please see the file attached, we'll be glad to have your assistance guys, thank you!
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 27, 2023, 01:47:55 PM
QuoteHello, I managed to implement the Strava Heatmap. I have an issue, when I'm zooming in it, the map disappears and I left with my GPS single only. Please see the screenshots attached. We'll appreciate any help.

this is because the max zoom of tiles served by strava-heatmap.tiles.freemap.sk is 16. You can adjust the <maxzoom> tag of that map on your custom onlinemapsources.xml, that way oruxmaps will know that it shouldn't request tiles for higher zooms.

BTW, as the tiles background is transparent, Strava Heatmap is a perfect candidate for a composite map. You can, for example, put it on top of OSM and use the composite, that way on zooms above 16 the heat map will disappear but the OSM base will still display
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: Juanjo on July 27, 2023, 01:56:25 PM
QuoteHi I have questions about the cursor, please see the file attached, we'll be glad to have your assistance guys, thank you!

- to mask the line: see 'Settings - User interface - Tracks/Routes/Lines/Letter sizes.../ - Line to last position'
- about the view angle: IT IS already attached to the map center, in your picture it seems you want to attach it to the GPS position, that's not possible.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on July 30, 2023, 11:19:32 AM
Quote from: Juanjo on July 27, 2023, 01:56:25 PM
- to mask the line: see 'Settings - User interface - Tracks/Routes/Lines/Letter sizes.../ - Line to last position'
- about the view angle: IT IS already attached to the map center, in your picture it seems you want to attach it to the GPS position, that's not possible.

Got it, thank you. Btw, is there a strava heatmap that shows only bicycle activity? I guess the heatmap code that was published here was all type of sport.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: LaurentG on July 30, 2023, 01:36:41 PM
For various heatmaps, in the URL, there are two parameters ("all" and "hot" in the example provided above)
The first parameter can be
  all (ie. all tracks, whatever the sport)
  ride (ie. bike)
  run (ie. hike and running)
  water (ie. water sports)
  winter (ie. skiing and other winter sports)

The second parameter can be
  hot
  blue
  purple
  gray
  bluered
and acts on tracks color.

Personnally, my preferred "color" is bluered that better "filters" tracks and do not show very rarely used tracks, but focus only on tracks above a minimum level of usage, and have a color varying from blue to red depending on usage level (low usage in blue, high usage in red)
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on August 04, 2023, 09:49:41 AM
Quote from: LaurentG on July 30, 2023, 01:36:41 PM
For various heatmaps, in the URL, there are two parameters ("all" and "hot" in the example provided above)
The first parameter can be
  all (ie. all tracks, whatever the sport)
  ride (ie. bike)
  run (ie. hike and running)
  water (ie. water sports)
  winter (ie. skiing and other winter sports)

The second parameter can be
  hot
  blue
  purple
  gray
  bluered
and acts on tracks color.

Personnally, my preferred "color" is bluered that better "filters" tracks and do not show very rarely used tracks, but focus only on tracks above a minimum level of usage, and have a color varying from blue to red depending on usage level (low usage in blue, high usage in red)

Thank you, @LaurentG, now after setting my custom map to "ride" and "bluered", I wonder if I can add another heatmap, for example, run&bluered. So I could instantly switch between those maps.  Now on my custommap folder, I have only one file, onlinemapsources.xml, being set with ride&bluered and mentioned.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: LaurentG on August 04, 2023, 02:36:03 PM
Quote from: G_flow on August 04, 2023, 09:49:41 AM
... I wonder if I can add another heatmap, for example, run&bluered...

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....)
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on August 04, 2023, 05:13:19 PM
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. 
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: 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.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on August 04, 2023, 08:43:34 PM
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!
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: LaurentG on August 05, 2023, 08:46:04 AM
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>
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on August 05, 2023, 09:34:40 AM
Got it, thx!
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on August 11, 2023, 09:13:09 PM
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>
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: 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.
Title: Re: Batch of questions - Navigation to Start, Cursor Color, Altitude Graph, Heatm...
Post by: G_flow on August 14, 2023, 09:28:33 PM
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.