fix Map hasLayer