Skip to main content
Inspiring
August 21, 2013
Question

CFmap, Google api key, and CF10

  • August 21, 2013
  • 3 replies
  • 933 views

We recently upgraded from CF9 to CF10.  The cfmap gave errors that the Google API wasn't correct.  When I looked into it, it appears that the Google API key expires after 1 day.

Do we still need the api key for cfmap to work in CF10?  Anybody have any ideas on this?

    This topic has been closed for replies.

    3 replies

    Participating Frequently
    August 21, 2013

    In theory you shouldn't need the API key.  It's not mandatory for Google Maps API v3, and now that CF 10 finally uses that version of the API, it shouldn't be mandatory in CF either. Just try deleting it in the CF Administrator and see how that goes.

    Failing that, just ditch <cfmap> and write it yourself in Javascript.  The Google Maps API is mostly very straightforward.

    Inspiring
    August 21, 2013

    I was thinking it was no longer needed, but I must be doing something wrong.

    I don't have anything setup in the CF Admin. I commented out the cfajaximport params, but it didn't work either.

    <!---<CFAjaxImport Params="#{GoogleMapKey='xxxxyyyyzzzz'}#">--->

    <CFMap

    centeraddress="North Carolina"

    ZoomLevel=30

    ShowCenterMarker="false"

    Width="950"

    height="450"

    Name="myMap"

    hideborder="false"

    showscale="true"

    ShowMarkerWindow="true"

    title="<cfoutput>#title#</cfoutput>"

    >

    vishu_13
    Inspiring
    August 21, 2013

    What is the update level of CF 10?

    Check this : http://helpx.adobe.com/coldfusion/kb/coldfusion-10-update-8.html