Community of VE/MapPoint 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 ...
| |||||||
| 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. |
![]() |
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 |
Late Deal Ski Holidays
Book late deal ski holidays for great value at Holiday Hypermarket. Our ski holidays search makes it easy to find a late deal to suit you.
Flights to Italy
Find cheap flights to Italy on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Italy.
Holidays in Italy
Holidays in Italy boast some stunning countryside as well as a beautiful coastline. You can even visit an active volcano like Stromboli or Etna. Book at dealchecker.co.uk.
St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!
Morocco
Gain insight on your holiday destination with the ULookUBook travel guides. Find out about Morocco and its customs online. Make an informed decision when you make a booking.
Holiday
For the holiday of your life, that is easy to plan, visit Travel.co.uk to see all the options.
Cheap Holidays to Florida
Cash strapped? Get info on cheap holidays to Florida at On The Beach.