Using an image icon Using an image icon The following code example creates a marker icon using an image.