This is really simple, but I haven't figured out how to do it yet. On Bing Maps for Windows Phone 7, how do I navigate to a ZIP code? I just want to center and zoom the map to a specific ZIP code. Is this possible without knowing the long/lat?
With the current version of the tools this isn't possible.
You'll have to get the lat/long for the ZIP code and then manipulate the map accordingly.
Hopefully, CivicAddressResolver will be implemented in an update soon so that this can be done with the SDK on the device.
Related
I'm currently developing a windows phone 8.1 Silverlight in C#. I managed to get the stream of the camera and output it on the screen of the phone (using PhotoCamera). This app is about OCR so I need to get an image very frequently to perform operations on it (the goal is to detect a specific object but through the camera and not a picture). Does anyone have an idea about how to achieve that (-> a function from the API that sends you an image every so often)? There is a lot of Microsoft tutorial, but I can't find one about that particular usage.
Well this seems to be the tutorial I was looking for. Hopefully this will help other people with the same problem : https://msdn.microsoft.com/fr-fr/library/windows/apps/hh202982(v=vs.105).aspx .
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.
I have a map allow user marked your location. I want to save this MapView.
I am not sure if it's possible to save a map view as an image.
However, you could use the imagery REST service from Bing Maps to generate images. See this link: http://msdn.microsoft.com/en-us/library/ff701724.aspx
Your other option is to take a screen shot of the whole screen. See this link on how to do this:
http://www.developer.nokia.com/Community/Wiki/index.php?title=How_to_capture_screen_programmatically_in_Windows_Phone_7&diff=184613&oldid=184561
I want to create a zoomable draggable etc. map of a really big image, the functionality should be like google maps but the map itself comes from me (it will be a galaxy picture).
So I think I have to use this components:
Frontend: http://openlayers.org/
(Example)
Backend: http://sharpmap.codeplex.com/
And connect them with each other, so the frontend will call the backend to display tiles in the current zoomlevel of the map.
I'm new to that map building thing and just want to make sure to not going in the wrong direction, so does it makes sense? Anyone did that before? Or any better ideas?
EDIT
Sorry, forgot that: The user should not have to install any additional stuff and it should run on an Ipad too, so I'm not able to use silverlight, flash etc. Just good old plain JS :)
I had worked on similar requirement but development platform was Silverlight. I had used "DeepEarth" (extended deep zoom) with tiles hosted on the local server.
DeepEarth
DeepZoom
You can try using Bing Control and services which is a paid service. In trial version, you will get Bing logo in the background. Bing Services
Bing control or any such controls with tiling services are appropriate when you want real world map - cities/roads. If you just need to have a zoom in/out feature on an image you can use deepzoom.
I ended up with using openlayers.org for the frontend and building the backend by myself.
The built-in emulator from the WP7 Tools doesn't have the Bing App installed, and I don't have any phone hardware to test with. So I'm simply wondering, how can I open the Bing Maps Application to a specific Lat/Long?
Related Questions:
iPhone -- How can I launch the Google Maps iPhone application from within my own native application?
Android -- https://developer.android.com/guide/appendix/g-app-intents.html
It seems that starting from the OS version 7.1 there's a specific task available for this, see BingMapsTask and for directions the BingMapsDirectionsTask.
Unfortunately there is no way to launch the Bing Maps App from within your own application.
In an early CTP there was a way but this has been removed. Hopefully it will return in the future but it is not on any current, public, roadmaps.
This leaves two alternatives.
Option 1
You could perform a search for the lat/long you want to show. The search app does directly integrate with the bing maps app so, assuming that bing can take the lat/long you provide and return something useful, the user would still be able to do whatever they wished within the bing maps app.
This has 2 downsides though. Firstly, you have no control over the search results. And, secondly, you cannot test this on the emulator.
Option 2
You could use the BingMaps control within your own silverlight application.
(Prior to the RTM, it was posible to use the full Silverlight version of the control within your app. But, this had a few quirks and was only ever intended as a stop gap solution.)
While not as fully featured as the app, the control does offer a lot of functionality.
Without a real device, but you could simulate location data, for testing, with the Reactive Extensions.
Even with a real device you will probably want to look at doing this as it's a lot easier than trying to debug while walking or driving around.
Edit:
As per this post by Kevin Marshall, if you're going to use the WebBrowserTask() (option 1 above) prefix your query with "maps:" and URL encode your query string. eg:
var task = new WebBrowserTask();
task.URL = "maps:1%20N%20Franklin%2060606";
or
task.URL = "maps:37.788153%2C-122.440162";
Bing maps silverlight control is now supported out of the box and is part of the tools... learn more about it here: http://channel9.msdn.com/Learn/Courses/WP7TrainingKit/WP7Silverlight/UsingBingMapsLab/Exercise-1-Introduction-to-the-Bing-Map-Control
Yes you can do this. I've got it running in the emulator (however, as many people have said there's no guarantee the Bing Maps for Silverlight control will run on the actual device)
Here is the xaml:
<m:Map Grid.Row="0" x:Name="mapMain" ZoomLevel="5" Mode="AerialWithLabels" CredentialsProvider="YOURBINGMAPSLICENSE" />
and here's some code to set the location in the .cs class
var ppLoc = new Location(-37.821285, 144.97785);
mapMain.SetView(ppLoc, 17);