{
const projectPoint = function(x, y){
var point = map.latLngToLayerPoint(new L.LatLng(y, x))
this.stream.point(point.x, point.y)
}
const transform = d3.geoTransform({point: projectPoint})
const geoPath = d3.geoPath().projection(transform)
const featureElement1 = svg.selectAll("path.pak")
.data(pak_geojson.features)
.enter()
.append("path")
.attr("stroke", "gray")
.attr("class", "pak")
.attr("fill", d3.interpolateRdPu(0.25))
.attr("fill-opacity", 0.6)
const featureElement2 = svg.selectAll("path.china")
.data(china_geojson.features)
.enter()
.append("path")
.attr("class", "china")
.attr("stroke", "gray")
.attr("fill", d3.interpolateRdPu(1))
.attr("fill-opacity", 0.6)
const featureElement3 = svg.selectAll("path.nepal")
.data(nepal_geojson.features)
.enter()
.append("path")
.attr("class", "nepal")
.attr("stroke", "gray")
.attr("fill", d3.interpolateRdPu(0.5))
.attr("fill-opacity", 0.6)
const textEle1 = svg.append("text")
.attr("x", 1200/3)
.attr("y", 100)
.attr("color", "black")
.attr("text-anchor", "middle")
.attr("font-size", "28px")
.attr("font-weight", "bold")
.attr("font-family", "consolas")
.text("Disputed Territories of");
const textEle2 = svg.append("text")
.attr("x", 1200/3)
.attr("y", 135)
.attr("color", "black")
.attr("text-anchor", "middle")
.attr("font-size", "28px")
.attr("font-weight", "bold")
.attr("font-family", "consolas")
.text("The Indian Subcontinent");
const update1 = () => {
featureElement1.attr("d", geoPath)
featureElement2.attr("d", geoPath)
featureElement3.attr("d", geoPath)
textEle1.attr("d", geoPath)
textEle2.attr("d", geoPath)
}
update1()
map.on("moveend", update1)
}