clear method like googlemap