icon property
Icon for this map source.
Implementation
IconData get icon {
switch (this) {
case MapSource.openStreetMap:
case MapSource.cartoVoyager:
case MapSource.esriWorldStreetMap:
case MapSource.cyclOSM:
case MapSource.cartoPositron:
return Icons.map;
case MapSource.cartoDarkMatter:
return Icons.dark_mode;
case MapSource.esriWorldImagery:
return Icons.satellite_alt;
case MapSource.esriWorldTopo:
case MapSource.openTopoMap:
return Icons.terrain;
}
}