streetlogics / php-google-map-api

Automatically exported from code.google.com/p/php-google-map-api
19 stars 27 forks source link

Marker Icons ~ multiple #104

Closed scgrant327 closed 7 years ago

scgrant327 commented 7 years ago

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'?

scgrant327 commented 7 years ago

Fixed it... Was a problem with NOT providing enough parameters to the 'addMarkerByCoords' function.