Geocoding with satellite default

Phoca Gallery - image gallery extension
rickshadey
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Aug 2008, 21:45

Geocoding with satellite default

Post by rickshadey »

Hello. Loving this plugin. Still trying to figure some things out though. I'm wondering how to have the satellite view displayed as apposed to the Map view.
I'm new to Joomla and Phoca. I'm learning though... Thanks...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geocoding with satellite default

Post by Jan »

If you find Phoca extensions useful, please support the project
rickshadey
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Aug 2008, 21:45

Re: Geocoding with satellite default

Post by rickshadey »

Thanks for the response Jan. Unfortunately, neither the demo page nor the documentation shows how to display, as default, the "show satellite imagery" as opposed to the "show street map" view. I installed a plugin written by Mike Reumer called, obviously enough, Googlemaps.
http://tech.reumer.net
There are a lot of options available and one is Maptype.
I'm starting to read the code and it would be "mapType='Satellite'"
Just not sure where or how to insert that code.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geocoding with satellite default

Post by Jan »

I am sorry, I overlooked the word 'default' :oops:

The javascript for the detail view, you will find here:

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

The javascript for categories view, you will find here:

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

Jan
If you find Phoca extensions useful, please support the project
mpele
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 03 Jun 2009, 08:25

Re: Geocoding with satellite default

Post by mpele »

I would like to have default map type Hibrid, but with this informations I am not able to make it.
Could you give me detailed instruction how to do this?

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

Re: Geocoding with satellite default

Post by Jan »

Hi,

download Phoca Maps component, you will se there the code for displaying diferent maps:

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

This:

Code: Select all

mapPhocaMap.setMapType(G_SATELLITE_MAP);
need to be added into Google Javascript in Gallery

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

See the Phoca Map for the Javascript code.

Jan
If you find Phoca extensions useful, please support the project
mpele
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 03 Jun 2009, 08:25

Re: Geocoding with satellite default

Post by mpele »

Thanks,
I have replaced G_NORMAL_MAP with G_HYBRID_MAP and now it works as I would like to.

It would be nice to have ability to choose map type from Properties. It isn't dificult to implement but it can be wery usefull.

Thanks again,
Claudiolugano
Phoca Member
Phoca Member
Posts: 18
Joined: 10 Sep 2008, 15:04
Location: Switzerland
Contact:

Re: Geocoding with satellite default

Post by Claudiolugano »

Hi,
sorry come back to this point but I have a problem.
I changed into:
\components\com_phocagallery\views\map\tmpl\default.php
from map_phoca_geo.setMapType(G_NORMAL_MAP); to map_phoca_geo.setMapType(G_SATELLITE_MAP);
and everithng works
I found into
components\com_phocagallery\views\categories\tmpl\default_map.php
//map_phoca_geo.setMapType(G_NORMAL_MAP); and I changed to map_phoca_geo.setMapType(G_SATELLITE_MAP);
and nothing happen in category Geotagging, I continue to see the normal map.

Can somebody to be so kind to tell me what I'm doing wrong?
Thak you in advance for any support.
Claudio
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Geocoding with satellite default

Post by Jan »

Hi, you have changed the detail view (popup). For categories see this file:

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

Jan
If you find Phoca extensions useful, please support the project
Claudiolugano
Phoca Member
Phoca Member
Posts: 18
Joined: 10 Sep 2008, 15:04
Location: Switzerland
Contact:

Re: Geocoding with satellite default

Post by Claudiolugano »

Thank you very much.
Now everithing works.
Ciao.
Claudio
Post Reply