Page 1 of 1
How to switch geotagging view in PG-v2.6.0
Posted: 08 Dec 2009, 11:09
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
Re: How to switch geotagging view in PG-v2.6.0
Posted: 08 Dec 2009, 16:10
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
Re: How to switch geotagging view in PG-v2.6.0
Posted: 11 Dec 2009, 11:54
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
Re: How to switch geotagging view in PG-v2.6.0
Posted: 13 Dec 2009, 01:30
by Jan
Hi, then you should change it in:
components\com_phocagallery\views\detail\tmpl\default.php
Jan
Re: How to switch geotagging view in PG-v2.6.0
Posted: 13 Dec 2009, 19:47
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

Re: How to switch geotagging view in PG-v2.6.0
Posted: 13 Dec 2009, 19:53
by Jan
Hi, sorry. it should be:
components\com_phocagallery\views\map\tmpl\default.php
Jan
Re: How to switch geotagging view in PG-v2.6.0
Posted: 13 Dec 2009, 20:07
by Benno
Hi Jan,
You can mark this thread as solved.
Thanks a lot,
kind regards,
Benno

Re: How to switch geotagging view in PG-v2.6.0
Posted: 13 Dec 2009, 20:23
by Jan
Ok, solved.
Jan