Created SmartMarker class to enhance the Marker class