I am using a custom icon for a Google map marker. Problem is that ie<9 does not support my custom marker so I would like to conditionally add "icon:$icon" into my script.
Essentially I would like to:
var marker1 = new google.maps.Marker({
// is IE version less than 9 add this
icon: $icon,
// else do nothing
position: new google.maps.LatLng(-45.03145, 168.660030),
map: map,
title: "Some Title"
Cheers,
N