Skip to content

Instantly share code, notes, and snippets.

@huynt57
Created June 20, 2025 16:32
Show Gist options
  • Save huynt57/0d3d05a4a69d31655f8b3b25a52b2c10 to your computer and use it in GitHub Desktop.
Save huynt57/0d3d05a4a69d31655f8b3b25a52b2c10 to your computer and use it in GitHub Desktop.
{
"version": 8,
"name": "Bản đồ QHXD Hải Dương(Vector Tile)",
"center": [
103.03025,
21.41029
],
"zoom": 12.67,
"bearing": 0,
"pitch": 0,
"light": {},
"sources": {
"qhxd_vts": {
"type": "vector",
"tiles": [
"https://mapserverquyhoach.haiduong.gov.vn/ekmapserver/rest/services/170/VectorTileServer/tile/{z}/{y}/{x}.pbf?apikey=1-YwbYPZlKOTl0YTm4niVtEHyvWVUwIbPF"
],
"minzoom": 0,
"maxzoom": 21
}
},
"sprite": "https://guland.vn/bacgiang/sprite",
"glyphs": "https://mapserverquyhoach.haiduong.gov.vn/ekmapserver/rest/services/170/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf?apikey=1-YwbYPZlKOTl0YTm4niVtEHyvWVUwIbPF",
"transition": {},
"layers": [
{
"id": "bg",
"type": "background",
"maxzoom": 12.67,
"layout": {
"visibility": "visible"
},
"paint": {
"background-color": "rgba(82, 82, 74, 1)",
"background-opacity": 0.25
}
},
{
"id": "doan_fill",
"type": "fill",
"source": "qhxd_vts",
"source-layer": "643",
"minzoom": 6,
"maxzoom": 9,
"layout": {
"visibility": "visible"
},
"paint": {
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
6,
0.5,
9,
0.8
],
"fill-color": "#c8e0d9"
}
},
{
"id": "doan_line",
"type": "line",
"source": "qhxd_vts",
"source-layer": "643",
"minzoom": 6,
"maxzoom": 14,
"filter": [
"all"
],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#f00c32",
"line-translate-anchor": "viewport",
"line-dasharray": [
"step",
[
"zoom"
],
[
"literal",
[
0,
0
]
],
8,
[
"literal",
[
1,
3
]
],
12,
[
"literal",
[
4,
2
]
]
],
"line-opacity": 1
}
},
{
"id": "nhan_doan_QHC",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "643",
"minzoom": 7,
"maxzoom": 16,
"filter": [
"all",
[
"==",
"loaiQH",
"QHC"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": "{tenDoiTuong}",
"text-size": 12,
"text-padding": 40,
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"symbol-z-order": "auto",
"symbol-avoid-edges": false,
"symbol-placement": "point",
"text-allow-overlap": false,
"text-keep-upright": false,
"icon-image": "nhandiadanh",
"icon-size": 1.2,
"icon-text-fit": "both",
"text-ignore-placement": true,
"visibility": "visible"
},
"paint": {
"icon-opacity": 1,
"text-color": "#f00a24"
}
},
{
"id": "nhan_doan_QHPK_QHCT",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "643",
"minzoom": 10,
"maxzoom": 17,
"filter": [
"all",
[
"!=",
"loaiQH",
"QHC"
]
],
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-field": "{tenDoiTuong}",
"text-size": {
"stops": [
[
12,
11
],
[
13,
12
]
]
},
"text-allow-overlap": false,
"text-ignore-placement": false,
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"symbol-z-order": "viewport-y",
"text-max-width": 12,
"text-justify": "auto",
"text-transform": "none",
"text-optional": false,
"visibility": "visible"
},
"paint": {
"icon-opacity": 1,
"text-color": "#f00a24"
}
},
{
"id": "QHXD_Fill",
"type": "fill",
"source": "qhxd_vts",
"source-layer": "644",
"minzoom": 7,
"maxzoom": 16,
"paint": {
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
9,
0.9,
14,
1,
15,
0.8,
16,
0.6,
17,
0
],
"fill-color": [
"case",
[
"==",
[
"get",
"planppname"
],
"Đất an ninh, quốc phòng"
],
"#939307",
[
"==",
[
"get",
"planppname"
],
"Đất cơ quan"
],
"#e5c7ae",
[
"==",
[
"get",
"planppname"
],
"Đất công nghiệp, kho tàng"
],
"#ca7af5",
[
"==",
[
"get",
"planppname"
],
"Đất công viên, cây xanh, TDTT"
],
"#06f908",
[
"==",
[
"get",
"planppname"
],
"Đất du lịch"
],
"#ff00ff",
[
"==",
[
"get",
"planppname"
],
"Đất hạ tầng kỹ thuật"
],
"#dec5fd",
[
"==",
[
"get",
"planppname"
],
"Đất lâm nghiệp"
],
"#b5db94",
[
"==",
[
"get",
"planppname"
],
"Đất nghĩa trang"
],
"#c7c7c7",
[
"==",
[
"get",
"planppname"
],
"Đất nông nghiệp"
],
"#e4ea80",
[
"==",
[
"get",
"planppname"
],
"Đất ở"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất nhóm nhà ở kết hợp thương mại dịch vụ hiện trạng"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất phát triển đơn vị ở mới, các khu vực chức năng cụ thể thuộc đơn vị ở sẽ được xác định trong quá trình lập quy hoạch chi tiết tỷ lệ 1/500"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất phát triển hỗn hợp (có chức năng ở)"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất nhóm nhà ở cao tầng xây dựng mới"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất nhóm nhà ở xây dựng mới"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất phát triển hỗn hợp cấp đô thị (có chức năng ở)"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất nhà ở sinh thái mật độ thấp"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất xây dựng công trình cao tầng phục vụ ở kết hợp"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất nhóm nhà ở hiện hữu chỉnh trang kết hợp việc kinh doanh dịch vụ du lịch"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất nhóm nhà ở kết hợp thương mại dịch vụ xây dựng mới"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất nhóm nhà ở hiện trạng, cải tạo chỉnh trang"
],
"#f7bf96",
[
"==",
[
"get",
"planppname"
],
"Đất thương mại, dịch vụ"
],
"#dfceb1",
[
"==",
[
"get",
"planppname"
],
"Đất tôn giáo, tín ngưỡng, di tích"
],
"#734c00",
[
"==",
[
"get",
"planppname"
],
"Đất trường học, nghiên cứu"
],
"#f5d671",
[
"==",
[
"get",
"planppname"
],
"Đất y tế"
],
"#c71302",
[
"==",
[
"get",
"planppname"
],
"Mặt nước"
],
"#bdebff",
[
"==",
[
"get",
"planppname"
],
"Đất giao thông"
],
"#9b9b9b",
[
"==",
[
"get",
"planppname"
],
"Đất chưa sử dụng"
],
"#66d39e",
[
"==",
[
"get",
"planppname"
],
"Đất công cộng"
],
"#f37177",
"#dfceb1"
]
}
},
{
"id": "QHXD_Pattern",
"type": "fill",
"source": "qhxd_vts",
"source-layer": "644",
"minzoom": 14,
"paint": {
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0,
17,
1
],
"fill-pattern": [
"case",
[
"==",
[
"get",
"planppname"
],
"Đất an ninh, quốc phòng"
],
"datquansu",
[
"==",
[
"get",
"planppname"
],
"Đất cơ quan"
],
"datcoquan",
[
"==",
[
"get",
"planppname"
],
"Đất công nghiệp, kho tàng"
],
"datcongnghiep",
[
"==",
[
"get",
"planppname"
],
"Đất công viên, cây xanh, TDTT"
],
"datcayxanh",
[
"==",
[
"get",
"planppname"
],
"Đất du lịch"
],
"datdulich",
[
"==",
[
"get",
"planppname"
],
"Đất hạ tầng kỹ thuật"
],
"dathtkt",
[
"==",
[
"get",
"planppname"
],
"Đất lâm nghiệp"
],
"datlamnghiep",
[
"==",
[
"get",
"planppname"
],
"Đất nghĩa trang"
],
"datnghiatrang",
[
"==",
[
"get",
"planppname"
],
"Đất nông nghiệp"
],
"datnn-hoamau",
[
"==",
[
"get",
"planppname"
],
"Đất ở"
],
"dato",
[
"==",
[
"get",
"planppname"
],
"Đất thương mại, dịch vụ"
],
"datkhac",
[
"==",
[
"get",
"planppname"
],
"Đất tôn giáo, tín ngưỡng, di tích"
],
"dattongiao",
[
"==",
[
"get",
"planppname"
],
"Đất trường học, nghiên cứu"
],
"dattruonghoc",
[
"==",
[
"get",
"planppname"
],
"Đất y tế"
],
"datyte",
[
"==",
[
"get",
"planppname"
],
"Mặt nước"
],
"matnuoc",
[
"==",
[
"get",
"planppname"
],
"Đất giao thông"
],
"datgiaothong",
[
"==",
[
"get",
"planppname"
],
"Đất chưa sử dụng"
],
"datchuasudung",
[
"==",
[
"get",
"planppname"
],
"Đất công cộng"
],
"datcongcong",
"datkhac"
]
}
},
{
"id": "QHXD_Line",
"type": "line",
"source": "qhxd_vts",
"source-layer": "644",
"minzoom": 15,
"maxzoom": 21,
"filter": [
"all"
],
"layout": {
"visibility": "visible"
},
"paint": {
"line-color": {
"stops": [
[
12,
"rgba(210, 224, 224, 1)"
],
[
13,
"rgba(223, 234, 233, 1)"
],
[
15,
"rgba(161, 173, 173, 1)"
],
[
18,
"#555"
]
]
},
"line-width": {
"stops": [
[
10,
0.3
],
[
12,
0.4
],
[
15,
0.8
],
[
18,
1.5
]
]
}
}
},
{
"id": "QHXD_Circle_QHC",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 15,
"maxzoom": 21,
"filter": [
"all",
[
"==",
"loaiQH",
"QHC"
],
[
"has",
"kyHieuOQH"
]
],
"layout": {
"symbol-z-order": "viewport-y",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "circle_qhc",
"icon-rotation-alignment": "viewport",
"icon-size": {
"stops": [
[
14,
0.15
],
[
15,
0.2
],
[
15.5,
0.3
],
[
16,
0.4
],
[
17,
0.6
],
[
18,
0.8
],
[
19,
1.2
],
[
20,
1.5
]
]
},
"icon-text-fit": "both",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"visibility": "visible"
}
},
{
"id": "QHXD_Circle_QHPK",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHPK"
]
],
"layout": {
"symbol-z-order": "viewport-y",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "circle_qhpk",
"icon-rotation-alignment": "viewport",
"icon-size": {
"stops": [
[
14,
0.15
],
[
15,
0.2
],
[
15.5,
0.4
],
[
16,
0.5
],
[
17,
0.7
],
[
18,
0.9
],
[
19,
1.3
],
[
20,
1.7
]
]
},
"icon-text-fit": "both",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"visibility": "visible"
}
},
{
"id": "QHXD_Circle_QHCT",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 18,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
"<",
"dienTich",
2
]
],
"layout": {
"symbol-z-order": "viewport-y",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "circle_qhct",
"icon-rotation-alignment": "viewport",
"icon-size": {
"stops": [
[
14,
0.1
],
[
15,
15
],
[
15.5,
0.2
],
[
16,
0.3
],
[
17,
0.4
],
[
18,
0.8
],
[
19,
1
],
[
20,
1.3
]
]
},
"icon-text-fit": "both",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"visibility": "visible"
}
},
{
"id": "QHXD_Circle_QHCT-2",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
">=",
"dienTich",
2
]
],
"layout": {
"symbol-z-order": "viewport-y",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "circle_qhct",
"icon-rotation-alignment": "viewport",
"icon-size": {
"stops": [
[
14,
0.15
],
[
15,
0.2
],
[
15.5,
0.25
],
[
16,
0.3
],
[
17,
0.5
],
[
18,
1.2
],
[
19,
1.5
],
[
20,
2
]
]
},
"icon-text-fit": "both",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"visibility": "visible"
}
},
{
"id": "QHXD_Lable_QHC_KyHieuO",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHC"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": {
"stops": [
[
14,
1
],
[
15,
2
],
[
16,
4
],
[
17,
6
],
[
18,
8
],
[
19,
12
],
[
20,
16
]
]
},
"text-field": "{kyHieuOQH}",
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 10,
"icon-size": 1,
"text-allow-overlap": true,
"text-ignore-placement": true,
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"symbol-avoid-edges": false,
"text-line-height": 1,
"text-transform": "none",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
-2
]
],
15,
[
"literal",
[
0,
-2
]
],
16,
[
"literal",
[
0,
-2
]
],
17,
[
"literal",
[
0,
-2
]
],
18,
[
"literal",
[
0,
-2
]
]
]
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHC_DienTich",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHC"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": {
"stops": [
[
14,
1
],
[
15,
2
],
[
16,
4
],
[
17,
6
],
[
18,
6
],
[
19,
12
],
[
20,
16
]
]
},
"text-field": [
"case",
[
"boolean",
[
"has",
"dienTich"
],
true
],
[
"concat",
[
"number-format",
[
"get",
"dienTich"
],
{
"locale": "vi-VN",
"min-fraction-digits": 1,
"max-fraction-digits": 2
}
],
" ha"
],
"-"
],
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
1.3
]
],
15,
[
"literal",
[
0,
1.3
]
],
16,
[
"literal",
[
0,
1.3
]
],
17,
[
"literal",
[
0,
1.3
]
],
18,
[
"literal",
[
0,
1.3
]
]
],
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 4,
"visibility": "visible",
"text-line-height": 1,
"symbol-z-order": "viewport-y",
"text-padding": 0,
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-justify": "auto"
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHPK_KyHieuO",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHPK"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
1,
15,
2,
16,
4,
17,
6,
18,
8,
19,
12,
20,
14
],
"text-field": "{kyHieuOQH}",
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 10,
"icon-size": 1,
"text-allow-overlap": true,
"text-ignore-placement": true,
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"symbol-avoid-edges": false,
"text-line-height": 1,
"text-transform": "none",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
-3
]
],
15,
[
"literal",
[
0,
-3
]
],
16,
[
"literal",
[
0,
-3
]
],
17,
[
"literal",
[
0,
-3
]
],
18,
[
"literal",
[
0,
-3
]
]
]
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHPK_DienTich",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHPK"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
1,
15,
2,
16,
4,
17,
6,
18,
8,
19,
12,
20,
14
],
"text-field": [
"case",
[
"boolean",
[
"has",
"dienTich"
],
true
],
[
"concat",
[
"number-format",
[
"get",
"dienTich"
],
{
"locale": "vi-VN",
"min-fraction-digits": 1,
"max-fraction-digits": 2
}
],
" ha"
],
"-"
],
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
-2.1,
-0.1
]
],
15,
[
"literal",
[
-2.1,
-0.3
]
],
16,
[
"literal",
[
-2.2,
-0.3
]
],
17,
[
"literal",
[
-2.3,
-0.3
]
],
18,
[
"literal",
[
-2.3,
-0.3
]
]
],
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 4,
"visibility": "visible",
"text-line-height": 1,
"symbol-z-order": "viewport-y",
"text-padding": 0,
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-justify": "auto"
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHPK_HeSoSDD",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHPK"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"heSoSDD"
],
true
],
[
"get",
"heSoSDD"
],
"-"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
1,
15,
2,
16,
4,
17,
6,
18,
8,
19,
12,
20,
14
],
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
2.1,
-0.1
]
],
15,
[
"literal",
[
2.1,
-0.3
]
],
16,
[
"literal",
[
2.3,
-0.3
]
],
17,
[
"literal",
[
2.3,
-0.3
]
],
18,
[
"literal",
[
2.3,
-0.3
]
]
],
"text-max-width": 30,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "QHXD_Lable_QHPK_MatDoXDtoiDa",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHPK"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"matDoXDToiDa"
],
true
],
[
"concat",
[
"get",
"matDoXDToiDa"
],
" %"
],
"-"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
1,
15,
2,
16,
4,
17,
6,
18,
8,
19,
12,
20,
14
],
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
-1.7,
2.6
]
],
15,
[
"literal",
[
-1.8,
2.6
]
],
16,
[
"literal",
[
-1.8,
2.6
]
],
17,
[
"literal",
[
-1.8,
2.6
]
],
18,
[
"literal",
[
-1.8,
2.6
]
]
],
"text-max-width": 10,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "QHXD_Lable_QHPK_TangCotDa",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHPK"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"tangCaoToiDa"
],
true
],
[
"concat",
[
"get",
"tangCaoToiDa"
],
" T"
],
"-"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
1,
15,
2,
16,
4,
17,
6,
18,
8,
19,
12,
20,
14
],
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
1.7,
2.6
]
],
15,
[
"literal",
[
1.8,
2.6
]
],
16,
[
"literal",
[
1.8,
2.6
]
],
17,
[
"literal",
[
1.8,
2.6
]
],
18,
[
"literal",
[
1.8,
2.6
]
]
],
"text-max-width": 30,
"visibility": "visible"
}
},
{
"id": "QHXD_Lable_QHCT_KyHieuO",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 18,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
"<",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.6,
15,
1.8,
16,
2,
17,
4,
18,
8,
19,
9,
20,
11
],
"text-field": "{kyHieuOQH}",
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 10,
"icon-size": 1,
"text-allow-overlap": true,
"text-ignore-placement": true,
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"symbol-avoid-edges": false,
"text-line-height": 1,
"text-transform": "none",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
-3.2
]
],
15,
[
"literal",
[
0,
-3.2
]
],
16,
[
"literal",
[
0,
-3.2
]
],
17,
[
"literal",
[
0,
-3.2
]
],
18,
[
"literal",
[
0,
-3.2
]
]
],
"visibility": "visible"
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT_CNSDD",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 18,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
"<",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"nhanTB"
],
true
],
[
"get",
"nhanTB"
],
"-"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.6,
15,
1.8,
16,
2,
17,
4,
18,
8,
19,
9,
20,
11
],
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
-1.6
]
],
15,
[
"literal",
[
0,
-1.6
]
],
16,
[
"literal",
[
0,
-1.6
]
],
17,
[
"literal",
[
0,
-1.6
]
],
18,
[
"literal",
[
0,
-1.6
]
]
],
"text-max-width": 30,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT_DienTich",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 18,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
"<",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.6,
15,
1.8,
16,
2,
17,
4,
18,
8,
19,
9,
20,
11
],
"text-field": [
"case",
[
"boolean",
[
"has",
"dienTich"
],
true
],
[
"concat",
[
"number-format",
[
"get",
"dienTich"
],
{
"locale": "vi-VN",
"min-fraction-digits": 1,
"max-fraction-digits": 2
}
],
" ha"
],
"-"
],
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
0
]
],
15,
[
"literal",
[
0,
0
]
],
16,
[
"literal",
[
0,
0
]
],
17,
[
"literal",
[
0,
0
]
],
18,
[
"literal",
[
0,
0
]
]
],
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 4,
"visibility": "visible",
"text-line-height": 1,
"symbol-z-order": "viewport-y",
"text-padding": 0,
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-justify": "auto"
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT_MatDoXDtoiDa",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 18,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
"<",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"matDoXDToiDa"
],
true
],
[
"concat",
[
"get",
"matDoXDToiDa"
],
" %"
],
"-"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.6,
15,
1.8,
16,
2,
17,
4,
18,
8,
19,
9,
20,
11
],
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
-2.4,
2
]
],
15,
[
"literal",
[
-2.4,
2
]
],
16,
[
"literal",
[
-2.4,
2
]
],
17,
[
"literal",
[
-2.4,
2
]
],
18,
[
"literal",
[
-2.4,
2
]
]
],
"text-max-width": 10,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT_TangCotDa",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 18,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
"<",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"tangCaoToiDa"
],
true
],
[
"concat",
[
"get",
"tangCaoToiDa"
],
" T"
],
"-"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.6,
15,
1.8,
16,
2,
17,
4,
18,
8,
19,
9,
20,
11
],
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
2.05
]
],
15,
[
"literal",
[
0,
2.05
]
],
16,
[
"literal",
[
0,
2.05
]
],
17,
[
"literal",
[
0,
2.05
]
],
18,
[
"literal",
[
0,
2.05
]
]
],
"text-max-width": 30,
"visibility": "visible"
}
},
{
"id": "QHXD_Lable_QHCT_HeSoSDD",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 18,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
"<",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"heSoSDD"
],
true
],
[
"get",
"heSoSDD"
],
"-"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.6,
15,
1.8,
16,
2,
17,
4,
18,
8,
19,
9,
20,
11
],
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
2.3,
2
]
],
15,
[
"literal",
[
2.3,
2
]
],
16,
[
"literal",
[
2.3,
2
]
],
17,
[
"literal",
[
2.3,
2
]
],
18,
[
"literal",
[
2.3,
2
]
]
],
"text-max-width": 2,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT2_KyHieuO",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 14,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
">=",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": {
"stops": [
[
14,
0.6
],
[
15,
1.8
],
[
16,
2
],
[
17,
4.8
],
[
18,
11
],
[
19,
14
],
[
20,
17
]
]
},
"text-field": "{kyHieuOQH}",
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 10,
"icon-size": 1,
"text-allow-overlap": true,
"text-ignore-placement": true,
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"symbol-avoid-edges": false,
"text-line-height": 1,
"text-transform": "none",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
-3.2
]
],
15,
[
"literal",
[
0,
-3.2
]
],
16,
[
"literal",
[
0,
-3.2
]
],
17,
[
"literal",
[
0,
-3.2
]
],
18,
[
"literal",
[
0,
-3.2
]
]
],
"visibility": "visible"
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT2_CNSDD",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
">=",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"nhanTB"
],
true
],
[
"get",
"nhanTB"
],
"-"
],
"text-size": {
"stops": [
[
14,
0.6
],
[
15,
1.8
],
[
16,
3
],
[
17,
5
],
[
18,
11
],
[
19,
14
],
[
20,
18
]
]
},
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
-1.6
]
],
15,
[
"literal",
[
0,
-1.6
]
],
16,
[
"literal",
[
0,
-1.6
]
],
17,
[
"literal",
[
0,
-1.6
]
],
18,
[
"literal",
[
0,
-1.6
]
]
],
"text-max-width": 30,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT2_DienTich",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
">=",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-size": {
"stops": [
[
14,
0.6
],
[
15,
1.8
],
[
16,
3
],
[
17,
5
],
[
18,
11
],
[
19,
14
],
[
20,
18
]
]
},
"text-field": [
"case",
[
"boolean",
[
"has",
"dienTich"
],
true
],
[
"concat",
[
"number-format",
[
"get",
"dienTich"
],
{
"locale": "vi-VN",
"min-fraction-digits": 1,
"max-fraction-digits": 2
}
],
" ha"
],
"-"
],
"text-rotation-alignment": "viewport",
"text-pitch-alignment": "viewport",
"icon-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
0
]
],
15,
[
"literal",
[
0,
0
]
],
16,
[
"literal",
[
0,
0
]
],
17,
[
"literal",
[
0,
0
]
],
18,
[
"literal",
[
0,
0
]
]
],
"text-optional": false,
"text-keep-upright": false,
"text-max-width": 4,
"visibility": "visible",
"text-line-height": 1,
"symbol-z-order": "viewport-y",
"text-padding": 0,
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-justify": "auto"
},
"paint": {
"text-translate-anchor": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT2_MatDoXDtoiDa",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
">=",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"matDoXDToiDa"
],
true
],
[
"concat",
[
"get",
"matDoXDToiDa"
],
" %"
],
"-"
],
"text-size": {
"stops": [
[
14,
0.6
],
[
15,
1.8
],
[
16,
3
],
[
17,
5
],
[
18,
11
],
[
19,
14
],
[
20,
18
]
]
},
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
-2.4,
2
]
],
15,
[
"literal",
[
-2.4,
2
]
],
16,
[
"literal",
[
-2.4,
2
]
],
17,
[
"literal",
[
-2.4,
2
]
],
18,
[
"literal",
[
-2.4,
2
]
]
],
"text-max-width": 10,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "QHXD_Lable_QHCT2_TangCotDa",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
">=",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"tangCaoToiDa"
],
true
],
[
"concat",
[
"get",
"tangCaoToiDa"
],
" T"
],
"-"
],
"text-size": {
"stops": [
[
14,
0.6
],
[
15,
1.8
],
[
16,
3
],
[
17,
5
],
[
18,
11
],
[
19,
14
],
[
20,
18
]
]
},
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
0,
2.05
]
],
15,
[
"literal",
[
0,
2.05
]
],
16,
[
"literal",
[
0,
2.05
]
],
17,
[
"literal",
[
0,
2.05
]
],
18,
[
"literal",
[
0,
2.05
]
]
],
"text-max-width": 30,
"visibility": "visible"
}
},
{
"id": "QHXD_Lable_QHCT2_HeSoSDD",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"has",
"kyHieuOQH"
],
[
"==",
"loaiQH",
"QHCT"
],
[
">=",
"dienTich",
2
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": [
"case",
[
"boolean",
[
"has",
"heSoSDD"
],
true
],
[
"get",
"heSoSDD"
],
"-"
],
"text-size": {
"stops": [
[
14,
0.6
],
[
15,
1.8
],
[
16,
3
],
[
17,
5
],
[
18,
11
],
[
19,
14
],
[
20,
18
]
]
},
"symbol-z-order": "viewport-y",
"symbol-placement": "point",
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"text-offset": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
[
"literal",
[
2.3,
2
]
],
15,
[
"literal",
[
2.3,
2
]
],
16,
[
"literal",
[
2.3,
2
]
],
17,
[
"literal",
[
2.3,
2
]
],
18,
[
"literal",
[
2.3,
2
]
]
],
"text-max-width": 2,
"visibility": "visible",
"icon-rotation-alignment": "viewport"
}
},
{
"id": "Lable_CNSDD_nothing",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 17,
"maxzoom": 21,
"filter": [
"all",
[
"!has",
"kyHieuOQH"
],
[
"!has",
"dienTich"
],
[
"!has",
"matDoXDToiDa"
],
[
"!has",
"tangCaoToiDa"
]
],
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": "{nhanTB}",
"text-size": {
"stops": [
[
12,
8
],
[
13,
9
],
[
15,
11
]
]
},
"text-allow-overlap": false,
"text-ignore-placement": false,
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"symbol-z-order": "viewport-y",
"text-padding": 60,
"text-justify": "center",
"text-transform": "none",
"text-optional": false,
"visibility": "visible",
"text-line-height": 1
},
"paint": {
"text-translate-anchor": "viewport",
"text-halo-width": 1
}
},
{
"id": "lable_mdsd_chitiet",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "645",
"minzoom": 12,
"maxzoom": 17,
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-field": "{chucNangSDD}",
"text-size": {
"stops": [
[
15,
8
],
[
17,
12
]
]
},
"text-allow-overlap": false,
"text-ignore-placement": false,
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"symbol-z-order": "viewport-y",
"text-max-width": 10,
"text-justify": "auto",
"text-transform": "none",
"text-optional": false,
"visibility": "visible"
},
"filter": [
"in",
"loaiQH",
"QHC",
"QHPK"
],
"paint": {
"text-translate-anchor": "viewport",
"text-color": "rgba(0, 0, 0, 1)",
"text-halo-color": "#fff",
"text-halo-width": 1,
"text-opacity": {
"stops": [
[
13,
0
],
[
15,
1
]
]
}
}
},
{
"id": "lable_mdsd_chitiet_overlap",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "644",
"minzoom": 18,
"maxzoom": 19,
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-field": "{chucNangSDD}",
"text-size": {
"stops": [
[
14,
8
],
[
16,
12
]
]
},
"text-allow-overlap": true,
"text-ignore-placement": false,
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"symbol-z-order": "viewport-y",
"text-max-width": 10,
"text-justify": "auto",
"text-transform": "none",
"text-optional": false,
"visibility": "visible"
},
"paint": {
"text-translate-anchor": "viewport",
"text-color": "rgba(0, 0, 0, 1)",
"text-halo-color": "#fff",
"text-halo-width": 1,
"text-opacity": {
"stops": [
[
13,
0
],
[
15,
1
]
]
}
}
},
{
"id": "LoDat_line",
"type": "line",
"source": "qhxd_vts",
"source-layer": "647",
"minzoom": 18,
"filter": [
"all"
],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#f00c32",
"line-translate-anchor": "viewport",
"line-opacity": 1
}
},
{
"id": "LoDat_Nhan",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "647",
"minzoom": 18,
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": "{kyHieuLoDat}",
"text-size": 12,
"text-padding": 40,
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"symbol-z-order": "auto",
"symbol-avoid-edges": false,
"symbol-placement": "point",
"text-allow-overlap": false,
"text-keep-upright": false,
"icon-image": "nhandiadanh",
"icon-size": 1.2,
"icon-text-fit": "both",
"text-ignore-placement": true,
"visibility": "visible"
},
"paint": {
"icon-opacity": 0.6,
"text-color": "#e60b25"
}
},
{
"id": "diaPhanHuyen_label",
"type": "symbol",
"source": "qhxd_vts",
"source-layer": "642",
"minzoom": 9,
"maxzoom": 12,
"layout": {
"text-font": [
"Noto Sans Bold"
],
"text-field": "{tenHuyen}",
"text-size": 12,
"text-padding": 40,
"text-pitch-alignment": "viewport",
"text-rotation-alignment": "viewport",
"symbol-z-order": "auto",
"symbol-avoid-edges": false,
"symbol-placement": "point",
"text-allow-overlap": false,
"text-keep-upright": false,
"icon-image": "nhandiadanh",
"icon-size": 1.2,
"icon-text-fit": "both",
"text-ignore-placement": true,
"visibility": "visible"
},
"paint": {
"icon-opacity": 0.6,
"text-color": "rgba(53, 49, 3, 1)"
}
}
],
"id": "QHXDQuangBinh"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment