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
How to switch geotagging view in PG-v2.6.0
- Benno
- Phoca Hero

- Posts: 10081
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
- Jan
- 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
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
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
- Benno
- Phoca Hero

- Posts: 10081
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: How to switch geotagging view in PG-v2.6.0
Hi Jan,
kind regards, Benno
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.htmlSo 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";
kind regards, Benno
- Jan
- 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
Hi, then you should change it in:
components\com_phocagallery\views\detail\tmpl\default.php
Jan
components\com_phocagallery\views\detail\tmpl\default.php
Jan
If you find Phoca extensions useful, please support the project
- Benno
- Phoca Hero

- Posts: 10081
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: How to switch geotagging view in PG-v2.6.0
Hi Jan,
Benno
Ok, but how? In this file are no lines like:Hi, then you should change it in:
components\com_phocagallery\views\detail\tmpl\default.php
Thanks, and kind regardsecho $map->setMapTypeOpt()."\n";
Benno
- Jan
- 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
Hi, sorry. it should be:
components\com_phocagallery\views\map\tmpl\default.php
Jan
components\com_phocagallery\views\map\tmpl\default.php
Jan
If you find Phoca extensions useful, please support the project
- Benno
- Phoca Hero

- Posts: 10081
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: How to switch geotagging view in PG-v2.6.0
Hi Jan,
You can mark this thread as solved.
Thanks a lot,
kind regards,
Benno

You can mark this thread as solved.
Thanks a lot,
kind regards,
Benno
- Jan
- 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
Ok, solved.
Jan
Jan
If you find Phoca extensions useful, please support the project