How to Use the map development control (GMAP. net) in winform)

Source: Internet
Author: User

Let's first look at the definition of GMAP. Net:

GMAP. Net is a powerful, free, cross-platform, open-source. Net control. It can be used in Windows Forms and WPF environments through Google, Yahoo !, Bing, OpenStreetMap, ArcGIS, pergo, and sigpac are used to search for paths, geocode, and map display. They also support caching and running in mobile environments.

GMAP. NET is an open-source geo map location and tracking service.Program. Just like Google Maps and Yahoo Maps, You can automatically calculate the distance between two locations and locate the longitude and latitude. Unlike Google Maps, this project is based on winform in C # language. You can zoom in or out a map and mark a city.

The GMAP. Net project address is http://greatmaps.codeplex.com/, we can download the relevant examples and source code for learning and research. I searched related projects on Google, as shown in the following figure:ArticleNot much, but it does not affect the powerful and easy-to-use of this control. Let's first look at its interface:

GMAP. NET is known to support many map sources, but I tried it, as if there were some problems, and the best effect was googlemapchina, as shown in.

I can use googlemapchina to zoom in to a detailed street chart and make an address query example, as shown below:

The control can draw lines or walking lines between two locations, and calculate the distance between the two locations. However, the analysis of geographic code does not seem very accurate, and information such as bus lines cannot be obtained, however, it should be pretty good to deal with general applications.

By default, this control uses right-click and hold-down as the drag, which is a little different from that of GoogleMap using the left mouse button as the drag (however, you can use this. gmapcontrol1.dragbutton = mousebuttons. left; To achieve left-click drag), both support scroll wheel zoom operation. The widget also supports precise positioning of longitude and latitude, drawing icons (green and red icons, cross symbols, etc.), moving the central point, exporting map images, and other functions. Because map controls support route drawing, track playback in General GIS applications should be supported. Because the map control supports the conversion of the mouse position and latitude and longitude coordinates, you can obtain the relevant latitude and longitude information at will.

Compared with GoogleMap on the web, this winform map control has many functions, but compared with traditional GIS such as MapX, mapxtreme, and ArcGIS, you don't have to pay too much (or even don't have to pay) to use the fine map, so I have to say it's good news.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.