Main mapa class, d3 ("d3@5", "d3-geo-projection@2", "d3-geo-polygon", "d3-geo-scale-bar", "d3-array"), turf, geojsonrewind, utility functions which format data for mapa: getCities (x number of cities sorted by population, takes an iso, num), getCapitol, getOSM (deprecated), isoQ "iso Query" swap between (iso2, iso3, name)
Uploaded Google Fonts, for use with geofont
(Converts font glyphs into GeoJSON polygons for display on maps.
* Supports multiple rendering modes: point-based, path-following, polygon fills,
* great circles, scattered distributions, and radial layouts.)
TextGeometry is geofont, renderLabels is a helper function for managing different font styles, takes a label collection and a font name to geoFont(fontName).
myCustomItalicsLabels = renderLabels(
customItalicLabels,
"CormorantGaramond-MediumItalic"
)
returns Object {type: "FeatureCollection", features: Array(114)}
https://flagicons.lipis.dev/
{
name: " ",
latlng: "35.21,52.37",
type: "custom",
dir: "E",
customSymbol: await flagSvg(flagLink.ir),
symbolWidth: 20 * scale,
symbolHeight: 20 * scale,
rotate: 15,
skewX: 10
},
used in points layer, where lat lng is the anchor point of the image