Solved

MapPoint pushpins from variables

Posted on 2010-09-13
1
661 Views
Last Modified: 2013-11-26
I've done a lot of searching and couldn't find anything that I could get to work.  Basically, I have 4 variables (Name, Account ID, Latitude,  Longitude), and I just want to add a pushpin to a MapPoint map inside VB.Net, using the Lat and Long coordinates.  The name and Account ID can also be shown in the balloon for the pin.

Thanks.
0
Comment
Question by:LD147
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
LD147 earned 0 total points
ID: 33666607
I came up with a solution that works, so this can be closed.


Dim oLoc As MapPoint.Location
        Dim omap As Map
        omap = AxMappointControl1.ActiveMap
        omap.Application.Units = geoMiles

        oLoc = omap.GetLocation(29.125, -82.182, 1)
        oLoc.GoTo()
        omap.AddPushpin(oLoc)

Open in new window

0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET MVC -Update model when click on <li> element 29 69
Data organization issue 7 38
locate sql commands in C# visual studio Project 6 44
Nested forach loop to linq 3 30
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question