Bing maps WPF c#. The displayed route covers road labels - c#

This my map:
And this is bing's web map:
As you can see, displayed MapPolyline's routes cover road labels. Is there an option to prevent this?
thanks in advance.

This is to be expected. Most mapping platforms render the map using "map tiles" which have the labels rendered right on the tiles. Any data displayed on the map is rendered above the labels since the labels are not separate from the base map. The Bing Maps V8 and Windows UWP Map controls are the first Bing Maps controls to use vector labels. In these controls the labels are separate from the base map tiles and are rendered above all data other than pushpins. The Bing Maps website is using the Bing Maps V8 control. If you want it is possible to use the Bing Maps V8 control in a WPF application via a web browser control. The Bing Maps V8 control is the main control that most developers use and also has more feature than any other Bing Maps control (and most other map APIs). You can find out more about Bing Maps V8 here:
Documentation: https://msdn.microsoft.com/en-us/library/mt712542.aspx
Interactive Code Samples: http://www.bing.com/api/maps/sdk/mapcontrol/isdk#overview
Also, be sure to use the [bing-maps] tag on stack overflow when asking a Bing Maps question so that the Bing Maps team sees it and can respond quicker to

Related

How to use a specific google map with WP8 Maps control - C#

I want to use this map: http://www.subway.com/storelocator/ with all the subway restaurant positions in my map on Windows Phone 8. I know how to find out the position of the phone and how to zoom in, but I don't know how I can bind in these subway positions. Thanks for any helpful answer.
Based on your question and the original title, I assume you're not actually trying to use Google maps on WP but rather provide your users with the ability to search for Subway store locations within your app? If so, what you really need is the way to get the store locations, which you can do by calling Subway's store location webservice, and then fill and bind the pushpin collection using natively supported Bing maps control.
If I have misunderstood and you are asking how to use Google maps (or rather Google map tiles in the WP Maps control), I'm not sure that's entirely legal. See 10.1.1. in the terms of use.
If you don't need to access or manipulate the store locations data in any way and only want to provide an in-app experience for the app users, you can also simply embed the WebBrowser control and navigate to the store locator page.

How to display a map with a traffic layer on Windows Phone 7?

I'm currently developing a Windows Phone 7 app in which I would like to display a map with a layer of the road traffic.
First, I tried to display a Bing AJAX Map and a Google Map through the webBrowser control. If the map is displayed, the UX is just awful. In fact, the webBrowser control doesn't allow the user to navigate or zoom with his fingers. It captures all the manipulations and doesn't apply them on its content.
Then, I tried to use the Bing Maps control and override the Tile layer with another API like the Nokia one or the OpenStreetMap one (like explained on the Nokia wiki here and here). It works, but none of these API allows to display a traffic layer (or I can't find the way to do it).
Finally, I used the trick to use the Google Maps tiles with a traffic info layer. If it works, I'm pretty sure that this solution is not legal. Some apps on the Windows Phone Store display the Google Maps with a traffic layer, but if they don't use the Bing Map control and override the Tile layer, I don't know how they do...
Does someone know how to display a map with a traffic layer into a Windows Phone 7 app in a legal way ? Did I miss something ? Maybe there is a solution I don't know or I don't think about ?
I really hope that someone will be able to help me !

Why can't I see buildings on my bing map?

I can't understand why my bing map doesn't show buildings.
The ShowBuildings is True.
You can compare 2 screenshots and the difference is huge.First - Bing Maps for Windows Store appp (My app)
Second - Native Bing Maps inside Windows 8 Pro
My xaml is pretty simple.
<MapsCore:Map x:Name="PART_Map"
Credentials="STRING_KEY"
ShowBuildings="True"
ShowBreadcrumb="True"
ShowNavigationBar="True"
/>
What is wrong?
According to this website, some features of the Bing Maps API (like BirdsEye Imagery) are not available for public testing yet, and are only available through the Extended Modes SDK. This may be where your problem is coming from.

Custom zoomable images using Bing maps

I want to use the Bing map WPF control and I'm wondering if it is possible to set our own "image source".
Basically I'd like to use the control to provide deep zoom functionality for various images that would be loaded by my application.
I know that it's possible with Google maps (as shown here: http://blog.mikecouturier.com/2011/07/create-zoomable-images-using-google.html#maps_code_tilesgen)
but I was wondering we can do something similar with Bing maps?
P.S.: I would prefer using Bing because Microsoft provides a native WPF control, something that Google doesn't.
In order to add a custom map (or image) tile provider you would have to implement a TileSource and override its GetUri method to provide the URI of an image tile.
See Adding Tile Overlays to the Map for the details. The code sample there is not that great, since some things they do in code could better be done in XAML, but it is a starting point.
Note however that even if you don't use Bing Maps content, using the WPF control forces you to use a Bing Maps API Key. The control authenticates your key at the Bing Maps service provider, which will require an internet connection. Hence your image display application won't run in an offline environment, or to be more precise, it will run but display an ugly error message in the center of the control area.
You certainly can and it's incredibly easy to do in Bing Maps. Microsoft has developed a tool called MapCruncher that cuts a supplied image into tiles with the structure expected by Bing Maps. This is really important because, although Bing Maps and Google share the same tile structure, Bing Maps uses something called a quadkey to define each tile (meaning, the z-x-y of the tile).
Note: it's also possible to load tiles made for Google Maps in Bing Maps. You just need to tweak the tile source.
Anyway, better shown than said.
Here's a really detailed tutorial by the Microsoft Research team on using MapCruncher:
http://research.microsoft.com/en-us/um/redmond/projects/mapcruncher/tutorial/version3.0docs/index.htm

How to use the Bing Maps Silverlight Control in a WPF project?

I have created a Silverlight Application project using the Bing Maps Silverlight Control and it works well.
Now I want to use a frame control in other WPF Application project to show the map. So I want to put the main page of the Silverlight project into the frame. I tried to add reference to the WPF project, but there appeared an error. And using Bing Maps SOAP Services in WPF project doesn't meet requirements, so I must use the Bing Maps Silverlight Control.
I really don't know how to solve the problem. I'll be glad to know any ways to use Bing Maps Silverlight Control in a WPF project.
Thanks!
Microsoft has recently published (23.08.2011) a beta version of a WPF control for Bing Maps. The API is quite the same as Bing Maps Control for Silverlight API so a significant piece of code written for Silverlight version should also work with the WPF control. Here's a blog entry with details: http://www.bing.com/community/site_blogs/b/maps/archive/2011/08/23/announcing-the-bing-maps-wpf-control.aspx
If you cannot use a Bing Map control for WPF (e.g. see: http://www.codeproject.com/KB/IP/BingMapsWebServiceExample.aspx), you could try to load the webpage that hosts the silverlight control inside your WPF app. You could achieve this by using the WebBrowser control or some similar method, and setting the URL to your silverlight page.
Cheers,
G.

Categories

Resources