react-native-maps 1.29.6 → 1.29.7
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.
|
@@ -168,7 +168,20 @@ bool areHolesEqual(const std::vector<std::vector<RNMapsGooglePolygonHolesStruct>
|
|
|
168
168
|
if(newViewProps.zIndex.has_value()){
|
|
169
169
|
_view.zIndex = newViewProps.zIndex.value();
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
// Rebuild the path when the coordinates change in count OR value. Comparing
|
|
172
|
+
// only the count means moving an existing vertex (same point count, new
|
|
173
|
+
// lat/lng) never updates the rendered shape.
|
|
174
|
+
bool coordsChanged = newViewProps.coordinates.size() != oldViewProps.coordinates.size();
|
|
175
|
+
if (!coordsChanged) {
|
|
176
|
+
for (size_t i = 0; i < newViewProps.coordinates.size(); i++) {
|
|
177
|
+
if (newViewProps.coordinates.at(i).latitude != oldViewProps.coordinates.at(i).latitude ||
|
|
178
|
+
newViewProps.coordinates.at(i).longitude != oldViewProps.coordinates.at(i).longitude) {
|
|
179
|
+
coordsChanged = true;
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (coordsChanged){
|
|
172
185
|
GMSMutablePath *path = [GMSMutablePath path];
|
|
173
186
|
for(int i = 0; i < newViewProps.coordinates.size(); i++)
|
|
174
187
|
{
|
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
|
+
"version": "1.29.7",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint . --max-warnings 0",
|