MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Creating a map with multiple pushpins

This is a discussion on Creating a map with multiple pushpins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello everyone, I am new to MapPoint.NET and am having a problem. I am trying to display a map with ...


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

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



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-25-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Creating a map with multiple pushpins

Hello everyone,

I am new to MapPoint.NET and am having a problem. I am trying to display a map with a static location, e.g. "You Are Here", with pushpins to one or more locations within a radius of the static location found using a call to the FindNearby function. I have only been able to create a map with one pushpin for one location, so far. Thanks, in advance, for any and all assistance anyone can give me.

Sincerely,
Mike
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-26-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hello,

You can pass up to 100 pushpins in the pushpins property(array) of the mapspecification. Here's the example from the SDK:

'Route between two locations
Dim latLongs(1) As LatLong
latLongs(0) = New LatLong()
latLongs(1) = New LatLong()
latLongs(0).Latitude = 40
latLongs(0).Longitude = -120
latLongs(1).Latitude = 41
latLongs(1).Longitude = -121

Dim myRoute As Route
myRoute = routeService.CalculateSimpleRoute(latLongs, "MapPoint.NA", SegmentPreference.Quickest)

'Get a map of the route and add pushpins to the start and end
Dim myRouteViews(0) As ViewByHeightWidth
myRouteViews(0) = myRoute.Itinerary.View.ByHeightWidth

Dim myPushpins(1) As Pushpin
myPushpins(0) = New Pushpin()
myPushpins(0).IconDataSource = "MapPoint.Icons"
myPushpins(0).IconName = "31"
myPushpins(0).Label = "Start"
myPushpins(0).LatLong = myRoute.Itinerary.Segments(0).Waypoint.Location.La tLong
myPushpins(1) = New Pushpin()
myPushpins(1).IconDataSource = "MapPoint.Icons"
myPushpins(1).IconName = "29"
myPushpins(1).Label = "End"
myPushpins(1).LatLong = myRoute.Itinerary.Segments(1).Waypoint.Location.La tLong

Dim mapSpec As New MapSpecification()
mapSpec.DataSourceName = "MapPoint.NA"
mapSpec.Route = myRoute
mapSpec.Pushpins = myPushpins
mapSpec.Views = myRouteViews

Dim myMaps() As MapImage
myMaps = renderService.GetMap(mapSpec)



Steven Pushee

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.
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
creating, map, multiple, pushpins


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/creating-map-multiple-pushpins-3186.html

Posted By For Type Date
Maps with multiple locations - ng.asp-net-forum.dotnetnuke - error problem solve @CodeVerge This thread Refback 12-31-2008 04:53 AM

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
creating radii based on highest concentration of pushpins tvsmvp MapPoint 2006/2009 Discussion 1 01-31-2006 05:10 AM
Creating a subset of Pushpins from a set of pushpins paf33 MapPoint 2006/2009 Discussion 3 08-09-2005 04:54 AM
Multiple Pushpins for One Address, Possible? Jeff Nelson MapPoint 2006/2009 Discussion 6 05-31-2005 03:20 PM
creating multiple points (pushpins) on a map... mjschukas MapPoint 2006/2009 Discussion 0 05-10-2005 09:58 AM
Multiple Pushpins LThomas999 MapPoint 2006/2009 Discussion 1 04-01-2003 05:14 AM


All times are GMT -5. The time now is 08:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.



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 55 56 57 58 59