Constructor
new GSSIcon(iconUrl, iconSize, iconAnchor)
Parameters:
Name | Type | Description |
---|---|---|
iconUrl |
String | Path to the icon. |
iconSize |
Array | Height and width of icon to be displayed. |
iconAnchor |
Array | The tip of the icon to be aligned with latitude and longitude on the map. |
Example
var gssIcon = new gssmaps.GSSIcon("assets/bus-marker.png", [32, 32], [16, 32]);