pushpin

Creating a draggable map pin on UWP

放肆的年华 提交于 2021-01-28 00:40:31
问题 After following the instructions in the link here How to create draggable pin in windows 10 to give pick location functionality? I have a half working dragging pin. Currently the map pin (Grid) starts in the correct place on the map, however, upon dragging the map pin the pin initially pops up to the top left of the screen (0,0) and starts dragging from here. Upon dropping the pin it appears to have disconnected from the map element itself as you can then scroll the map and the pin stays in

Draw bing map pushpin using custom shape & click event should only work for shaped pushpin

耗尽温柔 提交于 2020-01-25 09:40:28
问题 Feature Overview I am using Bing Map V8. As per the requirement, we need to create custom pushpin (ref. Custom Pushpin) which contains three different html elements. E.g. Canvas, Image & Label. That pushpin will be looks like below, In this pushpin, all three elements are being set dynamically on run time. Like, Canvas radius, Pushpin Name font style (color, size), etc.. properties are different per pushpin. This feature we achieved by merging these three elements into the canvas and then by

Bing Maps pushpin icon issues

亡梦爱人 提交于 2020-01-06 17:26:10
问题 I have a custom set of icons I'm setting various pins too. When the mouse hovers over them I'd like to bring them to the front and change the style to a different icon. I use this code to create the pin. OnHover I see the new push pin and on mouseout it returns to how it was. However, it has transparent areas and I can see parts of the non-hover pushpin below it when hovering. For bringing it to the forefront have tried changing the zIndex value and as far as I can tell it does nothing. Do I

How can I remove specified pushpins?

 ̄綄美尐妖づ 提交于 2020-01-05 02:52:30
问题 I add pushpins dynamically to a Bing map. I also want to remove certain ones (based on a value embedded in their Tag property). In order to do this, do I need to identify the pushpin's MapOverlay, and if so, how might I go about that? 回答1: I am not sure which environment you are talking about, but it looks like its not windows 8. So here is some code for windows phone 7.1. This assumes that you only have Pushpins in your map's children collection. If you also have other UI elements you would

how can I bind Bing Pushpins from multiple models?

穿精又带淫゛_ 提交于 2019-12-25 12:44:17
问题 I have the requirement in my WP7 application to display pushpins on a bing map from multiple data sources and I am not sure of the best way to do this. So for example it would be something like this, I receive from a web service a list of people, a list of buildings, a list of POIs etc. I would need to display these individually in their own views but also display them on a map with different images for each type. I am trying to use a MVVM approach so have a class for a Person, class for a

How do i add a pushpin to a Windows Phone 8.1 Map Control?

故事扮演 提交于 2019-12-20 00:53:17
问题 I've been looking for examples on how to perform this task however i haven't been able to find a clear one. Can someone please point me in the right direction. I'm lost... Edit/Update: Ive manage to add some markers following the following example: http://www.microsoftvirtualacademy.com/Content/ViewContent.aspx?et=8698&m=8686&ct=29035 However, as MSDN documentation states , The MapIcon is not guaranteed to be shown. It may be hidden when it obscures other elements or labels on the map. The

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 03:01:44
问题 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

Windows Phone 7 - Map PushPin not moving with the map?

∥☆過路亽.° 提交于 2019-12-14 03:09:44
问题 Bit of a weird one. I've recently started WP7 development and trying to port over an iOS app I have written. One part of the application involves placing a pin on a map using a latitude and longitude. I have this working fine using: Pushpin pushpin = new Pushpin(); Location location = new Location(); location.Latitude = lat; location.Longitude = lng; pushpin.Location = location; pushpin.Name = name; MyMap.Children.Add(pushpin); The pin appears fine, however when I drag the map or Zoom, the

Windows 8 App XAML/C#: Set multiple pushpins to Bing map in one method

一世执手 提交于 2019-12-12 01:29:04
问题 I am struggling to add a collection of latitude & longitude as Pushpins on Bing Map, in a Windows 8 app using XAML & C#. Adding Pushpins one by one using an event handler such as a right tap on the map works fine. Here is the XAML: <bm:Map x:Name="myMap" Grid.Row="0" MapType="Road" ZoomLevel="14" Credentials="{StaticResource BingMapAPIKey}" ShowTraffic="False" Tapped="map_Tapped" > <bm:Map.Center> <bm:Location Latitude="-37.812751" Longitude="144.968204" /> </bm:Map.Center> </bm:Map> And here

ScrollIntoView doesn't work with Touch

狂风中的少年 提交于 2019-12-11 20:31:28
问题 So I have a map with a number of PushPins on it and a list down the right hand side listing all the PushPins (using the same view models) When I click a pin on the map I want to scroll the item into view on the list. I currently use this code on Click and OnTouch: private void ScrollPushPin(Pushpin pushpin) { ScrollViewer scrollViewer = GetScrollViewer(MyList) as ScrollViewer; scrollViewer.ScrollToBottom(); var index = this.MyList.Items.IndexOf(pushpin); //index is never -1 so I would expect