Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-amap3d
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
0
Merge Requests
0
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
放牛的园子
react-native-amap3d
Commits
edc68689
Commit
edc68689
authored
Jan 25, 2018
by
7c00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正拼写错误
parent
6971c62f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
AMapView.kt
...d/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapView.kt
+4
-4
LocationStyle.h
ios/AMap3D/LocationStyle.h
+3
-2
RCTConvert+AMap3D.m
ios/AMap3D/RCTConvert+AMap3D.m
+2
-2
AMapView.m
ios/AMap3D/maps/AMapView.m
+2
-2
No files found.
android/src/main/java/cn/qiuxiang/react/amap3d/maps/AMapView.kt
View file @
edc68689
...
@@ -228,12 +228,12 @@ class AMapView(context: Context) : TextureMapView(context) {
...
@@ -228,12 +228,12 @@ class AMapView(context: Context) : TextureMapView(context) {
locationStyle
.
radiusFillColor
(
style
.
getInt
(
"fillColor"
))
locationStyle
.
radiusFillColor
(
style
.
getInt
(
"fillColor"
))
}
}
if
(
style
.
hasKey
(
"st
ock
Color"
))
{
if
(
style
.
hasKey
(
"st
rocke
Color"
))
{
locationStyle
.
strokeColor
(
style
.
getInt
(
"st
ock
Color"
))
locationStyle
.
strokeColor
(
style
.
getInt
(
"st
rocke
Color"
))
}
}
if
(
style
.
hasKey
(
"st
ock
Width"
))
{
if
(
style
.
hasKey
(
"st
rocke
Width"
))
{
locationStyle
.
strokeWidth
(
style
.
getDouble
(
"st
ock
Width"
).
toFloat
())
locationStyle
.
strokeWidth
(
style
.
getDouble
(
"st
rocke
Width"
).
toFloat
())
}
}
if
(
style
.
hasKey
(
"image"
))
{
if
(
style
.
hasKey
(
"image"
))
{
...
...
ios/AMap3D/LocationStyle.h
View file @
edc68689
...
@@ -3,6 +3,6 @@
...
@@ -3,6 +3,6 @@
@interface
LocationStyle
:
NSObject
@interface
LocationStyle
:
NSObject
@property
(
nonatomic
,
strong
)
UIImage
*
image
;
@property
(
nonatomic
,
strong
)
UIImage
*
image
;
@property
(
nonatomic
,
strong
)
UIColor
*
fillColor
;
@property
(
nonatomic
,
strong
)
UIColor
*
fillColor
;
@property
(
nonatomic
,
strong
)
UIColor
*
stokeColor
;
@property
(
nonatomic
,
strong
)
UIColor
*
st
r
okeColor
;
@property
(
nonatomic
,
assign
)
CGFloat
stokeWidth
;
@property
(
nonatomic
,
assign
)
CGFloat
st
r
okeWidth
;
@end
@end
\ No newline at end of file
ios/AMap3D/RCTConvert+AMap3D.m
View file @
edc68689
...
@@ -28,8 +28,8 @@ RCT_ENUM_CONVERTER(MAPinAnnotationColor, (@{
...
@@ -28,8 +28,8 @@ RCT_ENUM_CONVERTER(MAPinAnnotationColor, (@{
+
(
LocationStyle
*
)
LocationStyle
:
(
id
)
json
{
+
(
LocationStyle
*
)
LocationStyle
:
(
id
)
json
{
LocationStyle
*
locationStyle
=
[
LocationStyle
new
];
LocationStyle
*
locationStyle
=
[
LocationStyle
new
];
locationStyle
.
fillColor
=
[
self
UIColor
:
json
[
@"fillColor"
]];
locationStyle
.
fillColor
=
[
self
UIColor
:
json
[
@"fillColor"
]];
locationStyle
.
st
okeColor
=
[
self
UIColor
:
json
[
@"st
okeColor"
]];
locationStyle
.
st
rokeColor
=
[
self
UIColor
:
json
[
@"str
okeColor"
]];
locationStyle
.
st
okeWidth
=
[
self
CGFloat
:
json
[
@"st
okeWidth"
]];
locationStyle
.
st
rokeWidth
=
[
self
CGFloat
:
json
[
@"str
okeWidth"
]];
locationStyle
.
image
=
[
UIImage
imageNamed
:[
self
NSString
:
json
[
@"image"
]]];
locationStyle
.
image
=
[
UIImage
imageNamed
:[
self
NSString
:
json
[
@"image"
]]];
return
locationStyle
;
return
locationStyle
;
}
}
...
...
ios/AMap3D/maps/AMapView.m
View file @
edc68689
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
_locationStyle
=
[
MAUserLocationRepresentation
new
];
_locationStyle
=
[
MAUserLocationRepresentation
new
];
}
}
_locationStyle
.
fillColor
=
locationStyle
.
fillColor
;
_locationStyle
.
fillColor
=
locationStyle
.
fillColor
;
_locationStyle
.
strokeColor
=
locationStyle
.
stokeColor
;
_locationStyle
.
strokeColor
=
locationStyle
.
st
r
okeColor
;
_locationStyle
.
lineWidth
=
locationStyle
.
stokeWidth
;
_locationStyle
.
lineWidth
=
locationStyle
.
st
r
okeWidth
;
_locationStyle
.
image
=
locationStyle
.
image
;
_locationStyle
.
image
=
locationStyle
.
image
;
[
self
updateUserLocationRepresentation
:
_locationStyle
];
[
self
updateUserLocationRepresentation
:
_locationStyle
];
}
}
...
...
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