The
Map.setMarkerImage sets the icon for the marker with id
markerId on
Map map_name.
markerId is the id that was returned by
Map.addMarker when the marker was added to the map.
imagePathOrUrl is the path to a file, or a URL, containing the image to display as the marker icon. Standard image files (PNG, JPEG, WebP, BMP) are supported. If using a URL, you can use a
localhost URL or a URL to a remote server.
The function returns a logical value of 1 (true) if the marker was found and the image was set successfully and 0 (false) if there is an error.