Show marker info

Phoca Maps - displaying maps in Joomla! CMS
BenLomax
Phoca Member
Phoca Member
Posts: 28
Joined: 05 Sep 2009, 09:52

Show marker info

Post by BenLomax »

Hi.
It is possible to default show description of the marker?
Now i have marker and i must click on him to show description.
Sory for my poor EN.
BenLomax
Phoca Member
Phoca Member
Posts: 28
Joined: 05 Sep 2009, 09:52

Re: Show marker info

Post by BenLomax »

Anybody can't help me? I show on attachment what i want mod.

Now i have default view like on image number 2 but i want default view like on image number 1.
Image
Sory for my poor EN.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Show marker info

Post by Jan »

Hi, for now there is no such option, I don't know if there is some parameter for this, but maybe there is one in Google Maps API, If yes, then this needs to be customized in the code then :-( :-(

Jan
If you find Phoca extensions useful, please support the project
Heimi
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Jan 2010, 22:52

Re: Show marker info

Post by Heimi »

Hello Jan,

I'm looking for this option, too. I tried to find out what i have to change and i found a solution:
I' ve only added "markerPhocaMarker1PlgPM1.openInfoWindowHtml..." once again without the click-function and so it will be shown immediately and it will be also clickable. I found it in the soucecode of another Joomla-Google-Maps-Plugin.

Code: Select all

markerPhocaMarker1PlgPM1.openInfoWindowHtml('<h1>Blablabla</h1><div><p>Blablabla</p></div>');
GEvent.addListener(markerPhocaMarker1PlgPM1, 'click', function() {
markerPhocaMarker1PlgPM1.openInfoWindowHtml('<h1>Blablabla</h1><div><p>Blablabla</p></div>');
				});
Could you perhaps put it in the next update?

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

Re: Show marker info

Post by Jan »

Hi, added into the feature request list.

Jan
If you find Phoca extensions useful, please support the project
arkoudaki
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 27 May 2009, 13:56
Location: Greece

Re: Show marker info

Post by arkoudaki »

Hello Peter,

May i ask where you placed the code? I'm also interested in finding a solution my self and have not found a way to make markers to auto show when the page loads..

thank you

Samantha
Post Reply