I wrote a Custom Tag replacement for the CFMap tag It uses the same parameters and additionally supports GoogleMapEmbed, MapBox, HERE, OpenStreetMap & MapTiler/MapTilerGL. I wrote this after GoogleMaps switched to a pay model and it started to cost us too much money to use. Other features include:
- no maps for bots
Service = "Google"
centerlatitude = "#LLatitude#"
centerlongitude = "#LLongitude#"
markericon = "//#CGI.Server_Name#/webart/marker.png"
MarkerWidth = 38
MarkerHeight = 52
width = "100%"
height = "100%"
styles = "myMapStyle"
zoomlevel = "15">
The CFTag is currently tied to our internal ACF2016 framework, but I am in the process of decoupling it and testing it for Lucee & CF2021 compatibility. (I’m traveling next week, so I don’t think I can have it available before Google Map v2 API is deprecated.
You can see some examples of how it is used on these public web pages: