Page 1 of 2
Geocoding with satellite default
Posted: 11 Aug 2008, 21:54
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...
Re: Geocoding with satellite default
Posted: 12 Aug 2008, 01:04
by Jan
Re: Geocoding with satellite default
Posted: 12 Aug 2008, 01:50
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.
Re: Geocoding with satellite default
Posted: 13 Aug 2008, 16:56
by Jan
I am sorry, I overlooked the word 'default'
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
Re: Geocoding with satellite default
Posted: 03 Jun 2009, 08:37
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
Re: Geocoding with satellite default
Posted: 03 Jun 2009, 21:16
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
Re: Geocoding with satellite default
Posted: 04 Jun 2009, 08:25
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,
Re: Geocoding with satellite default
Posted: 18 Jul 2009, 00:34
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
Re: Geocoding with satellite default
Posted: 21 Jul 2009, 20:09
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
Re: Geocoding with satellite default
Posted: 23 Jul 2009, 22:26
by Claudiolugano
Thank you very much.
Now everithing works.
Ciao.
Claudio