- Posts: 41
- Thank you received: 0
elevation profile chart is not rendered
- miltos
- Topic Author
- Offline
- Senior Member
-
Less
More
6 days 57 minutes ago #19543
by miltos
elevation profile chart is not rendered was created by miltos
Hi Dima
I am experiencing an issue with the elevation profile when loading a .gpx file using your OSM component on Joomla 5/6.
The map itself loads correctly with the GPX track, but the elevation profile chart is not rendered. Instead, the following errors appear in the browser console (tested on both Microsoft Edge and Firefox):
1. Uncaught TypeError: Cannot read properties of undefined (reading 'each')
→ at replace_resized_imgs
2. Error: <rect> attribute width: A negative value is not valid ("-70")
→ at d3.min.js
3. Uncaught (in promise) SyntaxError: Failed to execute 'querySelector' on 'Element': '[data-name=function(unique=!0){...}]' is not a valid selector.
→ at SVGGElement (d3.min.js)
From the errors, it appears that the D3.js elevation chart is being initialized before the container has a valid width (resulting in a calculated width of -70px), which suggests a timing/rendering issue with the DOM.
Environment:
- Joomla version: 5 / 6
- Browser: Edge (latest) & Firefox (latest) – same result on both
- Component: zhuk.cc OSM with GPX overlay and elevation profile
Thank you for your time and support.
Miltos
I am experiencing an issue with the elevation profile when loading a .gpx file using your OSM component on Joomla 5/6.
The map itself loads correctly with the GPX track, but the elevation profile chart is not rendered. Instead, the following errors appear in the browser console (tested on both Microsoft Edge and Firefox):
1. Uncaught TypeError: Cannot read properties of undefined (reading 'each')
→ at replace_resized_imgs
2. Error: <rect> attribute width: A negative value is not valid ("-70")
→ at d3.min.js
3. Uncaught (in promise) SyntaxError: Failed to execute 'querySelector' on 'Element': '[data-name=function(unique=!0){...}]' is not a valid selector.
→ at SVGGElement (d3.min.js)
From the errors, it appears that the D3.js elevation chart is being initialized before the container has a valid width (resulting in a calculated width of -70px), which suggests a timing/rendering issue with the DOM.
Environment:
- Joomla version: 5 / 6
- Browser: Edge (latest) & Firefox (latest) – same result on both
- Component: zhuk.cc OSM with GPX overlay and elevation profile
Thank you for your time and support.
Miltos
Please Log in or Create an account to join the conversation.
- Dima
-
- Offline
- Platinum Member
-
5 days 23 hours ago #19544
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic elevation profile chart is not rendered
Hi Miltos
My demo
joomla.zhuk.cc/index.php/zhosmmap-main/o...externalmarkerlink=0
shows elevation.
Can you give my direct link to page. You can give me by email (if you want) ZhukDL@gmail.com
My demo
joomla.zhuk.cc/index.php/zhosmmap-main/o...externalmarkerlink=0
shows elevation.
Can you give my direct link to page. You can give me by email (if you want) ZhukDL@gmail.com
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- miltos
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 0
5 days 12 hours ago - 5 days 1 hour ago #19548
by miltos
Replied by miltos on topic elevation profile chart is not rendered
This message contains secure information
Last edit: 5 days 1 hour ago by admin.
Please Log in or Create an account to join the conversation.
- Dima
-
- Offline
- Platinum Member
-
2 days 10 hours ago #19549
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic elevation profile chart is not rendered
Hi
I checked your file.
Just set in your path (where you define GPX file)
Tab File Layer
Layer type field to value - GPX (Internal Parser)
I think you set value to GPX - in this case I use third party library, and it doesn't work with your file
When you defile GPX (Internal Parser) - I parse your file.
And all is OK
I checked your file.
Just set in your path (where you define GPX file)
Tab File Layer
Layer type field to value - GPX (Internal Parser)
I think you set value to GPX - in this case I use third party library, and it doesn't work with your file
When you defile GPX (Internal Parser) - I parse your file.
And all is OK
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- miltos
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 0
2 days 1 hour ago #19550
by miltos
Replied by miltos on topic elevation profile chart is not rendered
Please Log in or Create an account to join the conversation.
- Dima
-
- Offline
- Platinum Member
-
1 day 12 hours ago #19551
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic elevation profile chart is not rendered
Yes.
And it will work.
Do you have correct elevation diagram now?
And it will work.
Do you have correct elevation diagram now?
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
Time to create page: 0.435 seconds