Traditional Culture Encyclopedia - Hotel franchise - js new bmap.drivingroute Why doesn’t the route show up?
js new bmap.drivingroute Why doesn’t the route show up?
var transit = new BMap.DrivingRoute(map, {
renderOptions: {
map: map,
panel: "allmap -result"
},
onSearchComplete: function (res) {
if (transit.getStatus() == BMAP_STATUS_SUCCESS) {
< p>var arrPois = res.getPlan(0).getRoute(0).getPath();map.addOverlay(new BMap.Polyline(arrPois, {strokeColor: '#111'}));
map.setViewport(arrPois);
} else {
alert("Unable to search for relevant information");
}
}
});
transit.search("Juhua Group","Jinfeng International Trade Hotel");
- Related articles
- Classic dialogue of Degang Guo crosstalk
- When will the manager of the 7-day hotel chain be trained?
- Cuizhuyuan Hotel front desk opening hours
- How long does it take from Chen Mao Hemudu Hotel in Yuyao to Xiaojiuzhai Scenic Area in East Zhejiang?
- What's the difference between express hotels?
- Where is Heze?
- What five-star and quasi-five-star hotels are there in Xiamen?
- How much does it cost for 2 people to go to the Maldives?
- Twenty classic southern Fujian old songs
- Girlfriend/kloc-can I get a room in a hotel at the age of 0/6? Post it.