help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Geocoding latitude/longitude of a venue

Re: Geocoding latitude/longitude of a venue

7 years 7 months ago
#23601
Hi Stevent,

The way Jojo describes is indeed the procedure. After the map coordinates are found, you can click on the "Copy Coordinates" button. Then the long / lat fields on the left are filled in.

I would personally love to get rid of the 3 left buttons (Copy all data / Copy Address / Copy Venue) as they only lead to confusion. Moreover..: What's the point of copying info that you already entered on the left?

All of this works IF you have applied for a Google API key, and entered it in the settings off course....

Please Log in or Create an account to join the conversation.

Re: Geocoding latitude/longitude of a venue

7 years 7 months ago
#23605
I get the idea. Something must be wrong on my side, since the map-canvas is empty. I can enter an address below the add map checkbox but nothing happens if I click on the 'find data button'. Wether I have my setting to plain Google maps or Google maps with api…

Please Log in or Create an account to join the conversation.

Re: Geocoding latitude/longitude of a venue

7 years 7 months ago
#23607
Hi Stevent,

Little question that pops up.
are you seeing any error notices in Firefox -> Webontwikkelaar->webconsole? or in the logs.

Please Log in or Create an account to join the conversation.

Re: Geocoding latitude/longitude of a venue

7 years 7 months ago
#23608
I get this error:

"Can't find variable: google" at line 110 in query.geocomplete.js (Safari) or 'google is not defined' (Firefox)

Please Log in or Create an account to join the conversation.

Re: Geocoding latitude/longitude of a venue

7 years 7 months ago
#23609
guess you checked by a search on google but maybe this will be helpfull:
stackoverflow.com/questions/6660955/google-is-not-defined-when-using-google-maps-v3-in-firefox-remotely
stackoverflow.com/questions/14229695/google-maps-api-throws-uncaught-referenceerror-google-is-not-defined-only-whe

Am currently not using JEM2.x on an online website so can't check right now.. Will however test it soon (probably tonight) as i did register a domain and am planning to use JEM for it so can test it out.

Please Log in or Create an account to join the conversation.

Re: Geocoding latitude/longitude of a venue

7 years 7 months ago - 7 years 7 months ago
#23610
I've found it. My domain is set to https. So one needs to alter the following file:
administrator/components/com_jem/vieuws/venue/view.html.php

Line 59 reads:
Code:
$document->addScript('http://maps.googleapis.com/maps/api/js?'.(!empty($key) ? 'key='.$key.'&' : '').'sensor=false&libraries=places&language='.$language);

This should be changed to https
Code:
$document->addScript('https://maps.googleapis.com/maps/api/js?'.(!empty($key) ? 'key='.$key.'&' : '').'sensor=false&libraries=places&language='.$language);

I think this should be done by default, since the https doesn't affect http sites.
Last edit: 7 years 7 months ago by stevent.

Please Log in or Create an account to join the conversation.

Time to create page: 0.913 seconds