Lucee and Google Map API Keys

In Coldfusion, there was a location in the administrator to enter the API key for Google maps. Is this available in Lucee?

No, Lucee does not support cfmap. This is a typical tag that is discouraged to use in the cfml community, because there are better alternatives wirh way more control.

You can find a solution about how to generate such a google map with puree JavaScript at Raymonds cfuitherightway.

Please also consider that loading google maps is not GDPR compliant without asking for the users consent.

As an altenative I’d recommend OpenStreetMap using Leaflet.js. It doesn’t require an API key, nor set any cookies.

1 Like