Dear all,
I am using the code of spmap by Stata SE 16.0,but here some problems. The example data are as follows(just a part city of China):
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input long 省代码 str24 省 long 市代码 str33 市 str15 类型 int ID double value
310000 "上海市"          310000 "上海市"                      "直辖市"  74 35
150000 "中朝共有"       156400 "中朝共有"                   "不统计"  37 14
530000 "云南省"          530900 "临沧市"                      "地级市" 292 52
530000 "云南省"          530700 "丽江市"                      "地级市" 290 78
530000 "云南省"          530500 "保山市"                      "地级市" 288  2
530000 "云南省"          532900 "大理白族自治州"          "自治州" 297 58
530000 "云南省"          533100 "德宏傣族景颇族自治州" "自治州" 298 65
530000 "云南省"          533300 "怒江傈僳族自治州"       "自治州" 299 69
530000 "云南省"          532600 "文山壮族苗族自治州"    "自治州" 295 32
530000 "云南省"          530100 "昆明市"                      "地级市" 285 69
530000 "云南省"          530600 "昭通市"                      "地级市" 289 26
530000 "云南省"          530800 "普洱市"                      "地级市" 291  5
530000 "云南省"          530300 "曲靖市"                      "地级市" 286 27
530000 "云南省"          532300 "楚雄彝族自治州"          "自治州" 293 52
530000 "云南省"          530400 "玉溪市"                      "地级市" 287 35
530000 "云南省"          532500 "红河哈尼族彝族自治州" "自治州" 294 75
530000 "云南省"          532800 "西双版纳傣族自治州"    "自治州" 296 30
530000 "云南省"          533400 "迪庆藏族自治州"          "自治州" 300 71
150000 "内蒙古自治区" 150900 "乌兰察布市"                "地级市"  33 41
150000 "内蒙古自治区" 150300 "乌海市"                      "地级市"  27  4
end
Where I use the code is "spmap", more details as you can see:

spmap value using china_city_coord.dta, id(ID) ///
fcolor("252 255 164" "252 181 25" "237 105 37" "187 55 84" ///
"120 28 109" "51 10 95") ///
ocolor("black" ...) ///
clmethod(custom) clbreaks(0 14 28 42 56 70 84) ///
ti(Stata 绘制带九段线小地图的中国市级地图, size(*1.1) color(black)) ///
graphr(margin(medium)) ///
subti("2019 年中国市级行政区划", color(black)) ///
caption("版本 2.0 | TidyFriday 出品", size(*0.8)) ///
osize(vvthin ...) ///
legend(size(*1.3) ///
order(2 "0~14" 3 "14~28" 4 "28~42" 5 "42~56" 6 "56~70" 7 "70~84") ///
ti(示例数据, size(*0.5) pos(11) color(black)) color(black)) ///
line(data(mybox_coord) size(*0.5 ...) color(black)) ///
xsize(13) ysize(10)

In the end, the map has many lines. I don't want to have such lines. So, how to solve it? What's more, the state 15 can do it well.
Array