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
87123d6c
Commit
87123d6c
authored
Jun 20, 2017
by
Qiu Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实现 iOS 自定义 InfoWindow
parent
6b7e7214
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
0 deletions
+37
-0
AMapInfoWindow.h
ios/AMapInfoWindow.h
+6
-0
AMapInfoWindow.m
ios/AMapInfoWindow.m
+6
-0
AMapInfoWindowManager.m
ios/AMapInfoWindowManager.m
+19
-0
AMapMarker.h
ios/AMapMarker.h
+2
-0
AMapMarker.m
ios/AMapMarker.m
+4
-0
No files found.
ios/AMapInfoWindow.h
0 → 100644
View file @
87123d6c
#import <Foundation/Foundation.h>
#import <React/RCTView.h>
@interface
AMapInfoWindow
:
RCTView
@end
\ No newline at end of file
ios/AMapInfoWindow.m
0 → 100644
View file @
87123d6c
#import "AMapInfoWindow.h"
@implementation
AMapInfoWindow
{
}
@end
\ No newline at end of file
ios/AMapInfoWindowManager.m
0 → 100644
View file @
87123d6c
#import <React/RCTViewManager.h>
#import <React/RCTUIManager.h>
#import "AMapInfoWindow.h"
#pragma ide diagnostic ignored "OCUnusedClassInspection"
@interface
AMapInfoWindowManager
:
RCTViewManager
@end
@implementation
AMapInfoWindowManager
{
}
RCT_EXPORT_MODULE
()
-
(
UIView
*
)
view
{
return
[
AMapInfoWindow
new
];
}
@end
ios/AMapMarker.h
View file @
87123d6c
...
...
@@ -3,11 +3,13 @@
#import <React/RCTComponent.h>
#import "AMapView.h"
#import "AMapOverlay.h"
#import "AMapInfoWindow.h"
#pragma ide diagnostic ignored "OCUnusedPropertyInspection"
@class
AMapView
;
@class
AMapOverlay
;
@class
AMapInfoWindow
;
@interface
AMapMarker
:
MAAnnotationView
<
MAAnnotation
,
AMapOverlayDelegate
>
...
...
ios/AMapMarker.m
View file @
87123d6c
...
...
@@ -34,6 +34,7 @@
_pinView
.
zIndex
=
self
.
zIndex
;
_pinView
.
draggable
=
self
.
draggable
;
_pinView
.
canShowCallout
=
self
.
canShowCallout
;
_pinView
.
customCalloutView
=
self
.
customCalloutView
;
return
_pinView
;
}
...
...
@@ -46,6 +47,9 @@
_iconView
=
(
AMapOverlay
*
)
subview
;
_iconView
.
delegate
=
self
;
}
if
([
subview
isKindOfClass
:[
AMapInfoWindow
class
]])
{
self
.
customCalloutView
=
[[
MACustomCalloutView
alloc
]
initWithCustomView
:(
id
)
subview
];
}
}
#pragma mark AMapOverlayDelegate
...
...
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