Solved

MapPoint pushpins from variables

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

896 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

13 Experts available now in Live!

Get 1:1 Help Now