Hello I am working on UWP map based application. I want to provide a path animation to my pushpin the way demonstrated in the Bing Maps documentation here .
The Issue is
I can't use the bing map SDK as I can not use any other Tile source (like OSM) except for bing and neither can I remove the copyright information.
Anyone can help me with creating path animations a pushpin on the XAML map control? which is provided by default in the Controls
I can't use the bing map SDK
Bing Map SDK is used for previous versions, in UWP app we have MapControl instead. And the animations you mentioned are not provided by SDK, they are just animations in UWP app. So actually you don't need use the Bing Map SDK as what you want has no relationships with the SDK.
Anyone can help me with creating path animations a pushpin on the XAML map control
This article you provided already taught about creating animations with Maps. But the target version in that article is windows 8.1 with Bing SDK not UWP app, so some APIs cannot be used in UWP app. Such as LocationCollection() is replaced by Geopath class, MapShapeLayer() maybe replaced by MapItemsControl class. More details please reference Maps and location overview and the official sample.
I convert some of the animations that now they can be used in a UWP app. You can download the demo here for testing.
Related
I'm new to UWA development and Microsoft hadn't provided any documentation about this. I was just wondering if any one knows how to make multiple pushpins on a map cluster together if there are more of them close together?
There is no built-in feature to cluster pushpin in the Bing Maps SDK but you can easily do it on your own.
Here is a great example with full source code using MVVM.
https://havefuncoding.wordpress.com/2015/04/04/clustering-pushpin-and-mapicon-with-windows-8-1-and-windows-phone-8-1/
There's also a library on Codeplex which includes a clustering features
https://mapstoolbox.codeplex.com/wikipage?title=Bing%20Maps%20Clustering%20Functionality
I am building an universal app for Windows where i am using maps control for displaying few hundreds of pushpins on map. In WinRT i successfully used Bing maps SDK and it works perfectly as i wish.
Problems coming out in my Windows phone project. There is no Bing maps for windows phone, so i am using build-in maps in wp sdk. Main problem in this restriction from msdn:
The MapIcon is not guaranteed to be shown. It may be hidden when it obscures other elements or labels on the map.
This is unacceptable for my case, i want my pushpins overlay all others items on the map(including others pushpins), so user could see them all at the start of applications. I already tried to use ZIndex and all advices from the google, but nothing helped for me.
Did anyone solve this problem or can give me some advice to workaround this restriction?
The alternative is using XAML children of the Map, e.g.
<maps:MapControl>
<TextBox x:Name="MapOverlay" Text="Test" maps:MapControl.Location="{Binding FooLocationBinding}"/>
</maps:MapControl>
(MapControl.Location is an attached property which can also be set from the code behind if you won't be taking advantage of bindings.)
I was developing a windows phone application in WP7.1, while adding map control we have to set a parameter name "CredentialsProvider". Now i have moved to WP8.0, here while adding map control i am not getting "CredentialsProvider" parameter.
and when i run my application on emulator, it's showing blue square in place of map control, is this because of not setting "CredentialsProvider" ?.
Please Help.
Well, you don't need to use CredentialsProvider property in wp8 app, as CredentialsProvider property is basically the bing api key which a developer issues from Microsoft to enjoy the extended services of bing maps Like making a route, Reverse GeoCoding, GeoCoding. All these services are available as a pert of the sdk in wp8 hence no need to set the attribute, that attribute was only meant till wp7.
Please let me know the problem and requirement in detail if still you havent got the solution.
My app uses bing map control. I've created new tilelayer with google map(
http://mt0.google.com/vt/lyrs=y&z={0}&x={1}&y={2}
) but it doesn't work. I've read something about google doesn't support windows phone. Is it my case too? After that I've tried openstreetmap and it is ok, but no satellite images. Other choice is Nokia map, but I don't know how to use satellite images. This link is from nokia website(
http://maptile.maps.svc.ovi.com/maptiler/v2/maptile/newest/normal.day/{0}/{1}/{2}/256/png8?token={3}&app_id={4}&lg={5
}) no item to place viewmode.
Any suggestions?
thanks
Do you want to use bing maps or google maps? i suggest bing
i am trying to integrate bing map with heat map feature into my wpf desktop application, is there any API to do this? i searched the microsoft website and i can only found API for developing a map apps, which i think is different from what i want... any idea where should i start??
update: i think microsoft only provide the bing API for silverlight, and i found this one for WPF, but i dont know how to generate the heat map on this... can anyone point me to somewhere?
http://www.codeproject.com/KB/IP/BingMapsWebServiceExample.aspx
Maybe that 3rd party component from Telerik would be useful? If you can afford it, it will save you a lot of time.
http://www.telerik.com/products/wpf/map.aspx
It uses Bing maps and supports heat maps.
ArcGIS also offers a more flexible WPF control with heat maps, check the dev tools here