Integrating Google Maps in Dashboard

Scalefusion uses OpenStreetMap by default for all map related options like displaying device location history or helping admins create GeoFences. We also offer a mechanism for you to switch to using Google Maps for all map related features if you wish so.

Switching to Google Maps would require a Google Maps API Key which would require valid Gmail account and setup of Google Cloud Billing platform.

In this document we would see how to setup the Google Cloud Billing and then create a Maps API key that can be used in Scalefusion.

Switching to Google Maps API key requires you to setup Google Cloud Billing and you may incur costs depending upon the Location usage. Please read this to learn how billing works.
If your organization is already using Google Maps API Key you can choose to use the same key instead of generating a new one.

Step 1: Generating an Maps API Key

  1. Navigate to Google Cloud Maps Console and Sign In with your Developer (Gmail/GSuite) account.
  2. Create a new Maps Project or select one from existing list. In this example we are creating a new project, click on CREATE PROJECT and create a new project.
  3. Once the project is created, the first step is to setup the billing. To do so click on the menu icon and select Billing
  4. Click on Link Billing Account to link a billing account
  5. In the subsequent screens, Select your Country, enter your Customer Info and Billing/Credit card Information and click Submit and enable billing.
  6. Once billing is setup navigate back to the project you created and click on Dashboard. Click on Enable APIS AND SERVICES to enable the required APIs
    1. Maps JavaScript API: Search for Maps Javascript API and enable the API by clicking on Enable
    2. GeoCoding API: Search for Geocoding API and enable the API
  7. Once you have enabled the API key, navigate to the Credentials section, click CREATE CREDENTIALS and select API Key
  8. Once the API Key is generated click on Copy icon to copy the Key to clipboard.
    You can Restrict the Key usage by clicking on Restrict Key and restricting the usage to only the two APIs and restrict it to * domain.
  9. Now navigate to Scalefusion Dashboard to complete the remaining steps.

Step 2: Updating the Key in Scalefusion Dashboard

  1. Once you have the API Key, Sign in to Scalefusion Dashboard and navigate to Location & Geofencing > Location Settings.
  2. Scroll down to the Google Maps API Key, click on Edit icon section and paste the API Key that you copied from Google Cloud Console and click SAVE SETTINGS
  3. If the API Key has all the necessary permissions associated in Google Cloud Console (API + Billing) then the key will be saved and the Dashboard will reload to start using Google Maps for all location related features.

Frequently Asked Questions

Question: We have started using Google Maps, but we would like to revert to the default provided by Scalefusion that is OpenStreetMap. How do we do it?

Answer: To revert to the default Map tool provided by Scalefusion, just clear the API Key and Save Settings. The Dashboard will stop using your API Key and revert to OpenStreetMap.

How did we do?

Powered by HelpDocs (opens in a new tab)