About two months back, I was tinkering with the Salesforce1 warehouse tutorial ( Salesforce1 Mobile Workbook. It's the one where you show the location of your warehouses (Salesforce data) on a Google map. This was working for me, but now shows a blank page. To the best of my knowledge, I haven't changed anything in the code. In fact, the error is coming from inside a static resource. FWIW, my sandbox is on cs13.

The error I get now is:

https://maps.gstatic.com/intl/en_us/mapfiles/api-3/14/1/main.js - 404 Not Found

I think the solution is hinted at in the FindNearby Visualforce page here:

<!-- Include in Google's Maps API via JavaScript static resource -->
<apex:includeScript value="{!$Resource.googleMapsAPI}" /> 

<!-- Set this API key to fix JavaScript errors in production -->
<!--<script type="text/javascript" 

Can someone confirm that getting a Google Map Api key will fix this problem for me?


Correct, you will need to get a google maps API key to use this. You can get one here: https://developers.google.com/maps/signup - then paste that key in to that section of the script tag

  • I got the key yesterday and can see my map again. Sorry it took me so long to get to that.
    – Jagular
    Nov 19 '14 at 16:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.