|
发表于 2017-7-17 17:09:55
|
显示全部楼层
你的意思是案例
/UI2/system/components/justep/bmap/demo/mainActivity.w
- Model.prototype.button8Click = function(event){
- bmap.direction({
- origin:"latlng:34.264642646862,108.95108518068|name:我家",
- destination:"大雁塔",
- mode:"driving",
- region:"西安",
- src:"bmapDemoApp"
- });
- };
复制代码
线路规划(导航)
的功能是吗??
这里面的变量,可以自己修改啊!
你可以看它的源码或文档
/UI2/system/components/justep/bmap/bmap.js
/UI2/system/components/justep/bmap/bmap.js.xdoc
input输入框,输入位置后
给参数 origin 赋值就行! 然后还是调用这个方法!
|
|