don't create an overlayComplete function as part of the maps

It's only needed in the overlaycomplete event so create an anonymous
one when calling the function.