小程序map的自定義圖標不顯示問題

數據代碼以下git

markers: [{
      id: 1,
      latitude: 23.099994,
      longitude: 113.327520,
      name: 'T.I.T 創意園',
      label: {
        content: "老人頭",
        bgColor: "#ffffff",
        color: "#ff0000",
        padding: 10,
        display: "ALWAYS",
        borderRadius: 5,
        anchorX: -7,
        anchorY: -50,
        textAlign:'center'
      },
      iconPath: '/image/address.png',
    }, {
        id: 2,
        latitude: 23.099997,
        longitude: 113.324580,
        name: 'T.I.T 創意園', 
        iconPath: '/image/location.png',
      }
    ],

搞了很久發現longitude 寫成了 longtitude, 坑慘了。
效果以下
code

相關文章
相關標籤/搜索