Here's the vba code that I think feeds into the Javascript Function:
If GetSetting("Narrative1", "Narrative Software", "GMapAccountType") = True Then
If iComp <> 10 Then
sMarkers = sMarkers & "&markers=color:red|label:" & iComp & "|" & sLat & "," & sLng
Else
sMarkers = sMarkers & "&markers=icon:" & MARKER_IMAGE_PATH & "red10old.png" & "|" & sLat & "," & sLng
End If
Else
If (sOldLat <> sLat And sOldLng <> sLng) Then ' to check the marker already assigned
If iComp <> 10 Then
sMarkers = sMarkers & "addMarker(" & sLat & "," & sLng & ",'','" & MARKER_IMAGE_PATH & "red" & iComp & ".png');"
Else
sMarkers = sMarkers & "addMarker(" & sLat & "," & sLng & ",'','" & MARKER_IMAGE_PATH2 & "red10old.png');"
End If
End If
End If
