- Posts: 40
- Thank you received: 0
elevation profile chart is not rendered
- miltos
- Topic Author
- Offline
- Senior Member
-
Less
More
21 hours 15 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
-
19 hours 51 minutes 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: 40
- Thank you received: 0
8 hours 43 minutes ago - 8 hours 41 minutes ago #19548
by miltos
Replied by miltos on topic elevation profile chart is not rendered
This message contains secure information
Last edit: 8 hours 41 minutes ago by miltos.
Please Log in or Create an account to join the conversation.
Time to create page: 0.253 seconds