Geotagging:how to change pins and customise?

Phoca Gallery - image gallery extension
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Geotagging:how to change pins and customise?

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

Re: Geotagging:how to change pins and customise?

Post 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
If you find Phoca extensions useful, please support the project
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Geotagging:how to change pins and customise?

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

Re: Geotagging:how to change pins and customise?

Post by Jan »

There are more libraries which can affect it, the main is:

administrator\components\com_phocagallery\libraries\phocagallery\render\rendermap.php

Jan
If you find Phoca extensions useful, please support the project
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Geotagging:how to change pins and customise?

Post by phidias81 »

Thank you for reply to all of my questions. I will try to see what I can do. Davide
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Geotagging:how to change pins and customise?

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

Re: Geotagging:how to change pins and customise?

Post by Jan »

Hi, thank you for the guide.

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