Menu

#236 Google Maps not displaying

version 0.8
open
nobody
None
1
2019-05-08
2016-09-07
Anonymous
No

I cannot get the Google maps to display. I am thinking it is related to the API key being missing in my install. I cannot find any place to configure an API key, The code calls for a key but the java script console shows no key configured in the line
<script type="text/javascript" src="https://maps.google.com/maps/api/js&lt;?php print $key; ?&gt;" &gt;<="" script="">
There is a line in the console shows me
Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

Discussion

  • Anonymous

    Anonymous - 2016-09-07

    I found that if I add a line in both of all-locations-map.php and single-location-map.php of
    $gmaps_api_key = "Not My actual google api key";
    that maps work. Seems like there should be a place to configure the key globally.

     
  • Miha Petkovsek

    Miha Petkovsek - 2016-09-07

    Look at config.dist.php in root and copy api code to config.php

     
  • Anonymous

    Anonymous - 2016-09-07

    Totally missed that! Thanks!
    The issue I am having now is there are 161 locations but only the first six are displaying on the map. I am using lat/long in each location.

     
  • Miha Petkovsek

    Miha Petkovsek - 2016-09-08

    Do you use latest version form GH ?

     
  • Anonymous

    Anonymous - 2016-09-08
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2016-09-16
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2019-05-08
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.