Google Map Event Closure Problem

Reference: