"initMap is not a function" error

"InvalidValueError" is not a typical Plone exception. Have you checked your "error_log" object (an object in your Plone site, accessed via the ZMI); it contains detailed information for most exceptions raised during request handling - among others where the exception was raised. In order to analyse exceptions causes, information found in "error_log" is important.