- 地图上覆盖的线路曲线实现方法
请问,如下图所示,这个小程序地图上的交通线路曲线是怎么画出来的?不是貌似现在只能画直线吗? 不吝赐教,谢谢! [图片]
2017-07-27 - 有关地图设置scale和中心坐标
当我在代码里一起设置一个点作为地图中心坐标,并且同时设置scale是,会有中心点偏移的问题,就是我要放到地图中心的那个点偏了,甚至到了屏幕之外 this.setData({ centerLongitude: marker.longitude, centerLatitude: marker.latitude, markers: markers, mapScale: this.data.mapScale, layerShow: 'block' }); 这样有问题 this.setData({ centerLongitude: marker.longitude, centerLatitude: marker.latitude, markers: markers, layerShow: 'block' }); 去掉设置scale的就没问题 问题好多啊!!!!!
2017-07-25 - 有关地图region change事件
请问如何判断使用户触摸屏幕并移动引发的region change事件,还是由于数据更新和重设地图中心引发的region change事件?
2017-07-21 - 有关虚拟机和真机环境下的region change事件
在虚拟机环境下,点击marker不会触发region change 事件,在真机环境下却会,这导致了我虚拟环境下没有问题的代码,却在真机环境下出现了问题,而且跟踪了很久才发现问题所在,这样明显的环境区别能不能不要发生?
2017-07-21 - 有关cover-view
地图上无法显示cover-view内容,模拟器上没问题。 前几天,似乎在真机上也是可以的,但是今天一测试就发现不行了。 代码如下: <map id="myMap" scale="{{mapScale}}" controls="{{controls}}" bindcontroltap="controlClick" markers="{{markers}}" bindmarkertap="markerClick" bindregionchange="regionChange" bindtap="mapClick" show-location style="width: {{mapWidth}}px; height: {{mapHeight}}px;" latitude="{{centerLatitude}}" longitude="{{centerLongitude}}"> <cover-view> <cover-view>测试文字</cover-view> </cover-view> </map> 我的真机是android,sdkversion是1.4.1
2017-07-18