Custom Marker

Phoca Gallery - image gallery extension
markk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Nov 2008, 13:31

Custom Marker

Post by markk »

Hello Guys,

First of all i want too thank u for the great component u build!
My Question: is it possible too make a custom marker for the google maps integration? ATM there is the standaard red marker but i would like too use my own one! 8)

Thanks in advance for the help!

Mark
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Custom Marker

Post by Jan »

Hi, it is possible if you change the google javascript code:

components\com_phocagallery\views\categories\tmpl\default_map.php
components\com_phocagallery\views\category\tmpl\default_geotagging.php

Jan
If you find Phoca extensions useful, please support the project
markk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Nov 2008, 13:31

Re: Custom Marker

Post by markk »

thanks for your reply!
But what do i need too change in those files? I cant find anything that reffers too the marker icon that google maps uses.. could u help me and lead me into the right direction?

Oh yea and i would like too report a bug too be solved in the next version of ur component just too pay my 2cents :) When i use the Geotagging map thing that it shows the categories in a Map the page title doesnt gets shown, this is because of missing the following PHP code in views/categories/default_map.php:

Code: Select all

<?php
if ( $this->params->def( 'show_page_title', 1 ) ) { ?>
	<div class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
		<?php echo $this->params->get('page_title'); ?>
	</div>
<?php } ?>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Custom Marker

Post by Jan »

Ok, I will fix it for the next version...

Google Marker - I don't know the method, you should find this method in Google Maps API (to change the marker... Phoca Gallery uses standard marker so there are no needed any changes in Google javascript)

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