Welcome, Guest
Username: Password: Remember me

TOPIC: Map loading issue

Map loading issue 4 months 3 weeks ago #6718

  • Super User
  • Super User's Avatar
  • Online
  • Administrator
  • Posts: 2760
  • Thank you received: 292
  • Karma: 40
I receive this on a grey background and i dont know how to make the map work. I have a project and i need to do this week. Please help me. This dialog box on grey has been displayed for every map from now.....it makes my site bad !

Issue :

This page didn't load Google Maps correctly. See the JavaScript console for technical details.

Solution :

1. Register for a new KEY (console.developers.google.com/flows/enab...&reusekey=true&pli=1) and copy it.

Open the following files,

{root}/administrator/components/com_jomclassifieds/views/adverts/view.html.php
{root}/components/com_jomclassifieds/views/user/view.html.php
{root}/components/com_jomclassifieds/views/advert/view.html.php
{root}/modules/mod_jomclassifieds_maps/mod_jomclassifieds_maps.php


2. Locate the following line,
$document->addScript("https://maps.googleapis.com/maps/api/js?sensor=false");

3. Then change it by adding the API key so that it now looks like this,
$document->addScript( "https://maps.googleapis.com/maps/api/js?sensor=false&key=YOUR_API_KEY" );

4. Save.

Thanks.
The administrator has disabled public write access.
The following user(s) said Thank You: Alexba, Alexandr, prasanna , Russ Yatsenko
Time to create page: 0.518 seconds