When running local you have to disable emulate cloud security. Goto Project settings tab Configurations and click on edit. Goto tab server and there you have the option to emulate cloud security.
Regards,
Ronald
[EDIT] Check also this post: https://forum.mendix.com/questions/893/Google%20maps%20and%20working%20locally