Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
MapMultiEngine
Commits
6b587c56
Commit
6b587c56
authored
Aug 27, 2025
by
p x
Browse files
实现UML设计
parent
f8483b51
Changes
29
Hide whitespace changes
Inline
Side-by-side
maplibrary/src/main/java/com/sd/maplibrary/factorys/MineBasic.kt
0 → 100644
View file @
6b587c56
package
com.sd.maplibrary.factorys
import
com.sd.maplibrary.bean.MSLatLng
import
com.sd.maplibrary.bean.WayPoi
import
com.sd.maplibrary.core.MapReadyView
import
com.sd.maplibrary.core.basic.mine.MineRoutePlans
import
com.sd.maplibrary.core.basic.mine.MineToggleLayers
/**
* 四维基础地图实现
*/
class
MineBasic
:
IBasicMap
{
override
fun
toggleLayers
(
mapReadView
:
MapReadyView
?,
type
:
Int
)
{
MineToggleLayers
.
toggleLayers
(
mapReadView
,
type
)
}
override
fun
drivingPathPlanning
(
starPoint
:
MSLatLng
,
startName
:
String
,
endPoint
:
MSLatLng
,
endName
:
String
,
ways
:
List
<
WayPoi
>,
mapReadView
:
MapReadyView
?
)
{
MineRoutePlans
.
drivingPathPlanning
(
starPoint
,
startName
,
endPoint
,
endName
,
ways
,
mapReadView
)
}
companion
object
{
val
mineBasic
:
MineBasic
by
lazy
{
MineBasic
()
}
}
}
\ No newline at end of file
maplibrary/src/main/java/com/sd/maplibrary/fragments/ForeMapFragment.kt
View file @
6b587c56
...
@@ -46,14 +46,14 @@ class ForeMapFragment : Fragment() {
...
@@ -46,14 +46,14 @@ class ForeMapFragment : Fragment() {
//跳转到搜索界面
//跳转到搜索界面
private
var
searchAct
=
/*
private var searchAct =
registerForActivityResult(ActivityResultContracts.StartActivityForResult(), { result ->
registerForActivityResult(ActivityResultContracts.StartActivityForResult(), { result ->
if (result.resultCode == Activity.RESULT_OK) {
if (result.resultCode == Activity.RESULT_OK) {
val intent = result.data
val intent = result.data
val returnedData = intent?.getStringExtra("123")
val returnedData = intent?.getStringExtra("123")
Log.d("----", "----Returned data: $returnedData")
Log.d("----", "----Returned data: $returnedData")
}
}
})
})
*/
private
var
mMineMap
:
MineMap
?
=
null
private
var
mMineMap
:
MineMap
?
=
null
...
...
maplibrary/src/main/java/com/sd/maplibrary/intfaces/AMapCore.kt
deleted
100644 → 0
View file @
f8483b51
package
com.sd.maplibrary.intfaces
/***高德实现类***/
class
AMapCore
:
MapFuncs
{
companion
object
{
val
aMapCore
:
AMapCore
by
lazy
{
AMapCore
()
}
}
}
\ No newline at end of file
maplibrary/src/main/java/com/sd/maplibrary/intfaces/MapFuncs.kt
deleted
100644 → 0
View file @
f8483b51
package
com.sd.maplibrary.intfaces
/****Map 业务接口**/
interface
MapFuncs
{
}
\ No newline at end of file
maplibrary/src/main/java/com/sd/maplibrary/intfaces/MineCore.kt
deleted
100644 → 0
View file @
f8483b51
package
com.sd.maplibrary.intfaces
/****四维实现类***/
class
MineCore
:
MapFuncs
{
companion
object
{
val
mineCore
:
MineCore
by
lazy
{
MineCore
()
}
}
}
\ No newline at end of file
maplibrary/src/main/java/com/sd/maplibrary/ui/ForeMapView.kt
View file @
6b587c56
...
@@ -10,7 +10,7 @@ import com.minedata.minenavi.mapdal.InitializationException
...
@@ -10,7 +10,7 @@ import com.minedata.minenavi.mapdal.InitializationException
import
javax.microedition.khronos.egl.EGLConfig
import
javax.microedition.khronos.egl.EGLConfig
import
javax.microedition.khronos.opengles.GL10
import
javax.microedition.khronos.opengles.GL10
/**
*
四维
地图
**/
/**四维
在线地图容器
**/
class
ForeMapView
:
MapView
{
class
ForeMapView
:
MapView
{
constructor
(
context
:
Context
?)
:
super
(
context
)
constructor
(
context
:
Context
?)
:
super
(
context
)
...
...
maplibrary/src/main/java/com/sd/maplibrary/ui/MapMultiView.kt
View file @
6b587c56
...
@@ -16,7 +16,7 @@ import com.sd.maplibrary.databinding.MultiViewBinding
...
@@ -16,7 +16,7 @@ import com.sd.maplibrary.databinding.MultiViewBinding
import
com.sd.maplibrary.fragments.AMapFragment
import
com.sd.maplibrary.fragments.AMapFragment
import
com.sd.maplibrary.fragments.ForeMapFragment
import
com.sd.maplibrary.fragments.ForeMapFragment
/**多底图容器**/
class
MapMultiView
:
LinearLayout
{
class
MapMultiView
:
LinearLayout
{
constructor
(
context
:
Context
?)
:
super
(
context
)
{
constructor
(
context
:
Context
?)
:
super
(
context
)
{
...
@@ -57,8 +57,8 @@ class MapMultiView : LinearLayout {
...
@@ -57,8 +57,8 @@ class MapMultiView : LinearLayout {
// }
// }
enmuValue
=
MSDKInitializer
.
getMapType
().
ordinal
enmuValue
=
MSDKInitializer
.
getMapType
().
ordinal
println
(
"------------MapMultiView = ${MSDKInitializer.getMapType().ordinal}"
)
//
println("------------MapMultiView = ${MSDKInitializer.getMapType().ordinal}")
println
(
"------------enmuValue = $enmuValue"
)
//
println("------------enmuValue = $enmuValue")
binding
=
MultiViewBinding
.
inflate
(
LayoutInflater
.
from
(
context
))
binding
=
MultiViewBinding
.
inflate
(
LayoutInflater
.
from
(
context
))
addView
(
binding
.
root
)
addView
(
binding
.
root
)
loadMapFrament
()
loadMapFrament
()
...
@@ -79,7 +79,7 @@ class MapMultiView : LinearLayout {
...
@@ -79,7 +79,7 @@ class MapMultiView : LinearLayout {
}
}
/**
**
地图加载监听回调*/
/**地图加载监听回调*/
fun
addMapRenderCallback
(
onMapReadyLis
:
OnMapReadyLis
)
{
fun
addMapRenderCallback
(
onMapReadyLis
:
OnMapReadyLis
)
{
if
(
enmuValue
==
0
)
{
if
(
enmuValue
==
0
)
{
foreMapFragment
.
addMapRenderCallback
(
onMapReadyLis
)
foreMapFragment
.
addMapRenderCallback
(
onMapReadyLis
)
...
@@ -88,7 +88,7 @@ class MapMultiView : LinearLayout {
...
@@ -88,7 +88,7 @@ class MapMultiView : LinearLayout {
}
}
}
}
/**
**
获取 mMineMap 或者 aMap ***/
/**获取 mMineMap 或者 aMap ***/
fun
getAnyMap
():
Any
?
{
fun
getAnyMap
():
Any
?
{
if
(
enmuValue
==
0
)
{
if
(
enmuValue
==
0
)
{
return
foreMapFragment
.
getAnyMap
()
as
MineMap
return
foreMapFragment
.
getAnyMap
()
as
MineMap
...
...
maplibrary/src/main/java/com/sd/maplibrary/utils/DisplayUtil.kt
View file @
6b587c56
...
@@ -13,8 +13,7 @@ import android.view.View.MeasureSpec
...
@@ -13,8 +13,7 @@ import android.view.View.MeasureSpec
/**
/**
*author:pc-20171125
* 显示工具
*data:2019/11/7 16:08
*/
*/
object
DisplayUtil
{
object
DisplayUtil
{
fun
getDpi
():
Int
{
fun
getDpi
():
Int
{
...
...
maplibrary/src/main/java/com/sd/maplibrary/utils/FileIoUtils.kt
View file @
6b587c56
package
com.sd.
shupathwebview
.utils
package
com.sd.
maplibrary
.utils
import
android.content.ContentValues
import
android.content.ContentValues
import
android.content.Context
import
android.content.Context
...
...
Prev
1
2
Next
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