MapOptions constructor

MapOptions({
  1. required int mapID,
  2. required String token,
  3. required Environment environment,
  4. LocationSource locationSource = LocationSource.GPS,
  5. bool offlineMode = false,
  6. String? offlineZipFileName = "",
  7. String rasterZipFileName = "",
  8. bool useJPGImageForVPS = true,
  9. int jpgImageCompressionQuality = 70,
  10. bool convertVPSImagesToGrayScale = false,
  11. int conveyingDetectorDuration = 3,
  12. double elevatorBufferRadius = 5,
  13. double linearConveyingBufferOffset = 2,
  14. VisualDebuggerConfig visualDebuggerConfig = VisualDebuggerConfig.disabled,
})

Implementation

MapOptions(
    {required this.mapID,
    required this.token,
    required this.environment,
    this.locationSource = LocationSource.GPS,
    this.offlineMode = false,
    this.offlineZipFileName = "",
    this.rasterZipFileName = "",
    this.useJPGImageForVPS = true,
    this.jpgImageCompressionQuality = 70,
    this.convertVPSImagesToGrayScale = false,
    this.conveyingDetectorDuration = 3,
    this.elevatorBufferRadius = 5,
    this.linearConveyingBufferOffset = 2,
    this.visualDebuggerConfig = VisualDebuggerConfig.disabled}) {
  if (environment == Environment.DEV) {
    baseURL = "https://apidev.maaap.it/";
  } else if (environment == Environment.PROD) {
    baseURL = "https://api.getwemap.com/";
  }
}