MapViewConfiguration constructor
MapViewConfiguration({
- String? situmUser,
- required String situmApiKey,
- String? buildingIdentifier,
- String? remoteIdentifier,
- String? viewerDomain,
- String apiDomain = "dashboard.situm.com",
- TextDirection directionality = TextDirection.ltr,
- bool enableDebugging = false,
- bool? lockCameraToBuilding,
- bool? persistUnderlyingWidget = false,
- bool displayWithHybridComposition = true,
- String? language,
The MapView settings. Required fields are your Situm user and API key, but also a buildingIdentifier or remoteIdentifier.
Implementation
MapViewConfiguration({
this.situmUser,
required this.situmApiKey,
this.buildingIdentifier,
this.remoteIdentifier,
String? viewerDomain,
this.apiDomain = "dashboard.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";
}
}