For adding the in-built shape markers, you first need to add VectorPlacemark on the surface of the map. On adding the VectorpPlacemark, you can easily customize the marker. The following code can be used to add a marker on a map and set the shape and size of the marker:
The map with a shape marker will look similar to the image given below.