svgToLatLng static method

(double, double) svgToLatLng(
  1. MapType type,
  2. double x,
  3. double y
)

Convert SVG coordinates to lat/lng.

Implementation

static (double lat, double lng) svgToLatLng(
  MapType type,
  double x,
  double y,
) {
  return switch (type) {
    MapType.world => _worldSvgToLatLng(x, y),
    MapType.usa => _usaSvgToLatLng(x, y),
  };
}