gmaps marker logic