Embedded Google Maps API
Version 3.04.00 introduces support for Google's Maps Embed API embedded map.
Traditionally, embedding an interactive Google map onto a website was done without the need for any authentication or API keys. You would create an iFrame with the source looking something like the below URL, and you would get a fully interactive Google Map placed on your website.
finPOWER Connect uses this to display the Client map in the Client Key Details Summary Page.
Google now prefers the new embedded map approach, which requires an API Key. They are pushing this method so much so that they have removed any reference to the old method in their documentation. More information about the new API can be found in the Google documentation here:
We have found that there have been several instances recently where applications using the old method of embedding presented an error in place of the map for up to 24 hours at a time. During these outages, applications which use the API Key embedded map were still displaying their maps as expected.
This suggests that support from Google for the older method is less reliable than the new. It is possible that this method will be removed entirely in the future, and for that reason version 3.04 of finPOWER Connect supports the API Key method of displaying a map.
For some time now, the ability to configure Browser & Server Google API Keys has been available in Global Settings, Clients, Addressing within finPOWER Connect. These settings were largely unused by the core system, and were predominantly only available for custom Scripting or Portals. An API Key entered here will now be used if configured to use the Maps Embed API.
New fields have been added which allow configuration of the API Key embedded map method (outlined in the screenshot below). Once configured, you can switch your database to the new method simply by checking the Use API Embedded Maps? checkbox. If there are any errors as a result of invalid configuration, they will be displayed in place of the map within the Summary Page.
Google has its own help to guide Users through the process of obtaining or updating an existing API Key to work with the Maps Embed API.
This link is also available in Global Settings.
At the time of writing this Blog, an API Key for use with this API is free. The Google Documentation mentions the requirement to create a Billing Account; however, in our testing we have found that a Billing Account does not need to be created and linked to the project so long as the Maps Embed API is the only API subscribed to.
Once you have been issued your Maps Embed API enabled API Key, this should be configured in Global Settings, Clients, Addressing, Browser Key or Server Key.
As mentioned at the beginning of this Blog, we have noticed the number of outages of the old method increasing; switching to the new API provides a more reliable map. It may be the case that the old method will be shut down by Google entirely at some stage, leaving those unprepared scrabbling to update their databases.
Modifying the default URL when using the Maps Embed API allows for the map to be customised to better suit your needs.
The above link provides examples on how the URL can be modified to display differently. For example:
The default map display for the API is "Map". To switch this to be "Satellite" to use as default, the below can be appended to the URL in Global Settings:
The full URL in Global Settings would look like this:
The zoom of the map can be adjusted by appending &zoom=X, where X is a number from 0 (the whole world) to 21 (individual buildings). The full URL in Global Settings would look something like this:
It is possible to combine additional parameters. For example, to set the display as Satellite and also set the map zoom to 20, then the URL in Global Settings would appear like so: