HTML代码
<view style='width:100%;height:100%'>
<map markers="{{markers}}" longitude="{{longitude}}" latitude="{{latitude}}" scale="15" style='width:100%;height:100%' show-location='true' show-compass='true' bindmarkertap='{{markers}}' ></map>
心得体会:
今天我们了解了微信小程序的开发组件,API端口如何使用,然后定位目前所在的位置,以地图的形式表现出来。今天我进一步的了解了小程序的功能,以及实现的方法,经过看老师的录屏,我也基本掌握了相关知识。