OpenWeatherMapClient class

Map client that uses weather data from the Open Weather service.

Inheritance

Constructors

OpenWeatherMapClient({required String userAgent, required String mapUrlTemplate, required String darkMapUrlTemplate, required String weatherMapUrlHost, required String weatherMapUrlPath, required String appId, required AnalyticsLogger analytics})
const

Properties

analytics → AnalyticsLogger
final
appId String
final
darkMapUrlTemplate String
final
hashCode int
The hash code for this object.
no setterinherited
mapUrlTemplate String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent String
Should return a useable user agent for map tile requests
final
weatherMapUrlHost String
Base url host for the Open Weather maps service
final
weatherMapUrlPath String
Url path for the Open Weather maps service
final

Methods

getMapUrlTemplate(Brightness brightness) String
Should return a map url template
override
getWeatherLayerUrlTemplate({required String layer, double opacity = 0.8, Map<double, Color> palette = const {}}) String
Should return the weather layer url template.
override
logMapTileLoad({required FleetMapLayer layer, required num x, required num y, required num z}) Future<void>
Should log the map tile load event
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited