fromMap static method
- dynamic bBoxMap
Implementation
static BBox fromMap(dynamic bBoxMap) {
final northEast = bBoxMap["_northEast"] as dynamic;
final latNorth = northEast["lat"] as double;
final lonEast = northEast["lng"] as double;
final southWest = bBoxMap["_southWest"] as dynamic;
final latSouth = southWest["lat"] as double;
final lonWest = southWest["lng"] as double;
return BBox.named(lng1: lonWest, lat1: latSouth, lng2: lonEast, lat2: latNorth);
}