Comparsion of various annotations available in React native mapbox:
Feature | SymbolLayer | PointAnnotation | MarkerView | CircleLayer |
---|---|---|---|---|
Can use images | ✓ | |||
RN Views as childern | iOS: static | iOS: interactive android: static |
interactive | |
Control Z-index | ✓ | iOS: always on top, android: n/a | always on top | ✓ |
Clustering | ✓ | ✓ | ||
Style with expressions | ✓ | ✓ | ||
iOS implementation | MGLStyleSymbolLayer | MGLAnnotationView | MGLAnnotationView | MGLCircleStyleLayer |
android implementation | SymbolLayer | annotation.Symbol | annotation.Marker | CircleLayer |
Related links:
- iOS markers and annotations
- android annotation plugin