how to plot google offline Maps apiV3? - c#

Dear All thanks in advance,
I need offline maps support for my desktop application developed in C# windows forms.
Once the map is loaded in the browser, it must retain the map and even if there is no net connection it has to show the navigation.
i am ready to get the license for the maps if it is possible.
please help me in finding the solution.

Directions and Navigation require a network connection. See the documentation here. You can however save a map for offline usage (search for a location -> open the info window -> save offline map). Offline maps are very limited in that it may not be available in all area and does not have other features like search. Depending on the level of information you need, maybe you can just take a screenshot of the directions and save that somewhere?

Related

How to share map with pushpins : Bing Maps, WP8.1, Map Control

I'm working with MapControl from wp8.1 default controls. I can add different elements on map:
MapControl.MapElements.Add(polygonElement);
MapControl.MapElements.Add(mapIcon);
The question is, how to share this element to somebody? When I use Bing Maps browser app I can simply click on "share" button and get a link
http://binged.it/1zEKwlo
that will display all added data to anyone who has this link. Is there any way to share MapElements to another user?
Not really. If you want to share a map view you could capture a screenshot and send that, but that wouldn't be very interactive and I'm guessing not what you want. If you only want to share point based data then you can create a link to the Bing Maps consumer site which would cause the native maps app on Windows Phone to open (opens in browser for other apps). This would allow you to share a single point. If you want to share anything more than that I would recommend creating a mobile website that either loads data from the URL string, or from a database. If you are only sharing a little bit of data a URL might be enough. If you have enough data to make a URL longer than 2083 characters then you will need to look at a different solution. One option is to create a web service for saving the map view. This could generate a unique ID for the view and then you could pass that ID to a custom mobile website as a parameter in the URL. This process requires a decent amount of development but would remove most limitations you will encounter using other approaches. If you use this method I recommend taking a look at the Azure mobile services as you can quickly and easily create a web service that is connected to a database. You can even add authentication easily as well if you wanted.

Bing Maps WPF control in OFFLINE mode (MercatorMode)

We are investigating the potential use of Bing Maps WPF control in OFFLINE mode (which will be called MercatorMode in the control). OFFLINE mode implies that we download on a desktop machine the tiles for different zoom levels and then the WPF control accesses these pre-saved tiles instead of connecting to the Internet. Technically this scheme works perfectly.
What is unclear right now is how to obtain (download) the tiles without violating any Bing Maps license rules. So it raises two questions:
Whether there exists a way to officially download Bing Maps tiles
Whether it is officially allowed to use the control in the OFFLINE
mode (assuming that we’ve got some tiles from some source of tiles)
The legal documentation for Bing Maps is rather confusing than clarifying. So we’d like to ask about the particular experience of other developers.
Our ultimate goal is to have:
a good WPF control for maps (which is a natural WPF control, not just a
wrapper over a WinForms control) supporting OFFLINE mode
a legal source of tiles to be used in the OFFLINE mode (costs are
not an issue – we are ready to pay for tiles)
Maybe the community would suggest another pair WPF Control + data source for tiles. We do not need any deep level of zooming since we plan to use the control and tiles only for drawing the borders of countries (excluding extremely small countries).
Right now we see that Bing Maps as a data source also supports Bing Maps WPF control, but the licensing terms are a real mess.
PS
We are developing an “in-house” desktop application which will be used internally in our organization while the Bing Maps license never explicitly references desktop applications while mentioning web-applications and Windows Store. Does anybody know whether Microsoft intentionally doesn’t mention the desktop applications?
None of the Bing Maps controls can be used offline. This is against the terms of use. MercatorMode is not an offline mode, this is just a mode which all the standard map views inherit from and which you can use to have a blank background to a custom tile layer. The Map control will always need to have access to the internet otherwise it will not be able to authenticate the map. When it can't authenticate the map an error is thrown. You can handle this error such that it disables the map instead of crashing the app by using the following code sample: http://rbrundritt.wordpress.com/2012/04/05/bing-maps-wpf-internet-connection-issue/
For an offline map control solution take a look at GMap.NET: http://greatmaps.codeplex.com/
Telerik has a nice Map control which supports:
Rich geographical context for large volumes of data
Heat maps
Multiple tile layers
Multiple Map Providers
Support for Bing Maps, OpenStreetMaps, custom map providers, as well
as visualization of geospatial data.
You can try https://greatmaps.codeplex.com/ which works fine in WPF/Offline mode. First you may have to use their application to download the desired maps at all zoom levels. The maplets are stored in SQLLite database which you may consume in your WPF application. The entire source code along with the map control in WPF is also available there.

