Page 1 of 1

KML Files

Posted: 23 May 2013, 12:37
by gonzato
Hi everybody,

I manage a private database which is able to generate regurlarly an up-to-date KML file of the position of my products.

This is my problem...

- First, I upload my kml file into phocamapskml folder
- I create a map linked to this kml file following Phoca indications
- My web site shows perfectly the map

- Later, My kml file is updated and uploaded in phocamapskml (so it replaces the previous version of my kml file)
- Unfortunately, my web site shows only the first version of my map and no the new version.

Could someone help me ?

Joomla 2.5
Last version of Phoca Map Component
Joomla Cache disabled
Phoca map Cache disabled

I'va tried to clear my firefox cache (no effects), chrome cache (no effects).

Re: KML Files

Posted: 23 May 2013, 15:10
by gonzato
Is there someone who wants to test my problem and tells me if it is similar ?

Please folow these steps :

1. Upload 1 KML file to the rigth folder
2. create a map linked to this file using Phoca Map Composent
3. display the map on your web site
4. modify the KML file
5. re-display the map on your web site
6. Is your map changed ?

Re: KML Files

Posted: 25 May 2013, 16:18
by Jan
Hi, confirmed (not changed), this seems like Google Maps have some cache, so I think, you need to call the file other name if changed (not sure how long the cache is stored and if it is a cache :idea: )

Jan

Re: KML Files

Posted: 28 May 2013, 12:32
by gonzato
Hi,
And thanks for your response.
In effect, this problem comes from the cache of google map server.

I've got two solutions :
1- using networklink tab in my KML to link to a php page which construct on the fly my markers...
2- change the filename after each update of my KML file like MyMarkerposition_{date}{hour}.kml

To do this, I would like to parse the phocamapskml folder, to retreive the fullname of the only file in this folder and to give this filename to your module.

My question is : where can I find in your module the source code associated to the filename of the kml file and where this filename is passed to the kml descripter ?

Re: KML Files

Posted: 31 May 2013, 22:24
by Jan
Hi,
administrator/components/com_phocamaps/helpers/phocamapsmap.php

Jan