mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:11:45 +00:00
Set map tiler URL from well known if available (#5633)
This commit is contained in:
+2
-2
@@ -66,7 +66,7 @@ struct LiveLocationRoomTimelineView: View {
|
||||
}
|
||||
}
|
||||
.onTapGesture {
|
||||
guard context.viewState.mapTilerConfiguration.isEnabled,
|
||||
guard context.viewState.mapTilerSettings.isEnabled,
|
||||
timelineItem.content.lastGeoURI != nil,
|
||||
isLive else {
|
||||
return
|
||||
@@ -95,7 +95,7 @@ struct LiveLocationRoomTimelineView: View {
|
||||
private var liveContent: some View {
|
||||
if let geoURI = timelineItem.content.lastGeoURI {
|
||||
MapLibreStaticMapView(geoURI: geoURI,
|
||||
mapURLBuilder: context.viewState.mapTilerConfiguration,
|
||||
mapURLBuilder: context.viewState.mapTilerSettings,
|
||||
attributionPlacement: .topLeft,
|
||||
mapSize: .init(width: mapAspectRatio * mapMaxHeight, height: mapMaxHeight)) {
|
||||
LocationMarkerView(kind: .liveUser(.init(sender: timelineItem.sender)),
|
||||
|
||||
Reference in New Issue
Block a user