'Uncaught InvalidValueError' (: setCenter: not a LatLng or LatLngLiteral object)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm starting to know PHP and JavaScript, mixing them in HTML and using Google Maps API (version 3). I figured how to 'put' various markers but the console will throw me an error: " Uncaught InvalidValueError: setCenter: not a LatLng or LatLngLiteral object ". I think it's because the var created in the loop is not exactly the object needed but instead a string, though this confuses me, I don't know if I'm right. I'd appreciate it a lot if anyone could set me in the right path. Thanks in advance. This is my code: (By the way, the array I'm