Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Creating a map with multiple pushpins 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 |
| |||
|
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. |
![]() |
| Tags |
| creating, map, multiple, pushpins |
| ||||
| 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 | |
| |
| ||||
| 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 |
Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.