Register your app as Photo Editor

I want my app to be available as photo editor and it should appear as an option when the user chooses to edit the photo. I can see Nokia Creative Studio, OneShot and other apps there, but My app doesn't appear. How do I register for this?
I am not aware of the terminology which is used for this, so couldn't search about it too.
Ahh.. finally found it. The term is Rich Media Extensibility (Dunno who gives these complex names to easy features).
The MSDN article here describes it properly with examples.

Google Maps in C# Visual Studio application

For my university I have to create an application that for the User Interfaces paper that I'm doing. I want to create an application that focuses on Africa and allows the user to plot on the map some points of interest.
First thing first though, i need to be able to get the Google maps API working in a form. Does anyone have any idea how I would do this?
Google maps is based on JavaScript. You will need to embed the maps objects into the page and use it that way.
A good starting point would be http://code.google.com/apis/maps/index.html and the most basic of tutorials is available at http://code.google.com/apis/maps/documentation/javascript/tutorial.html#HelloWorld.
I would definatley recommend then links above and then move onto something like http://googlemap.codeplex.com/. It's better to know what's going on underneath before abstracting it away.
Alternatively, you may wish to check out GMap.net (the website is not GMap.net: http://greatmaps.codeplex.com/)
GMap.NET is great and Powerful, Free, cross platform, open source .NET
control. Enable use routing, geocoding and maps from Coogle, Yahoo!,
Bing, OpenStreetMap, ArcGIS, Pergo, SigPac, Yandex, Mapy.cz, Maps.lt,
iKarte.lv, NearMap, OviMap, CloudMade in Windows Forms & Presentation,
supports caching and runs on windows mobile!
I've used this before with WinForms and found it pretty handy. I suggest this because parts of Africa may be better served by different map vendors.

What tools do I need to make a GIS/GPS Navigation Software by C#

I have been assigned to know to how to make a GPS Navigation Software for Win CE 6.0 operating system. But after searching a lot, I couldn't find a good way to start.
I have downloaded some free software by which i can view the provided ShapeFile files but I want to make a software by which I can view those files in my customized mode.
My preferred technology is .NET 3.5 / 4 and my OS supports silverlight.
You can visit this link what exactly I want to do.
Thanks in advance.
I have to work on a predefined data set (shape files) provided by my client and i have to put my app in GlobalSat [GA-5718] device.
Your suggestions are very fine but it won't work for me. Thats why I am in a confusing position.
At first you'll need to get access to the GPS data and read it. Most GPS modules act as a serial device on some COM port and provide their information in the NMEA Standard.
To get this easily read you should take a look at the OpenNETCF Serial Library, cause it provides an easy access to the informations and is able to read the NMEA strings.
But most GPS modems needed to be initialized by sending a correct NMEA input string. For these you should take a look into this documentation, this site or in the comment in the source above function public bool SendGpsMessage(string GPSSentence).
With these informations you should have a good starting point to correct read in the GPS data. Visualization of these informations to the user (like showing a Map with the current position) is another task. But maps.google.com API would be a possible candidate if you software runs on a machine with internet connection and you don't mind the costs for this connection.
The fact that you are asking this question strongly suggests you do not have the resources or ability to write it from scratch (it is a substantial project). Therefore you will have to use existing toolkits. You mention Silverlight, so I suspect you are going to be working in an online environment. Therefore I would recommend the Bing Maps Silverlight Control. IMHO, this outperforms the Google Maps control at the moment - but it is a moving target. This is a place where active competition results in two products (Google Maps & Bing Maps) constantly trying to out do each other.
If this is for a commercial application, then check the EULAs for these services - although many enthusiasts assume they are free, this is not necessarily the case. Most commercial applications cost significant sums ($1000s per month). In such a situation, the choice of service will probably come down to cost rather than technology.

Categories