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. bool useJPGImageForVPS = true,
  8. int jpgImageCompressionQuality = 70,
  9. bool convertVPSImagesToGrayScale = true,
  10. int conveyingDetectorDuration = 3,
  11. double elevatorBufferRadius = 5,
  12. double linearConveyingBufferOffset = 2,
  13. 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.useJPGImageForVPS = true,
    this.jpgImageCompressionQuality = 70,
    this.convertVPSImagesToGrayScale = true,
    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/";
  }
}