getCoordinates static method
Get coordinates for a location (uses pre-calculated if available).
Implementation
static (double x, double y) getCoordinates(
MapType type,
String? id,
double lat,
double lng,
) {
if (id != null) {
final coords = type == MapType.world
? worldCityCoords[id]
: usaCityCoords[id];
if (coords != null) return coords;
}
return latLngToSvg(type, lat, lng);
}