Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sailassist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
54
Merge Requests
54
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gr-ssv
Sailassist
Commits
256a5573
Commit
256a5573
authored
Mar 12, 2024
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自船を中央に表示
parent
becc590d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
2 deletions
+18
-2
HttpRequestType.swift
Seilassist/Sailassist/Http/HttpRequestType.swift
+2
-2
LoginView.swift
Seilassist/Sailassist/Login/LoginView.swift
+2
-0
MapRepresentable.swift
Seilassist/Sailassist/Map/MapRepresentable.swift
+8
-0
SharingData.swift
Seilassist/Sailassist/SharingData/SharingData.swift
+3
-0
MainTabView.swift
Seilassist/Sailassist/Tab/MainTabView.swift
+3
-0
No files found.
Seilassist/Sailassist/Http/HttpRequestType.swift
View file @
256a5573
...
...
@@ -54,7 +54,7 @@ enum HttpRequestType : String {
case
storage
=
"https://tacmiquaritycheckstorage.z31.web.core.windows.net/"
case
GetManualUrl
=
"https://ssv-qc-web.azurewebsites.net/api/constantdata/manual?filter=SailAssist"
case
Information
=
"https://ssv-qc-web.azurewebsites.net/information/4"
case
InfVersion
=
"https://ssv-qc-web.azurewebsites.net/information/4"
//
case InfVersion = "https://ssv-qc-web.azurewebsites.net/information/4"
case
ContactPage
=
"https://www.jmarinecloud.com/eng/contact.php?type=ssv_mobile"
case
ApachLicens
=
"https://raw.githubusercontent.com/Azure/azure-notificationhubs-ios/main/LICENSE"
case
AppStore
=
"https://apps.apple.com/jp/app/sail-assist/id6473762428"
...
...
@@ -81,7 +81,7 @@ enum HttpRequestType : String {
case
storage
=
"https://tacmistorage.z31.web.core.windows.net/"
case
GetManualUrl
=
"https://ssv.jmarinecloud.com/api/constantdata/manual?filter=SailAssist"
case
Information
=
"https://ssv.jmarinecloud.com/information/4"
case
InfVersion
=
"https://ssv.jmarinecloud.com/information/4"
//
case InfVersion = "https://ssv.jmarinecloud.com/information/4"
case
ContactPage
=
"https://www.jmarinecloud.com/eng/contact.php?type=ssv_mobile"
case
ApachLicens
=
"https://raw.githubusercontent.com/Azure/azure-notificationhubs-ios/main/LICENSE"
case
AppStore
=
"https://apps.apple.com/jp/app/sail-assist/id6473762428"
...
...
Seilassist/Sailassist/Login/LoginView.swift
View file @
256a5573
...
...
@@ -187,6 +187,7 @@ struct LoginView: View {
let
resjson
=
serverSession
.
fromJSON
(
resultData
:
resultData
,
resltType
:
ResLogin
.
self
)
if
let
res
=
resjson
{
SharingData
.
my
.
id
=
res
.
id
SharingData
.
my
.
shipId
=
res
.
shipId
SharingData
.
my
.
shipName
=
res
.
shipName
SharingData
.
my
.
imo
=
res
.
imo
SharingData
.
my
.
mmsi
=
res
.
mmsi
...
...
@@ -247,6 +248,7 @@ struct LoginView: View {
let
resjson
=
serverSession
.
fromJSON
(
resultData
:
resultData
,
resltType
:
ResLogin
.
self
)
if
let
res
=
resjson
{
SharingData
.
my
.
id
=
res
.
id
SharingData
.
my
.
shipId
=
res
.
shipId
SharingData
.
my
.
shipName
=
res
.
shipName
SharingData
.
my
.
imo
=
res
.
imo
SharingData
.
my
.
mmsi
=
res
.
mmsi
...
...
Seilassist/Sailassist/Map/MapRepresentable.swift
View file @
256a5573
...
...
@@ -46,6 +46,11 @@ struct MapRepresentable: UIViewControllerRepresentable{
}
}
//自船を画面中央に表示
if
location
.
focusOwnShip
{
mapVC
.
updateCamera
(
location
:
location
.
location
,
zoomlevel
:
nil
)
}
if
let
mylocation
=
location
.
location
{
mapVC
.
updateOwnShip
(
location
:
mylocation
,
bearing
:
location
.
heading
)
...
...
@@ -284,6 +289,9 @@ class MapViewController : UIViewController{
if
SharingData
.
pushHistory
.
focusPushHistory
!=
nil
{
SharingData
.
pushHistory
.
focusPushHistory
=
nil
}
if
SharingData
.
location
.
focusOwnShip
{
SharingData
.
location
.
focusOwnShip
=
false
}
}
///Ecaの線3本
...
...
Seilassist/Sailassist/SharingData/SharingData.swift
View file @
256a5573
...
...
@@ -12,6 +12,7 @@ class SharingData{
static
var
my
=
My
()
class
My
:
ObservableObject
{
@Published
var
id
:
Int
=
0
@Published
var
shipId
:
Int
=
0
@Published
var
shipName
:
String
=
""
@Published
var
imo
:
Int
=
0
@Published
var
mmsi
:
Int
=
0
...
...
@@ -36,6 +37,8 @@ class SharingData{
@Published
var
heading
:
Double
=
0.0
@Published
var
dataTime
:
String
=
""
//2023-11-02T05:25:49.4362123Z
@Published
var
focusOwnShip
:
Bool
=
false
func
setLocation
(){
if
Preferences
.
LocationType
==
0
{
self
.
location
=
self
.
gps
...
...
Seilassist/Sailassist/Tab/MainTabView.swift
View file @
256a5573
...
...
@@ -30,6 +30,7 @@ struct MainTabView: View {
appearance
.
backgroundColor
=
.
clear
UITabBar
.
appearance
()
.
scrollEdgeAppearance
=
appearance
UITabBar
.
appearance
()
.
standardAppearance
=
appearance
SharingData
.
location
.
focusOwnShip
=
true
// EcaCoordinatesTable().setEcaData()
}
...
...
@@ -103,6 +104,7 @@ struct CustomTabBar: View {
@State
var
isLocationAlert
=
false
@Environment(\.openURL)
var
openURL
@ObservedObject
var
my
=
SharingData
.
my
@ObservedObject
var
location
=
SharingData
.
location
var
body
:
some
View
{
VStack
(
spacing
:
0
){
...
...
@@ -114,6 +116,7 @@ struct CustomTabBar: View {
selectedTabModel
.
activeTab
=
tab
if
tab
==
.
task
{
selectedTabModel
.
isPoppver
.
toggle
()
location
.
focusOwnShip
=
true
}
else
{
selectedTabModel
.
isPoppver
=
false
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment