Solved

MapPoint pushpins from variables

Posted on 2010-09-13
1
654 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
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:…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now