Skip to main content
Participant
May 30, 2014
Question

CFMAP Marker size

  • May 30, 2014
  • 1 reply
  • 244 views

Is there any way of defining the size of markers in CFMap?? It is really frustrating me!!

Many thanks

Jan

This topic has been closed for replies.

1 reply

Participating Frequently
June 3, 2014

What are you expecting?  CFMap is just an interface to the Google Map API.  The markers there don't have any size property, see https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions

Your best bet is you can specify different images to use, using the 'icon' attribute.  If you're using CFMap you can use the markericon attribute of the cfmapitem tag. See https://wikidocs.adobe.com/wiki/display/coldfusionen/cfmapitem

However I'd strongly recommend ditching cfmap completely and doing it all yourself directly via javascript and the Google Maps API directly.  For instance check this simple example here: https://developers.google.com/maps/documentation/javascript/markers#simple_icons