Jump to content

map elements


dantzig

Recommended Posts

Hi,

 

I want to be able to change the language of API. As far as I know, for those languages which don't have their own google maps urls (e.g. maps.google.de), the way to change the API language is to add ?&hl=xx to the url. (xx being the language code supported).

I tried to change the API url in the configuration of geomaps to maps.google.com/maps?hl=xx, but it didn't work. Then I searched for the code. I was able to find the one in com_jreviews_addons\geomaps\plugins\geomaps.php, and I added &hl=xx to the following line: $this->google_api_url = $this->google_url."/maps?file=api&v=2&async=2&key={$this->google_api_key}&sensor=false"; . It did work, but only worked on the map in submission form. I couldn't find the way to change the map language in blogview and detail views. I guess map is called via map_detail.thtml (for detail view) and map_results.thtml (for blogview) but I couldn't go further and change the language. Can you help?

 

Thanks

Link to comment
×
×
  • Create New...