Page 1 of 1
Geotagging:how to change pins and customise?
Posted: 14 Jan 2012, 22:34
by phidias81
Is there a way of customising the default views of the google maps showed in Geotagging? In example changing the pin image, or showing terrain as default, etc? I tried to read the documentation and the forum posts without success.( btw, I wasn't able to find the Api key anywhere in the options) Thank you
Re: Geotagging:how to change pins and customise?
Posted: 16 Jan 2012, 18:44
by Jan
Hi, Google Maps API 3 is used, you don't need to add api key there ... for editing you need to customize the php code library for google maps in Phoca libraries folder:
administrator/components/com_phocagallery/libraries/ ...
Jan
Re: Geotagging:how to change pins and customise?
Posted: 28 Jan 2012, 16:29
by phidias81
Ok, thank you. I actually have no knowledge of php, so I guess i will just leave it as it is. But just to try, is it in a particular file/folder? Because the folder you told me is quite big.
Davide
Re: Geotagging:how to change pins and customise?
Posted: 30 Jan 2012, 23:59
by Jan
There are more libraries which can affect it, the main is:
administrator\components\com_phocagallery\libraries\phocagallery\render\rendermap.php
Jan
Re: Geotagging:how to change pins and customise?
Posted: 05 Feb 2012, 21:16
by phidias81
Thank you for reply to all of my questions. I will try to see what I can do. Davide
Re: Geotagging:how to change pins and customise?
Posted: 20 Feb 2012, 00:32
by phidias81
I found out how to change the default stye of the map: terrain, road, hybrid,etc.
in the file rendermap.php inside \administrator\components\com_phocagallery\libraries\phocagallery\render just change the number at line 144 from 0 to you desired one! Hope it helps.
Code: Select all
function setMapTypeOpt( $mapType = 0 ) {
$output = '';
switch($mapType) {
case 1:
$type = 'SATELLITE';
break;
case 2:
$type = 'HYBRID';
break;
case 3:
$type = 'TERRAIN';
break;
Default:
case 0:
$type = 'ROADMAP';
break;
}
But I still wasn't able to customize the marker. If somebody will find out, drop me a line.
Re: Geotagging:how to change pins and customise?
Posted: 21 Feb 2012, 22:28
by Jan
Hi, thank you for the guide.
Jan