Page 1 of 1

Data from KML file not displayed on map

Posted: 18 Oct 2024, 10:59
by guildofen
Hi
I am using phoca maps 4.0.2 and Joomla 4.4.5.

I would like to get data from a KML file to display on a map - but it doesn't show. I think I must be missing something quite basic.

My Google Maps API is working and the map displays correctly. I have put the kml file in phocamaps, at the moment I am just using a sample file with one point.

I have enabled KML file uploading and put the file name in the Google maps configuration for my map.
I have debug enabled and there are no errors, there are no Javascript errors - there is one warning about async loading.

Here is my sample KML

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <Placemark>
      <name>TEST</name>
      <description>
      </description>
      <Point>
        <coordinates>51.026700,-1.398633</coordinates>
      </Point>
    </Placemark>
  </Document>
</kml>

Here is a link to https://guildofe-test.org/index.php/the-guild/ukmap on my test site

Re: Data from KML file not displayed on map

Posted: 18 Oct 2024, 14:20
by guildofen
OK - ignore this. It's not a problem with phoca maps, it's a problem coordinates. My markers are being shown, just that they are in Thailand and not the UK :-/

Re: Data from KML file not displayed on map

Posted: 18 Oct 2024, 14:35
by Benno
Ok.

Kind regards,
Benno

Re: Data from KML file not displayed on map

Posted: 24 Feb 2025, 19:50
by rickenbacher
I have a similar problem. Íve added the following code to the article: {phocamaps kmlfile=1|view=map|id=2} and get the following message when I display the page (article): Map Error - Check latitude and longitude values in Map Settings.
I have not added any latitude od longitude values and only added the kml file name in the advanced settings (Google Maps) in the Map Section of the Phoca Component,
Íve tried different ways (sequences) to put the code in the article but nothing helps. Ím at the end of my wits.

Re: Data from KML file not displayed on map

Posted: 27 Feb 2025, 01:57
by Jan