Need help drawing a map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haz33
    New Member
    • Jan 2007
    • 1

    Need help drawing a map

    Hi,

    I'm hoping someone can help me with this problem. I've got a bunch of nodes and segments stored in an Oracle database. Approximately 35,000 of each. I want to be able to plot these nodes and segments onto a form in VB 2005 thereby making a map of our area.

    Here's the catch. I want the nodes to have events such that, for instance, if I click on a node, it fires off a procedure. So I don't know if I'll be able to use graphics for these nodes -- I might need to use controls instead.

    My question is what is the best way to go about doing this? I need to do it so that the map loads in only a few seconds. Is this even possible? Thanks for any help!
  • nguyen1105
    New Member
    • Jan 2007
    • 5

    #2
    Hello,

    Like you already stated, there is 2 ways to do so: using UI controls (for example button) and using graphics (for example rectangle)

    Using controls: You will draw your 35,000 controls in one or several forms in your code VB.NET after retrieving them from Oracle database and then you create the appropriate event handler to the newly created control.

    Using graphics: You will draw your 35,000 graphics in one or several forms in your code VB.NET after retrieving them from Oracle database and then you have to write an KeyDown event handler to catch the mouse click on your graphics in order to perform something you want to do. The trickiest part of this solution is to calculate the coordinates of the mouse click in order to fire the appropriate job on the clicked graphic.

    Personally, the solution using controls seems to be quick and easy to do.

    Good luck,
    nguyen1105

    Comment

    Working...