You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2018. It is now read-only.
At present the script requires the core map code to be already present in the page which prevents asynchronous loading of maps whilst using the MapLabel function.
It would be better, in my opinion, if the prototypical properties were copied from OverlayView on first
instance of the constructor getting initialised. That would allow someone to asynchronously load the map script and instantiate inheritance when calling new MapLabel for the first time.
function MapLabel(opt_options) {
if (!MapLabel.prototype.setValues) {
// Copy the properties over.
for (var prop in google.maps.OverlayView.prototype) {
MapLabel.prototype[prop] = google.maps.OverlayView.prototype[prop];
}
}
this.set('fontFamily', 'sans-serif');
this.set('fontSize', 12);
this.set('fontColor', '#000000');
this.set('strokeWeight', 4);
this.set('strokeColor', '#ffffff');
this.set('align', 'center');
this.set('zIndex', 1e3);
this.setValues(opt_options);
}