added functionality for markers for svg and also added very preliminary code for canvas