pushpin

Pushpin location binding in windows phone 8 app is not working

好久不见. 提交于 2019-12-11 19:26:11
问题 i am developing a windows phone 8 app, in which i have to display a pushpin to current location. while running the code it is showing an exception: "An exception of type 'System.NullReferenceException' occurred in MapTestApp.DLL but was not handled in user code" public MainPage() { InitializeComponent(); geolocator = new Geolocator(); geolocator.DesiredAccuracy = PositionAccuracy.High; geolocator.MovementThreshold = 100; // The units are meters. geolocator.StatusChanged += geolocator

What jQuery map plugin allows specifying the color of the pushpins?

﹥>﹥吖頭↗ 提交于 2019-12-11 14:21:22
问题 I have used the goMap jQuery plugin for some easy and simple programmatic placing of pushpins on Google maps; I'm going to create a site, though, where various "categories" of places are shown simultaneously, and I want to differentiate them visually by making each group/category a different color. Is anybody aware of either how this can be done in goMap, or which jQuery plugin makes it possible? I'm not married to Google maps; Bing maps would be fine, too. 回答1: You don't really need a plugin

How to render multiple markers at the exact same coordinates in Google Maps API?

五迷三道 提交于 2019-12-11 03:00:59
问题 I have multiple addresses on the same street with the same house number, but with different apartment numbers. Google Maps Geocoding Service (v2) doesn't go down to apartment level accuracy for many addresses and just returned me the exact same geocode coordinates for them. So the problem is that when I go to display them, only one pushpin shows up no matter how much you zoom in. And my question is; what is a good way to render multiple pushpins at the exact same house address? I've seen how

How to prevent overlapping pushpins at the same geolocation with Bing Maps?

拥有回忆 提交于 2019-12-10 16:26:51
问题 If you have 2 pushpins on 'London' at the same geolocation, is there anything in the API to move them apart so they are both visible? I can only find documentation on their old map points API which had PreventIconCollisions, this is what I want but can't see any reference to this in the new API. I am using the JavaScript API. 回答1: So if I understand correctly, you have similar information on the same location, it this correct? In order to display both information, you will have two options:

Bing maps silverlight control custom pushpin

三世轮回 提交于 2019-12-08 13:50:12
问题 I tried to make a custom pushpin for the Bing Maps silverlight control, but I can only add 1 pushpin. At the second pushpin I get the following error: System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value) at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection,

MVVM Light - Relaycommand with Pushpins

一曲冷凌霜 提交于 2019-12-07 18:21:39
问题 I am data binding some pushpins to a MapLayer. They display fine, but when I use the relaycommand to pass the eventargs from the mouse leftbuttonUp, the object sources is an elipse. I have used this method on a MapPolygon and picked up the information I wanted from the object. Maybe I am aproaching this badly as I am new to mvvm, so please let me know! This works for my MapPolygons (vm references the namespace of my extendedMapPolygon class) <DataTemplate x:Name="polyTemplate"> <vm

how to format the text or change the font size inside pushpin in bingmaps ajax

China☆狼群 提交于 2019-12-07 13:42:33
问题 I've created pushpin using the follwing code var pin = new Microsoft.Maps.Pushpin(data._LatLong, { icon: 'images/pushpin.png', text: '1', typeName: 'pushpinStyle' }); Text displayed in the pushpin icon is 5px below from top of the icon by default. I've changed the height and width of the pushpin icon, but no improvement in text format inside the pushpin. How to format the text inside the pushpin. I've googled a lot but i didn't get the correct response. Thanks in advance 回答1: You are on the

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

送分小仙女□ 提交于 2019-12-07 12:23:07
问题 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

MVVM Light - Relaycommand with Pushpins

拟墨画扇 提交于 2019-12-06 04:43:36
I am data binding some pushpins to a MapLayer. They display fine, but when I use the relaycommand to pass the eventargs from the mouse leftbuttonUp, the object sources is an elipse. I have used this method on a MapPolygon and picked up the information I wanted from the object. Maybe I am aproaching this badly as I am new to mvvm, so please let me know! This works for my MapPolygons (vm references the namespace of my extendedMapPolygon class) <DataTemplate x:Name="polyTemplate"> <vm:extendedMapPolygon cName="{Binding _cName}" Locations="{Binding _Locations}" /> </DataTemplate> Here is the XAML

how to format the text or change the font size inside pushpin in bingmaps ajax

邮差的信 提交于 2019-12-05 20:11:13
I've created pushpin using the follwing code var pin = new Microsoft.Maps.Pushpin(data._LatLong, { icon: 'images/pushpin.png', text: '1', typeName: 'pushpinStyle' }); Text displayed in the pushpin icon is 5px below from top of the icon by default. I've changed the height and width of the pushpin icon, but no improvement in text format inside the pushpin. How to format the text inside the pushpin. I've googled a lot but i didn't get the correct response. Thanks in advance You are on the right track to specify the typeName property for your Pushpin. As you probably already know, specifying a