Я пытаюсь добавить класс CSS или идентификатор на карту Google, чтобы я мог применить css к маркерам. Я видел несколько упрощенных примеров в Интернете, но, кажется, не могу заставить их работать в этом случае. Вот раздел кода, который я считаю актуальным. Как я могу назначить класс маркерам?
if (this.div_ = document.createElement("div"),
this.setBoxStyle_(),
void 0 === this.content_.nodeType ? this.div_.innerHTML = this.getCloseBoxImg_() + this.content_ : (this.div_.innerHTML = this.getCloseBoxImg_(),
this.div_.appendChild(this.content_)),
this.getPanes()[this.pane_].appendChild(this.div_),
this.addClickHandler_(),
this.div_.style.width ? this.fixedWidthSet_ = !0 : 0 !== this.maxWidth_ && this.div_.offsetWidth > this.maxWidth_ ? (this.div_.style.width = this.maxWidth_,
this.div_.style.overflow = "auto",
this.fixedWidthSet_ = !0) : (o = this.getBoxWidths_(),
this.div_.style.width = this.div_.offsetWidth - o.left - o.right + "px",
this.fixedWidthSet_ = !1),
this.panBox_(this.disableAutoPan_),
!this.enableEventPropagation_) {
for (this.eventListeners_ = [],
e = ["mousedown", "mouseover", "mouseout", "mouseup", "click", "dblclick", "touchstart", "touchend", "touchmove"],
t = 0; t < e.length; t++)
this.eventListeners_.push(google.maps.event.addDomListener(this.div_, e[t], s));
this.eventListeners_.push(google.maps.event.addDomListener(this.div_, "mouseover", function(t) {
this.style.cursor = "default"
}))
}
this.contextListener_ = google.maps.event.addDomListener(this.div_, "contextmenu", function(t) {
t.returnValue = !1,
t.preventDefault && t.preventDefault(),
i.enableEventPropagation_ || s(t)
}),
google.maps.event.trigger(this, "domready")