Data from KML file not displayed on map

Phoca Maps - displaying maps in Joomla! CMS
guildofen
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Feb 2022, 21:16

Data from KML file not displayed on map

Post 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

Tags:
guildofen
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Feb 2022, 21:16

Re: Data from KML file not displayed on map

Post 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 :-/
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9673
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Data from KML file not displayed on map

Post by Benno »

Ok.

Kind regards,
Benno
rickenbacher
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Feb 2025, 19:38

Re: Data from KML file not displayed on map

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48648
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Data from KML file not displayed on map

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply