开发者

Bing Maps v7. Direction manager: callback with parameters

开发者 https://www.devze.com 2023-03-24 23:31 出处:网络
For example, I have three addresses in my \'myAddress\' collection: №, IdAddress,Address 1, 255,New York street1

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

精彩评论

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