Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if an icon is null before setting its opacity #6610

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/layer/marker/Marker.js
Expand Up @@ -339,7 +339,9 @@ export var Marker = Layer.extend({
_updateOpacity: function () {
var opacity = this.options.opacity;

DomUtil.setOpacity(this._icon, opacity);
if (this._icon) {
DomUtil.setOpacity(this._icon, opacity);
}

if (this._shadow) {
DomUtil.setOpacity(this._shadow, opacity);
Expand Down