Adding multiple map canvases to window - Google Maps Javascript API v3

前端 未结 2 1369
无人及你
无人及你 2020-12-07 06:48

I want to show multiple google map canvases in one window but it isnt working. The maps created in the for loop all just appear grey with nothing on them and I cant figure o

2条回答
  •  爱一瞬间的悲伤
    2020-12-07 07:16

    center attribute is required for creating maps using Google maps Javascript API, add center to your mapOptions and it will works fine.

提交回复
热议问题