1
나는 Mapbox API를 함께 일하고 난 유성 따기되지 않습니다 jQuery를 가지고 :Jquery는 유성에서 어떻게 변환됩니까?
$.get(directionsUrl, function(data) {
// Do something with the directions returned from the API.
var route = data.routes[0].geometry.coordinates;
route = route.map(function(point) {
// Turns out if we zoom out we see that the lat/lngs are flipped,
// which is why it didn't look like they were being added to the
// map. We can invert them here before drawing.
return [point[1], point[0]];
});
polyline.setLatLngs(route);
})
어떻게 것 유성이 작업 같은?