I set a custom default icon using 'setMarkerIcon', which works fine. However, I would like to use two different icons, depending on certain conditions...
I am pulling data from a MySQL database, and assigning an icon when calling 'addMarkerByCoords'. But only the 'default' icon that I set is used.
How can I use different icons when calling 'addMarkerByCoords'?
I set a custom default icon using 'setMarkerIcon', which works fine. However, I would like to use two different icons, depending on certain conditions...
I am pulling data from a MySQL database, and assigning an icon when calling 'addMarkerByCoords'. But only the 'default' icon that I set is used.
How can I use different icons when calling 'addMarkerByCoords'?