Hello, i installed the Phoca Maps Component and Plugin to my website. It works correctly, but i have a problem to add a kml file from google maps.
I have followed all your istructions but something is missing.
I need your help.
Problem with KML file
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with KML file
Hi, what you exactly mean with "I have a problem to add a kml"?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 07 Jul 2014, 17:29
Re: Problem with KML file
Well, as i follow your instructions, it seems that the kml file doesn't load in the map i set it, it just show a simple map. I have enabled to load kml files from the parameters.
-
- Phoca Newbie
- Posts: 4
- Joined: 08 Jul 2014, 17:08
Re: Problem with KML file
hi, i've the same problem, but i don't understand where my error is.
first of all, the kml file:
i login in google map, I point A to B and google traces a path.
i save the map and now i can download 3 formats of kml.
right now i upload the the .kml files in /phocamapskml dir
in phoca map component i create a new map,
just with the name and then the field of the kml file,
with the name of the .kml: not the absolute nor relative path.
then i go to the menu administration and i create a link point to the
map created for the kml file.
in the component options, the "Enable KML File Loading" is set to yes.
on the front-ned i get this, for each one of the kml maps
first of all, the kml file:
i login in google map, I point A to B and google traces a path.
i save the map and now i can download 3 formats of kml.
right now i upload the the .kml files in /phocamapskml dir
in phoca map component i create a new map,
just with the name and then the field of the kml file,
with the name of the .kml: not the absolute nor relative path.
then i go to the menu administration and i create a link point to the
map created for the kml file.
in the component options, the "Enable KML File Loading" is set to yes.
on the front-ned i get this, for each one of the kml maps
Code: Select all
Strict Standards: Non-static method PhocaMapsPath::getPath() should not be called statically, assuming $this from incompatible context in F:\xampp\htdocs\site-root\components\com_phocamaps\views\map\view.html.php on line 191
Strict Standards: Non-static method PhocaMapsPath::getInstance() should not be called statically, assuming $this from incompatible context in F:\xampp\htdocs\site-root\administrator\components\com_phocamaps\helpers\phocamapspath.php on line 29
Google Maps Error - Check latitude and longitude values in Map Settings
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with KML file
Hi, Strict Standard warnings are not a problem, but just try to disable them:
https://www.phoca.cz/documents/50-phoca/ ... tic-method
Did you set the latitude and longitude in Map Settings?
https://www.phoca.cz/documents/50-phoca/ ... tic-method
Did you set the latitude and longitude in Map Settings?
If you find Phoca extensions useful, please support the project