开发者

Bing Maps v7. Direction manager: callback with parameters

For example, I have three addresses in my 'myAddress' collection:

№, IdAddress, Address

1, 255, New York street1

2, 256, New York street2

3, 257, New York street3

Then I put them in directionsManager and call calculateDirections():

var waypoint = new Microsoft.Maps.Directions.Waypoint({address: myAddress[i].address });
mapObj.directionsManager.addWaypoint(waypoint);
mapObj.directionsManager.calculateDirections();

Question: how to put IdAddress in waypoint? I need to pro开发者_StackOverflowcess response by IdAddress, not by Address description.


Just use

waypoint.YOUR_PROPERTY_NAME = YOUR_VARIABLE;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