Creating multiple locations, show traffic status and cycling roads on Google Maps
If you change your location that you're looking for, change the name index in request array and type for marker icon "results[i].icon". After that the icon will be change and related your location.
Some useful links and references: Google Maps API Google Maps Layer