Assigned
Status Update
Comments
it...@assetms.co.uk <it...@assetms.co.uk> #2
effected us too
da...@gmail.com <da...@gmail.com> #3
same problem as well
ro...@hutware.com <ro...@hutware.com> #4
same problem here
jo...@gmail.com <jo...@gmail.com> #5
same problem
za...@gmail.com <za...@gmail.com> #6
Same problem
fe...@gmail.com <fe...@gmail.com> #7
same problem
ge...@gmail.com <ge...@gmail.com> #8
same problem affected v3.21 also. Why?
su...@gmail.com <su...@gmail.com> #9
same problem
ch...@google.com <ch...@google.com> #10
Thank you for reporting! We are rolling back to v3.60.2 as we further assess the situation.
same problem affected v3.21 also. Why?
Version 3.21 is no longer being served, and the latest weekly release is being served in it's place. Please see
ch...@google.com <ch...@google.com> #11
v3.60.3 has been rolled back and v3.60.2 is now live.
la...@google.com <la...@google.com>
he...@tranzact.co.za <he...@tranzact.co.za> #12
In case this is useful for the devs of the MarkerWithLabel library.
I managed to solve this issue by updating the MarkerWithLabel code.
Replacing the weird custom extend method
function extend(type1, type2) {
// eslint-disable-next-line prefer-const
for (let property in type2.prototype) {
type1.prototype[property] = type2.prototype[property];
}
with code properly extending the existing maps classes. (using ES6 extends) e.g:
class MarkerSafe extends google.maps.Marker {
constructor(options) {
super(options);
}
}
It works perfectly with the rolled-back javascript maps version as well.
Description
On March 5, 2025, Google Released Maps.js version v3.60.3. This version is incompatible with MarkerWithLabel (
"TypeError: Cannot call a class constructor without |new|"
This error is reproducible on the googlemaps/js-markerwithlabel github example page:
Many others have reported this issue in the googlemaps/js-markerwithlabel github repository:
The following workaround exist:
1) Pinning the Google Maps JS library to version 3.59 by adding v=3.59 as a query param to the script src
2) Replacing all instances of "new MarkerWithLabel(" with "new google.maps.Marker(" which resolves the issues, but users will not have a label rendered with their marker.
# Please report the version of Google Maps API
v3.60.3
# What steps will reproduce the problem? Please also provide a code sample which demonstrates your issue (e.g. via
1. Visit
2. Markers do not render
3. View JS console, See "TypeError: Cannot call a class constructor without |new|"