微信地图配置

<script type="text/javascript">
    document.querySelector('#openLocation').onclick = function() {
        wx.openLocation({
            latitude: 40.3776000000,
            longitude: 116.6561400000,
            name: '北京兴基铂尔曼饭店',
            address: '北京兴基铂尔曼饭店',
            scale: 14,
            infoUrl: 'http://weixin.qq.com'
        });
    };
</script>

 

posted @ 2019-04-29 15:30  夏小夏吖  阅读(171)  评论(0编辑  收藏  举报