'Hidden' settings - map type and 'default zoom'

Phoca Gallery - image gallery extension
chrisyork
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 May 2013, 12:48

'Hidden' settings - map type and 'default zoom'

Post by chrisyork »

Just in case anyone else is interested I found a useful way to display the maps in a different format (I wanted to use 'Terrain' because the images I am uploading are in the countryside nowhere near any features on the 'Roadmap' type).

In administrator/components/com_phocagallery/libraries/phocagallery/render/rendermap.php

line 149 is

Code: Select all

	function setMapTypeOpt( $mapType = 0 ) {
and then there is a list of different 'cases'... I just changed the $mapType :

Code: Select all

	function setMapTypeOpt( $mapType = 3 ) {
It strikes me that it might be possible to add this option to the settings, given that you have done the hard work! Happy to suggest this, but thought I would share it first.

Another thing to share is the default zoom level for images uploaded with geotagging taken from the EXIF data (great feature!)

Go to administrator/components/com_phocagallery/libraries/phocagallery/utils/settings.php

line 34 is :

Code: Select all

			$params['geozoom']			= 8;
I changed 8 to 14, so get a nicely zoomed map for each image.

I wonder if it is possible to set up a 'manual override' in the upload form - so people can select depending on the context of the image (maybe a drop down box to help with folk who don't really know their GoogleMap zoom levels!). Again happy to make the feature request.
Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 'Hidden' settings - map type and 'default zoom'

Post by Jan »

Hi, thank you for the guide. I have added it into feature request list.

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