Google Maps API v3: Gray Box, no map

后端 未结 14 786
离开以前
离开以前 2020-12-06 09:20

As part of a much bigger project, we\'re trying to get a Map on a site using Google\'s Map API v3. I have followed the simplest steps that Google has laid out, I\'ve tried c

14条回答
  •  爱一瞬间的悲伤
    2020-12-06 09:37

    This may not be the case for everyone, but maybe it can help someone.

    I was creating markers in my map from data attributes placed on the map element like this: data-1-lat="2" data-1-lon="3" data-text="foo". I was putting them in an array based on the order they were placed in the data attributes.

    The problem is that IE and Edge (for some mad reason) invert the order of the data attributes in the HTML tag, therefore I wasn't able to correctly extract them from the data attributes.

提交回复
热议问题