@osimatic/helpers-js 1.4.5 → 1.4.6
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/open_street_map.js +1 -1
- package/package.json +1 -1
package/open_street_map.js
CHANGED
|
@@ -138,7 +138,7 @@ class OpenStreetMap {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
static centerMapToGooglePlace(map, place) {
|
|
141
|
-
if (place
|
|
141
|
+
if (place && place.geometry && place.geometry.location) {
|
|
142
142
|
const loc = place.geometry.location;
|
|
143
143
|
OpenStreetMap.centerMapToCoordinates(map, loc.lat(), loc.lng());
|
|
144
144
|
}
|