P-B-


Hi,


Is it possible to hide or remove the endLocation flag that appears at the destination for driving directions

I have a custom icon that appears at the destination but is being drawn over by this flag.

I am aware that there is a DeletePushpin(ID) method but I am unable to determine the ID of the flag I want to remove. Is there a consistent ID this flag is always created with or is there some way to determine the ID of the flag




Re: remove endLocation flag for driving directions

Derek Chan


No the ID for the last flag is not consistant. The only way I can think about doing what you want is to call deleteallpins(), then re-adding them in (provided you stored them from the route itinerary). Finally stick the start flag pin on the start driving location to finish.





Re: remove endLocation flag for driving directions

Yuki Chen

then what about the first flag ID . is there a certern pattern for the ID . so we can work arround to find out the IDs




Re: remove endLocation flag for driving directions

Derek Chan

Like I said, there is no pattern for the ID's