MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Non-Programmer Needs Push Pin Programming Help

This is a discussion on Non-Programmer Needs Push Pin Programming Help within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a basic understanding of VB6 but it appears as though I might be in over my head. Here ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-13-2006
Junior Member
White Belt
 
Join Date: Oct 2006
Posts: 1
Non-Programmer Needs Push Pin Programming Help

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.

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-14-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi Gary,

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:

Code:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
nonprogrammer, pin, programming, push


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Ambiguous messages ( programming or not programming? ) Mohamed MapPoint 2006/2009 Discussion 1 06-13-2006 04:35 PM
Map Point & .Net Programmer sar70 MapPoint 2006/2009 Discussion 1 04-27-2006 08:29 AM
Programming MapPoint via .NET Anonymous MP2K Magazine Articles 1 02-21-2006 10:42 AM
How to programming using VC6.0 confach MapPoint 2006/2009 Discussion 4 03-01-2004 06:25 AM
Programming in VB.Net Anonymous MapPoint 2006/2009 Discussion 3 12-01-2003 10:52 AM


All times are GMT -5. The time now is 07:26 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54