In addition to more than 20 built-in map types, the Guide bee map development kit also supports custom map types. To support custom map types, first understand the sharding method of the map server you need to support. Currently, several mainstream map services, such as Google Maps and Bing Maps, the map sharding Method for MapAbc maps is similar. For details, refer to the Bing map sharding method. Generally, the scale level of a map is 1-17, and each image is a PNG Image of X.
China has launched the World Map http://www.tianditu.com/map/index.jsp. Here, I don't want to evaluate the quality and purpose of a custom map. I just want to use it as an example to illustrate the usage of a custom map.
You can use Microsoft Network Monitor to obtain the following URL generation rules for map spaces:
Scaling URL rules
1-10 http: // tile [n] .tianditu.com/DataServer? T = A0512_EMap & x = {x} & y = {y} & L = {z}
Http: // tile [n] .tianditu.com/DataServer? T = A0512_Anno & x = {x} & y = {y} & L = {z}
11-13 http: // tile [n] .tianditu.com/DataServer? T = B0627_EMap1112 & x = {x} & y = {y} & L = {z}
14-18 http: // tile [n] .tianditu.com/DataServer? T = siwei0608 & x = {x} & y = {y} & L = {z}
It can be seen from the above that the map of heaven and earth is composed of multiple "Miscellaneous Army.
A 1-10 level map consists of two layers, with the formation marked. Www.2cto.com
Level 11-13 maps are composed of one layer, including maps and tags.
Level 14-18 maps are also composed of one layer, including maps and annotations. The map seems to have come from four dimensions.
The key to using a custom map is to find out the URL rules of the map image. That is, the URL of the image is generated based on the map type, X index, Y index, and scaling level.
[Java]
Public String getTileURL (int mtype, int x, int y, int zoomLevel );
Public String getTileURL (int mtype, int x, int y, int zoomLevel );
Author: mapdigit