In WP, Google map error initMap is not a function [closed]

maps.googleapis.com/maps/api/js?key=MY-API-KEYk&callback=initMap&ver=4.7.4:47:499

This api request requires an existing callback. Rename your function from mapInit to initMap and it will work (unless your function is invalid).