MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




I have read you can zoom the map to any lat/long f....

This is a discussion on I have read you can zoom the map to any lat/long f.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have read you can zoom the map to any lat/long from code once done can you display an icon ...


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 08-19-2001
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I have read you can zoom the map to any lat/long from code once done can you display an icon at that specific point ?

What is the likely overhead of doing this many times in a small area leaving thse icons on the map

david
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 08-19-2001
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
To do this, simply add a pushpin. The following code does the trick:

(MapPoint must be started)



<pre>
' Attach to running instance of MapPoint
Set oMpApp = GetObject(, "MapPoint.Application")

' Retrieve the active map
Dim oMap As MapPoint.Map
Set oMap = oMpApp.ActiveMap

' Set a pushpin at 49 North, 10 East
Dim oPin As MapPoint.Pushpin
Set oPin = oMap.AddPushpin(oMap.GetLocation(49, 10))

' Set the symbol property of the pushpin
oPin.Symbol = 42
</pre>

Check out the documentation of the Symbol property of the Pushpin object for available symbols. MapPoint 2002 supports adding your own icons, their symbol codes start at 256.



The overhead / efficiency largely depends on type of CPU and amount of memory available.



-gk


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
lat or long, map, read, zoom


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
how to read .shp files shaileshganatra MapPoint 2006/2009 Discussion 1 09-10-2008 08:46 PM
Zoom In and Zoom Out event detection victorf MapPoint 2006/2009 Discussion 2 10-22-2003 01:56 AM
set note read-only Anonymous MapPoint 2006/2009 Discussion 0 08-05-2003 10:50 AM
I have just read B.J. Holtgrewe's v.interesting a.... Anonymous MapPoint 2006/2009 Discussion 1 09-06-2001 06:15 AM
Is There any way to Zoom Specific Lat/Long and be.... Anonymous MapPoint 2006/2009 Discussion 1 08-08-2001 09:49 AM


All times are GMT -5. The time now is 06:51 AM.


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