pushpin

Can I adjust my Bing Map's View/LocationRect/Bounding Box by a small amount?

我与影子孤独终老i 提交于 2019-12-05 19:20:29
I am using this code: photraxMap.SetView(new LocationRect(App.photosetLocationCollection)); ...to zoom a map to show the List of Locations contained in photosetLocationCollection. photraxMap is a BingMap. SetView() is a Bing Maps method, not my own custom method. The problem is that it works too well - it shows all the markers/pushpins, but just barely - the extreme locations are "clipped" as you can see here: In the screamshot, you can see that the pushpin north of San Andreas as well as the one at Columbia, at the southeast edge of the map, are partially obscured (the one at Pardee is also

Change image for pushpin WPF [closed]

断了今生、忘了曾经 提交于 2019-12-02 06:26:17
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have 2 pushpins, pin1 and pin2. How do I change the default black image to my own image? Please help. Thanks 回答1: You could use a Image and add it to a MapLayer if you don't necesserily need all pushpin

Change image for pushpin WPF [closed]

我怕爱的太早我们不能终老 提交于 2019-12-02 00:59:14
I have 2 pushpins, pin1 and pin2. How do I change the default black image to my own image? Please help. Thanks You could use a Image and add it to a MapLayer if you don't necesserily need all pushpin functionality. Example: MapLayer mapLayer = new MapLayer(); Image myPushPin = new Image(); myPushPin.Source = new BitmapImage(new Uri("YOUR IMAGE URL",UriKind.Relative)); myPushPin.Width = 32; myPushPin.Height = 32; mapLayer.AddChild(myPushPin, <LOCATION_OF_PIN>, PositionOrigin.Center); bingMap.Children.Add(mapLayer); If you do need have certain Pushpin functionality, another option is to use the

MapView adding pushpins on touch

北城余情 提交于 2019-11-30 18:18:31
I managed to get the map shown on the screen. Now the user will move around the map and press on it. After pressing on a point I need to add a push pin on screen on the pressed location. If the user decides to go for another point, when pressing on the chosen point, the first pushpin would disapear and a new one will be drawn on the new location I did like this: public class LocationSelectionActivity extends MapActivity { GeoPoint p; List<Overlay> listOfOverlays; MapOverlay mapOverlay; private MapView mapView; /** Called when the activity is first created. */ @Override public void onCreate

MapView adding pushpins on touch

人盡茶涼 提交于 2019-11-30 01:53:24
问题 I managed to get the map shown on the screen. Now the user will move around the map and press on it. After pressing on a point I need to add a push pin on screen on the pressed location. If the user decides to go for another point, when pressing on the chosen point, the first pushpin would disapear and a new one will be drawn on the new location I did like this: public class LocationSelectionActivity extends MapActivity { GeoPoint p; List<Overlay> listOfOverlays; MapOverlay mapOverlay;

MVVM Windows Phone 8 - adding a collection of pushpins to a map

我与影子孤独终老i 提交于 2019-11-29 00:13:04
Here is the XAML code: <maps:Map x:Name="NearbyMap" Center="{Binding MapCenter, Mode=TwoWay}" ZoomLevel="{Binding ZoomLevel, Mode=TwoWay}" > <maptk:MapExtensions.Children> <maptk:MapItemsControl Name="StoresMapItemsControl" ItemsSource="{Binding Treks}"> <maptk:MapItemsControl.ItemTemplate> <DataTemplate> <maptk:Pushpin x:Name="RouteDirectionsPushPin" GeoCoordinate="{Binding Location}" Visibility="Visible" Content="test"/> </DataTemplate> </maptk:MapItemsControl.ItemTemplate> </maptk:MapItemsControl> <maptk:UserLocationMarker x:Name="UserLocationMarker" Visibility="Visible" GeoCoordinate="

How to add a push pin to a MKMapView(IOS) when touching?

孤人 提交于 2019-11-26 07:53:38
问题 I had to get the coordinate of a point where the user touch on a MKMapView. I\'m not working with the Interface Builder. Can you give me one example? 回答1: You can use a UILongPressGestureRecognizer for this. Wherever you create or initialize the mapview, first attach the recognizer to it: UILongPressGestureRecognizer *lpgr = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)]; lpgr.minimumPressDuration = 2.0; //user needs to press for 2 seconds [self