@corpsmap/corpsmap 4.1.20 → 4.1.21
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.
- package/dist/corpsmap.es.js +3855 -3774
- package/dist/corpsmap.umd.js +26 -26
- package/package.json +1 -1
- package/src/core-plugins/geocoder/bundle.jsx +12 -6
package/package.json
CHANGED
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
const overlayCenter = transform(
|
|
86
86
|
selectedItem.center,
|
|
87
87
|
displayProjection,
|
|
88
|
-
"EPSG:3857"
|
|
88
|
+
"EPSG:3857",
|
|
89
89
|
);
|
|
90
90
|
|
|
91
91
|
//add overlay to map
|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
96
96
|
item={selectedItem}
|
|
97
97
|
map={map}
|
|
98
98
|
onClear={store.doClearGeocoderOverlay}
|
|
99
|
-
|
|
99
|
+
/>,
|
|
100
100
|
);
|
|
101
101
|
overlay.setPosition(overlayCenter);
|
|
102
102
|
|
|
@@ -141,8 +141,14 @@ export default {
|
|
|
141
141
|
}&access_token=${mapboxToken}`,
|
|
142
142
|
(err, response, body) => {
|
|
143
143
|
if (err) return callback(err);
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
//TODO JONB
|
|
145
|
+
let results;
|
|
146
|
+
try {
|
|
147
|
+
results = JSON.parse(body);
|
|
148
|
+
} catch (e) {
|
|
149
|
+
return callback(null, []);
|
|
150
|
+
}
|
|
151
|
+
if (!results.features) return callback(null, []);
|
|
146
152
|
|
|
147
153
|
return callback(
|
|
148
154
|
null,
|
|
@@ -163,9 +169,9 @@ export default {
|
|
|
163
169
|
geometry: r.geometry,
|
|
164
170
|
properties: r.properties,
|
|
165
171
|
};
|
|
166
|
-
})
|
|
172
|
+
}),
|
|
167
173
|
);
|
|
168
|
-
}
|
|
174
|
+
},
|
|
169
175
|
);
|
|
170
176
|
},
|
|
171
177
|
|