-
Forum
-
Zh OpenStreetMap
-
Component
-
KML Tracks are not shown on map
KML Tracks are not shown on map
-
QW1959
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
4 years 3 months ago #13004
by QW1959
I just did the last update for all ZH OpenstreetMap components - after this update all the KML Tracks are not shown on my maps - before update it was working well.
Any suggestions to solve this issue?
Thank you, Kai
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4611
-
Thank you received: 460
-
-
-
-
-
4 years 3 months ago #13005
by Dima
Check browser console for errors.
You can give direct link to your page with map to analyse what problem is.
Please Log in or Create an account to join the conversation.
-
QW1959
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
Less
More
-
Posts: 4611
-
Thank you received: 460
-
-
-
-
-
4 years 3 months ago #13007
by Dima
I checked - all works correctly.
As in map definition, as as paths.
Check your browser console.
Look at messages
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
And if you check.
Your site:
www.arfeld.info
And URL for KML:
arfeld.info/images
Just rewrite your URL to
www.arfeld.info/images
The following user(s) said Thank You: QW1959
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4611
-
Thank you received: 460
-
-
-
-
-
4 years 3 months ago #13008
by Dima
Moreover, in your second map there are 2 call kml file, but only one will be processed
first
var kmlLayer2 = zhomPathParser.kml('images/gpxtracks/via-adrina.kml', pathOpt2);
second
var kmlLayer = omnivore.kml('
arfeld.info/images/gpxtracks/via-adrina.kml')
and only first will be, because you use internal parser with relative path to file.
The second is blocked by CORS, you can see it in console.
You forced rewrite your site to
www.arfeld.info/
Therefore all
arfeld.info/ will be blocked by CORS (if you not configure the other)
The following user(s) said Thank You: QW1959
Please Log in or Create an account to join the conversation.
-
QW1959
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
4 years 3 months ago - 4 years 3 months ago #13011
by QW1959
Thank you very much - I'm still learning in Joomla an different plugins and modules. Your support was very helpful - now I've been able to solve all issues in ZH OpenStreetMap. Therefore I did a small donation...
Last edit: 4 years 3 months ago by QW1959.
Please Log in or Create an account to join the conversation.
-
Forum
-
Zh OpenStreetMap
-
Component
-
KML Tracks are not shown on map
Time to create page: 0.086 seconds