I am trying to create the layer of the only country that is clicked earlier but without success. I managed to highlight it, but it shows me the highlighted country but also the rest of the world that I don't need. Where can I specify the coordinates of the country in question, which I find in the geojson, to create a map layer of only that country whose coordinates I load?
var tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
noWrap: true,
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map2);
I create that those zxy are to be changed with my coordinates, but the geojson has not only lat and long but an array of coordinates that forms the contours and borders of the country. How to integrate that array?