This example displays a movable map of Chicago with two individually colored SVG markers highlighting the location of Soldier Field (41.8625°N, 87.6166°W) and Wrigley Field (41.9483°N, 87.6555°W). These locations are the home of the Chicago Bears and Chicago Cubs respectively, and each marker displays the letter C in the correct club colors.

Code

SVG Graphics images are created using the H.map.Icon class. The icon is added as a parameter when creating an H.map.Marker.