Unfolding maps supports Chinese

Source: Internet
Author: User

Because of the project needs, the choice of processing+unfolding way of data but the development of the word, unfolding maps is a very powerful map tool, processing can flexibly express a variety of graphics/effects. The use of off-the-shelf libraries such as echarts/hicharts, although very fast, but many of the effects have been dead, can not be easily customized. In the process of use, found that unfolding support for the English language is very good, supported by more map vendors, such as the following map vendors support:

Openstreetmap.openstreetmapprovider (); Openstreetmap.cloudmadeprovider (API KEY, STYLE ID); Stamenmapprovider.toner (); Google.googlemapprovider (); Google.googleterrainprovider (); Microsoft.roadprovider (); Microsoft.aerialprovider (); Yahoo.roadprovider (); Yahoo.hybridprovider ();

It can be seen that these suppliers are not Baidu, there is no German. The above vendors, each of which is a test, found that Microsoft's effect is the best (speed, whether the wall), but in the ointment is that Microsoft maps use English to display Chinese place names, which is very inconvenient, such as:

In fact, the map of Microsoft can support Chinese, but unfolding in the package is not the time to take into account the needs of the Chinese people, modify the unfolding source code can be done (thanks to the group of students to provide the connection: http://www.cnblogs.com/ crazypig/archive/2012/03/17/2403977.html), this link, refers to the Microsoft China Map connection, the unfolding code to do the following changes:

In fact, the unfolding hard code link to Microsoft to support the Chinese connection.

I fork a code from unfolding maps, the revised Code link: https://github.com/aktiger/unfolding/blob/master/src/de/fhpotsdam/ Unfolding/providers/microsoft.java

For the convenience of everyone, I have compiled a good support of the Unfolding.jar package in the CSDN, for everyone to download.

After downloading the compiled Unfolding.jar package, overwrite the original jar processing to see the Chinese map:

To view the path of the covered Unfolding.jar package, such as:

Unfolding maps supports Chinese

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.