Geocoded event shows map for 2 seconds and then prints the following message in the map box:

Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.

The JavaScript console gives the following details:

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead[know more]js_oehDqIVAP9WWXW5UHjPt8a2GpU152ibH_Vl9IWPA-4A.js:8
"Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messag..."util.js:208:33
"Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messag..."util.js:208:33
"Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messag..."js:34:391
El uso de getPreventDefault() está desaprobada. Usa defaultPrevented en su lugar.

I have searched for the google maps api key in Open Atrium/Drupal configuration without success. Geocoder config page does not show option for google key.

CommentFileSizeAuthor
mapsnotshowing.png35.67 KBhuizache

Comments

huizache created an issue. See original summary.

huizache’s picture

Category: Bug report » Support request
Parkes Design’s picture

I am having exactly the same problem as you, there is no where to put in the API key.

yeiyei’s picture

Hi!

Just run into the same map error (Openatrium-7.x-2.611). The problem is related to the gefield_map submodule, and the origin is a change in Google Maps Javascript API Policy:
\profiles\openatrium\modules\contrib\geofield\modules\geofield_map

This patch that solves the problem:
https://www.drupal.org/node/2757953#comment-11651833

After the patch is applied go Geofield Map Config and add your API Credentials:
/admin/config/content/geofield_map

It is not an OA Issue, it is a Geofield Issue.

mpotter’s picture

Status: Active » Fixed

Added the patch #42 from the issue mentioned in comment #4 to the oa_events.make file. Committed to 9edf414.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.