Integrate Building Wayfinder in .net desktop application
I want to integrate a map of a Mall/Buil开发者_如何学Goding having 7 floors in a desktop application.
After integration I have to highlight searched path (one shop to another shop) also.
If the question is "How to do it?, then:
Create a logic that will map the image maps to an actual squares array that represent areas on the map.
This will allow you to calculate path from one shop to another, in case both are on the same floor. In case shops are on a different floors, you map the path from the current location to a stairway or elevator and then, on a destination floor to a target shop.
The good algorithm for path finding is Dijkstra’s algorithm. You will find many implementations available, but it's always best to practice and implement one yourself.
精彩评论