Add API key to shortcode
-
Using the shortcode to load a map with kml overlay results in the following message:
Oops! Something went wrong.
This page didn’t load Google Maps correctly. See the JavaScript console for technical details.The JavaScript console reveals the following error:
Google Maps API error: MissingKeyMapError
The shortcode looks like this:
[flexiblemap src="https://www.taiwantrail.org/files/taiwantrail-landmarks.kml" width="100%" kmlcache="5 minutes"]
I have a Google Maps API Key.
Can this be added as a parameter to the shortcode, does it need to be included as a separate script, or is it not compatible with the Flexible Map plugin?
I have tried both of those possible solutions to no avail.
I see that the plugin description page says “no special Google Maps key is required — uses the latest stable Google Maps API,” but as far as I know, Google now requires API keys for using kml overlays.
- The topic ‘Add API key to shortcode’ is closed to new replies.