I'm currently working on a Google Maps marker infowindow and trying to adjust the padding specifically for RTL languages. Here's what I've attempted so far:
google.maps.event.addListener(marker, 'click', function () {
infoWindow.open(map, marker);
if ($('div').css('direction') == 'rtl') {
$("div.gm-style-iw").css("padding-right", "12px");
}
});
Unfortunately, this code doesn't seem to correct the padding issue initially, but strangely it works when clicking on the marker again. Do you have any suggestions on how to resolve this? Is there an event triggered when the infowindow is open?