How to switch geotagging view in PG-v2.6.0

Phoca Gallery - image gallery extension
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

How to switch geotagging view in PG-v2.6.0

Post by Benno »

Hi Jan,
short question.
In previous versions of PG I switched in \components\com_phocagallery\views\map\tmpl\default.php
the line
map_phoca_geo.setMapType(G_NORMAL_MAP);
to
map_phoca_geo.setMapType(G_HYBRID_MAP);
to get hybrid view by default.
In PG-v2.6.0 I don`t find this lines in this file anymore. What do I have to do now, to get the same result?
Thanks and kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to switch geotagging view in PG-v2.6.0

Post by Jan »

Hi, in 2.6.0 new class for Geotagging was done, see:
administrator\components\com_phocagallery\libraries\phocagallery\render\rendermap.php

So you only change the parameter, e.g. in category view (map in folder):
components\com_phocagallery\views\category\tmpl\default_geotagging.php

FROM:
echo $map->setMapTypeOpt()."\n";
TO:
echo $map->setMapTypeOpt(2)."\n";

Jan
If you find Phoca extensions useful, please support the project
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to switch geotagging view in PG-v2.6.0

Post by Benno »

Hi Jan,
So you only change the parameter, e.g. in category view (map in folder):
components\com_phocagallery\views\category\tmpl\default_geotagging.php

FROM:
echo $map->setMapTypeOpt()."\n";
TO:
echo $map->setMapTypeOpt(2)."\n";
that works perfect, but what do I have to change, if I want to switch the geotagging view of the popup window (each picture) to hybrid view? See http://www.reisefotografien.eu/reisefot ... wales.html
kind regards, Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to switch geotagging view in PG-v2.6.0

Post by Jan »

Hi, then you should change it in:

components\com_phocagallery\views\detail\tmpl\default.php

Jan
If you find Phoca extensions useful, please support the project
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to switch geotagging view in PG-v2.6.0

Post by Benno »

Hi Jan,
Hi, then you should change it in:

components\com_phocagallery\views\detail\tmpl\default.php
Ok, but how? In this file are no lines like:
echo $map->setMapTypeOpt()."\n";
Thanks, and kind regards
Benno :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to switch geotagging view in PG-v2.6.0

Post by Jan »

Hi, sorry. it should be:

components\com_phocagallery\views\map\tmpl\default.php

Jan
If you find Phoca extensions useful, please support the project
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10081
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to switch geotagging view in PG-v2.6.0

Post by Benno »

Hi Jan,
You can mark this thread as solved.
Thanks a lot,
kind regards,
Benno :twisted: :twisted:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to switch geotagging view in PG-v2.6.0

Post by Jan »

Ok, solved.

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