react-native-maps 1.29.10 → 1.29.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,6 +34,7 @@ CGRect unionRect(CGRect a, CGRect b) {
34
34
  RCTDirectEventBlock _onSelect;
35
35
  RCTDirectEventBlock _onDeselect;
36
36
  __weak UIImageView *_iconImageView;
37
+ UIImage *_iconImage;
37
38
  UIView *_iconView;
38
39
  UIColor *_pinColor;
39
40
  CLLocationCoordinate2D _coordinates;
@@ -130,6 +131,13 @@ CGRect unionRect(CGRect a, CGRect b) {
130
131
  if (_pinColor){
131
132
  _realMarker.icon = [GMSMarker markerImageWithColor:_pinColor];
132
133
  }
134
+ if (_iconSrc){
135
+ if (_iconImage){
136
+ _realMarker.icon = _iconImage;
137
+ } else {
138
+ [self setIconSrc:_iconSrc];
139
+ }
140
+ }
133
141
  if (_opacity != 1.0){
134
142
  [_realMarker setOpacity:_opacity];
135
143
  }
@@ -420,6 +428,7 @@ CGRect unionRect(CGRect a, CGRect b) {
420
428
  - (void)setIconSrc:(NSString *)iconSrc
421
429
  {
422
430
  _iconSrc = iconSrc;
431
+ _iconImage = nil;
423
432
 
424
433
  if (_reloadImageCancellationBlock) {
425
434
  _reloadImageCancellationBlock();
@@ -446,6 +455,7 @@ CGRect unionRect(CGRect a, CGRect b) {
446
455
  NSLog(@"%@", error);
447
456
  }
448
457
  dispatch_async(dispatch_get_main_queue(), ^{
458
+ self->_iconImage = image;
449
459
  self->_realMarker.icon = image;
450
460
  });
451
461
  }];
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "types": "dist/src/index.d.ts",
8
8
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
9
9
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
10
- "version": "1.29.10",
10
+ "version": "1.29.11",
11
11
  "license": "MIT",
12
12
  "scripts": {
13
13
  "lint": "eslint . --max-warnings 0",