<?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 Re: Google Maps not load correctly in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19626#M8680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;calvo _&lt;/B&gt;‌&lt;/P&gt;&lt;P&gt;On my previous/other installation -- and I was thought it was default configuration -- that API Key is not required, until this happened.&lt;/P&gt;&lt;P&gt;Actually the correct map was loaded for a milliseconds, and then switched to error page.&lt;/P&gt;&lt;P&gt;This &lt;A class="link-titled" href="http://docs.alfresco.com/5.2/tasks/library-item-view-googlemaps.html" title="http://docs.alfresco.com/5.2/tasks/library-item-view-googlemaps.html" rel="nofollow noopener noreferrer"&gt;View a file on Google Maps | Alfresco Documentation&lt;/A&gt; also not mention about the API Key to view a file on Google Maps.&lt;/P&gt;&lt;P&gt;Anyway thanks for your tricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[bayu]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 10:49:33 GMT</pubDate>
    <dc:creator>billydekid</dc:creator>
    <dc:date>2017-06-22T10:49:33Z</dc:date>
    <item>
      <title>Google Maps not load correctly</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19624#M8678</link>
      <description>Hi,I recently have a strange problem when any photos with geo-tagging unable to load into Google Maps.From Javascript console, the error message was clear: MissingKeyMapError (see file attached)I try to delete /share folder but still no luck.Following are my Alfresco version (installed on CentOS 7):</description>
      <pubDate>Thu, 22 Jun 2017 09:45:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19624#M8678</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-06-22T09:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps not load correctly</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19625#M8679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google Maps needs API Key to consume this services.&lt;/P&gt;&lt;P&gt;In my case, I solved this issue as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First we have to generate our APIKey form Google. More information:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.google.com/maps/documentation/javascript/get-api-key?hl=ES" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.google.com/maps/documentation/javascript/get-api-key?hl=ES&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, the quick solution (maybe not the best) is to modify this files (the best option is to extend share):&lt;BR /&gt;[Alfresco]\tomcat\webapps\share\components\geographic\google-map.js&lt;BR /&gt;[Alfresco]\tomcat\webapps\share\components\geographic\google-map-min.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both files, when we make a request to Google Maps, we will add a parameter "key=OUR_API_KEY", so the url will be:&lt;/P&gt;&lt;P&gt;script.src = window.location.protocol + "//maps.google.com/maps/api/js?sensor=false&amp;amp;amp;key=OUR_API_KEY&amp;amp;amp;callback=Alfresco.component.GoogleMap.Callback";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 10:26:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19625#M8679</guid>
      <dc:creator>calvo</dc:creator>
      <dc:date>2017-06-22T10:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps not load correctly</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19626#M8680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;calvo _&lt;/B&gt;‌&lt;/P&gt;&lt;P&gt;On my previous/other installation -- and I was thought it was default configuration -- that API Key is not required, until this happened.&lt;/P&gt;&lt;P&gt;Actually the correct map was loaded for a milliseconds, and then switched to error page.&lt;/P&gt;&lt;P&gt;This &lt;A class="link-titled" href="http://docs.alfresco.com/5.2/tasks/library-item-view-googlemaps.html" title="http://docs.alfresco.com/5.2/tasks/library-item-view-googlemaps.html" rel="nofollow noopener noreferrer"&gt;View a file on Google Maps | Alfresco Documentation&lt;/A&gt; also not mention about the API Key to view a file on Google Maps.&lt;/P&gt;&lt;P&gt;Anyway thanks for your tricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[bayu]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 10:49:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19626#M8680</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-06-22T10:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps not load correctly</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19627#M8681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;Bayu Widyasanyata&lt;/B&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Me too. I had the same behaviour "the correct map was loaded for a milliseconds, and then switched to error page", so I changed that couple of files and it works (version 201704).&lt;/P&gt;&lt;P&gt;Anyway, I will appreciate any other solutions from the community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/14743_alfresco_geolocalizado.jpg" style="width: 620px; height: 312px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 11:16:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19627#M8681</guid>
      <dc:creator>calvo</dc:creator>
      <dc:date>2017-06-22T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps not load correctly</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19628#M8682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;calvo _&lt;/B&gt;‌,&lt;/P&gt;&lt;P&gt;Following some points after my little research on my platform:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Virtualbox, host: Win10, guest: Ubuntu 16.04.2; 2 network ethernets: 1 bridged adapter with DHCP 192.168.1.0/24; and 1 for host only adapter 192.168.56.101;&lt;/LI&gt;&lt;LI&gt;Alfresco accessing with localdomain (e.g. &lt;A href="http://alfresco.dev:8080/share/page)" rel="nofollow noopener noreferrer"&gt;http://alfresco.dev:8080/share/page)&lt;/A&gt; and this URI was put on my Windows' hosts file (as local DNS) &amp;gt;&amp;gt; e.g.: 192.168.56.101 mapped to alfresco.dev.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here are the results:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Both version 201704 &amp;amp; 201702, running on default ports (8080), accessing with localdomain (not IP address) are unable to load Google Maps; but accessing with IP is success.&lt;/LI&gt;&lt;LI&gt;My another Alfresco installation with NginX as reverse proxy (port 80 and 443) to Alfresco (8080 and 8443) is success to access geotagging file format.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I haven't known yet why IP address and NginX has the right-answer for the problem. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;[bayu]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 12:16:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19628#M8682</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-06-22T12:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Google Maps not load correctly</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19629#M8683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to update my latest research regarding this issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then add nginx onto one of my installation (201704) which I expect will solve the issue. The result is fail. URI accessed is &lt;STRONG&gt;alfresco.dev&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;But when I changed to same uri/hostname (&lt;STRONG&gt;alfrescoecm.dev&lt;/STRONG&gt;) with another alfresco which successfully loaded Google Maps, then the photo can be loaded normally. (point #2 on my answer above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it looks my hostname (&lt;STRONG&gt;alfrescoecm.dev&lt;/STRONG&gt;) is already "white-listed" by Google Maps to access without key ("anonymous").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my another machine hosted on Internet, this problem is not affected.&lt;/P&gt;&lt;P&gt;Hence, summarizing: problems found on localdomain hostname which hasn't been "registered"/"whitelisted" to Google Maps API key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has another experiences and solutions, pls share... Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 04:28:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/google-maps-not-load-correctly/m-p/19629#M8683</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-06-23T04:28:24Z</dc:date>
    </item>
  </channel>
</rss>

