Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): duncan cumming / duncan cumming (duncancumming)
Created: 07/02/2013
Components: Core Runtime
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win All
Vote Count: 1
Problem Description:
To use <cfmap> you must specify an API key, via the CF Administrator, in application.cfc, or with cfajaximport . However, it's not mandatory for Google Maps API v3 to use an API key. It was mandatory for API v2, and this seems like a hangover from that on the part of ColdFusion.
Ideally the API key would be an optional attribute on the cfmap tag itself. If the attribute is specified, use it. Else, if there was a key specified for the entire application using one of the above three methods, then use that. Otherwise, (i.e. no key specified at either application or tag level), then call the Google Maps JS without any API key.
Steps to Reproduce:
Execute this code without doing any of the above three options for specifying an API key:
<cfmap centerlatitude=51.507761 centerlongitude=-0.127954>
Actual Result:
Error thrown: Google Map License key is not defined.
Expected Result:
Map to be displayed without any error
Any Workarounds:
Not to use <cfmap> at all, and simply write your own javascript to implement Google Maps API.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3588783
External Customer Info:
External Company:
External Customer Name: duncancumming
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: