View Full Version : Non-Programmer Needs Push Pin Programming Help
10-13-2006, 08:32 PM
I have a basic understanding of VB6 but it appears as though I might be in over my head. Here is what I need to do. I have 500 locations in an Access database. Each location has a longitude and latitude. I want to use VB6 to put each location on the MapPoint map, each with a unique push pin symbol. Can someone point me in the direction of some sample code.
Thanks for your help.
10-14-2006, 03:47 AM
You have to add some symbols yourself as Mappoint does not have 500 different symbols. Therefore you can make bitmap images. First you make Location object with the latitude and longitude, then you create pushpin with that location. Then add existing or new symbol as in this example:
Location loc = MP.ActiveMap.GetLocation(Lat, Lon, 1);
PushPin pp = MP.ActiveMap.AddPushPing(loc);
pp.Symbol = MP.ActiveMap.Symbols.Add(FileName);
This is in C#, but VB is very similar. Eventually check the help in mappoint which contains all examples in VB.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO