Matt Kenefick
Matt Kenefick

Reputation: 1206

Error `contains` undefined in Google Maps JS API

function gB(a,b,c){b[rb](function(b){var e="Om"==c?b[gl]():b.get("latLngPosition");e&&!b.pegmanMarker&&a[Vb](e)?rp(c,"-v",b):sp(c,"-v",b)})};

It tells me there's an error here.

This is related to markers. After walking through breakpoints:

Since this is a Google script, I'm wondering if I have something funky going on in my codebase or how to resolve this. Anyone else run into this? What is "a" supposed to be?


This is being called from this in main.js.

ig[E].forEach = function(a) {
    var b = this.va, c;
    for (c in b)
        a[Gc](this, b[c])
};

In this code, "a" references the snippet block shown above. So a[Gc](this, b[c]) essentially evaluates to gB.call(this, markerObject);

Upvotes: 1

Views: 2538

Answers (1)

Matt Kenefick
Matt Kenefick

Reputation: 1206

This was because I had been using "3.exp" which is the experimental API. I guess there was an error happening in it and I didn't realize. Switched to production, 3.13, and it fixed the bug. Cheers to geocodezip for asking about the API version.

Defect report

Upvotes: 1

Related Questions