KML Tracks are not shown on map

  • QW1959
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago #13004 by QW1959
KML Tracks are not shown on map was created 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.

More
4 years 9 months ago #13005 by Dima
Replied by Dima on topic KML Tracks are not shown on map
Check browser console for errors.
You can give direct link to your page with map to analyse what problem is.

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.

  • QW1959
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago #13006 by QW1959
Replied by QW1959 on topic KML Tracks are not shown on map
Up to now I always added the KML-Layer directly in MapDetails and it was working well. Since last update it fails without error message.

Look here: www.arfeld.info/index.php/highlights/eder-radweg - now the map is without track.

But I found one solution by maself : I added a path with the track in "Paths" with the internal kml parser and this is working again.

You can see it here: www.arfeld.info/index.php/highlights/wanderwege

Thank you for your wiilingness to help.

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #13007 by Dima
Replied by Dima on topic KML Tracks are not shown on map
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

Don't forget support my developments: post review in JED , donate , help with translation ;)
  • The following user(s) said Thank You: QW1959

    Please Log in or Create an account to join the conversation.

    More
    4 years 9 months ago #13008 by Dima
    Replied by Dima on topic KML Tracks are not shown on map
    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)

    Don't forget support my developments: post review in JED , donate , help with translation ;)
    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
    • New Member
    More
    4 years 9 months ago - 4 years 9 months ago #13011 by QW1959
    Replied by QW1959 on topic KML Tracks are not shown on map
    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 9 months ago by QW1959.

    Please Log in or Create an account to join the conversation.

    Time to create page: 0.185 seconds
    Powered by Kunena Forum