MapViewConfiguration constructor

MapViewConfiguration({
  1. String? situmUser,
  2. required String situmApiKey,
  3. String? buildingIdentifier,
  4. @Deprecated('Use profile instead') String? remoteIdentifier,
  5. String? profile,
  6. String? viewerDomain,
  7. String apiDomain = "api.situm.com",
  8. TextDirection directionality = TextDirection.ltr,
  9. bool enableDebugging = false,
  10. bool? lockCameraToBuilding,
  11. bool? persistUnderlyingWidget = false,
  12. bool displayWithHybridComposition = true,
  13. String? language,
})

The MapView settings. Required fields are your Situm user and API key, but also a buildingIdentifier or profile.

Implementation

MapViewConfiguration({
  this.situmUser,
  required this.situmApiKey,
  this.buildingIdentifier,
  @Deprecated('Use profile instead') this.remoteIdentifier,
  this.profile,
  String? viewerDomain,
  this.apiDomain = "api.situm.com",
  this.directionality = TextDirection.ltr,
  this.enableDebugging = false,
  this.lockCameraToBuilding,
  this.persistUnderlyingWidget = false,
  this.displayWithHybridComposition = true,
  this.language,
}) {
  if (viewerDomain != null) {
    if (!viewerDomain.startsWith("https://") &&
        !viewerDomain.startsWith("http://")) {
      viewerDomain = "https://$viewerDomain";
    }
    if (viewerDomain.endsWith("/")) {
      viewerDomain = viewerDomain.substring(0, viewerDomain.length - 1);
    }
    this.viewerDomain = viewerDomain;
  } else {
    this.viewerDomain = "https://map-viewer.situm.com";
  }
}