<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API key required for Google Maps Add-on in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281395#M69071</link>
    <description>&lt;P&gt;We have an internal dashboard that has been using the Google Maps app. We are now getting the below message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Javascript console shows &lt;CODE&gt;"Google Maps API error: MissingKeyMapError &lt;A href="https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error&amp;quot;" target="test_blank"&gt;https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error"&lt;/A&gt;;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It seems that Google now requires an API. &lt;BR /&gt;
Have others encountered this?&lt;/P&gt;

&lt;P&gt;Where exactly should the key be added in the app?&lt;/P&gt;</description>
    <pubDate>Sun, 18 Sep 2016 07:45:55 GMT</pubDate>
    <dc:creator>sc0tt</dc:creator>
    <dc:date>2016-09-18T07:45:55Z</dc:date>
    <item>
      <title>API key required for Google Maps Add-on</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281395#M69071</link>
      <description>&lt;P&gt;We have an internal dashboard that has been using the Google Maps app. We are now getting the below message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Javascript console shows &lt;CODE&gt;"Google Maps API error: MissingKeyMapError &lt;A href="https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error&amp;quot;" target="test_blank"&gt;https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error"&lt;/A&gt;;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It seems that Google now requires an API. &lt;BR /&gt;
Have others encountered this?&lt;/P&gt;

&lt;P&gt;Where exactly should the key be added in the app?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2016 07:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281395#M69071</guid>
      <dc:creator>sc0tt</dc:creator>
      <dc:date>2016-09-18T07:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: API key required for Google Maps Add-on</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281396#M69072</link>
      <description>&lt;P&gt;Hey sc0tt!  I think I may have found it.  I was troubleshooting the same issue you were as well.  Here is what fixed it to me.&lt;/P&gt;

&lt;P&gt;You have to modify the &lt;STRONG&gt;GoogleMaps.js&lt;/STRONG&gt; file at &lt;STRONG&gt;$SPLUNK_HOME/maps/appserver/modules/GoogleMaps/&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Look for this line in the javascript file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;s.src = "//maps.google.com/maps/api/js?sensor=false&amp;amp;version=v3.6&amp;amp;callback=_gmapsOnLoad";
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace it with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;s.src = "https://maps.googleapis.com/maps/api/js?key=&amp;lt;YOUR_API_KEY&amp;gt;&amp;amp;callback=initMap";
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will need to have an API Key already to insert in the link, but it should work.  I was able to load the Google Maps after I replaced this and restarted Splunk.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 15:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281396#M69072</guid>
      <dc:creator>ragedsparrow</dc:creator>
      <dc:date>2016-10-17T15:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: API key required for Google Maps Add-on</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281397#M69073</link>
      <description>&lt;P&gt;All,&lt;/P&gt;

&lt;P&gt;This got me most of the way there.  I'm running Splunk v6.4.2 and from what I have read Google Maps is not officially supported under v6.  I attempted the above fix but the maps would not load but instead hung on "Initializing maps".  After looking through some browser console output I saw that the initMap function was not found.  I then changed the s.src string to this:&lt;/P&gt;

&lt;P&gt;s.src = "&lt;A href="https://maps.googleapis.com/maps/api/js?key=API_KEY&amp;amp;callback=_gmapsOnLoad"&gt;https://maps.googleapis.com/maps/api/js?key=API_KEY&amp;amp;callback=_gmapsOnLoad&lt;/A&gt;";&lt;/P&gt;

&lt;P&gt;Maps now load and I'm able to map the source IPs of my firewall drops onto a map.  Very cool! &lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 20:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281397#M69073</guid>
      <dc:creator>pjpmccarthy</dc:creator>
      <dc:date>2016-12-17T20:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: API key required for Google Maps Add-on</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281398#M69074</link>
      <description>&lt;P&gt;For some unknown reason, this error has gone away and the maps now loads normally (6.2).&lt;BR /&gt;
Since I haven't tested any of the given answers, I'll just vote for them and leave the question unanswered.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 08:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281398#M69074</guid>
      <dc:creator>sc0tt</dc:creator>
      <dc:date>2016-12-19T08:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: API key required for Google Maps Add-on</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281399#M69075</link>
      <description>&lt;P&gt;thank you ,  it is bother me long time&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 10:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/API-key-required-for-Google-Maps-Add-on/m-p/281399#M69075</guid>
      <dc:creator>laudai</dc:creator>
      <dc:date>2017-01-18T10:39:17Z</dc:date>
    </item>
  </channel>
</rss>

