thank you It works fine.
In addition, can I ask you one more question?
The code below was written to hide a specific marker if there is no #keycard,
Data-marker-id doesn’t seem to recognize the marker id.
Is there some code to specify the marker id?
const slotSpaceCheck = $('.inventory-modal .slotSpace');
const slotWithKeycard = slotSpaceCheck.find('.slot > #keycard');
if (slotWithKeycard.length === 0) {
const markerToHide = $(
.ipnrm-marker[data-marker-id="0141C99051"]
);
markerToHide.css('display', 'none');
}