@nnc-digital/nnc-design-system 1.0.0-alpha54 → 1.0.0-alpha55
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/build/index.js +9 -1
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +9 -1
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.mjs.js
CHANGED
|
@@ -6678,8 +6678,16 @@ var MapMarker = function (options) {
|
|
|
6678
6678
|
anchor: new google.maps.Point(40, 60),
|
|
6679
6679
|
labelOrigin: new google.maps.Point(21, 25),
|
|
6680
6680
|
};
|
|
6681
|
+
// Handle label text safely
|
|
6682
|
+
var labelText = '';
|
|
6683
|
+
if (typeof options.label === 'string') {
|
|
6684
|
+
labelText = options.label;
|
|
6685
|
+
}
|
|
6686
|
+
else if (options.label && typeof options.label === 'object' && 'text' in options.label) {
|
|
6687
|
+
labelText = (_a = options.label.text) !== null && _a !== void 0 ? _a : '';
|
|
6688
|
+
}
|
|
6681
6689
|
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label: {
|
|
6682
|
-
text:
|
|
6690
|
+
text: labelText,
|
|
6683
6691
|
color: 'white',
|
|
6684
6692
|
}, position: options.position, title: options.title });
|
|
6685
6693
|
React.useEffect(function () {
|