According to this page the icon property of a Marker should take either a string, icon object, or a Symbol.
I’ve been able to make the string work but only for PNG images and I haven’t figured out how to scale them. It doesn’t look like Icon object is exposed through Anvil’s implementation.
I don’t understand at all how to use Symbol at all.
Short of manually sizing images ahead of time, how can I control the appearance of the marker icons better?
You’re right that the marker’s icon property can be either a string, GoogleMap.Icon or GoogleMap.Symbol object. If you provide a string as the icon property of a GoogleMap.Marker object, it is treated as a GoogleMap.Icon object with the string as the url property. If you want to scale the image, you’ll need to create a GoogleMap.Icon object, and set the scaled_size or size property, for example:
@bridget, Thank you. This works great for scaling png images which is a big step forward. Does this mean it isn’t possible or practical to use an existing svg icon?