Skip to content

Commit 13538d1

Browse files
committed
look for complete diff between old and new style objects
1 parent 1b7c9cf commit 13538d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/mapbox/mapbox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ proto.updateMap = function(calcData, fullLayout, resolve, reject) {
151151
var promises = [];
152152
var styleObj = getStyleObj(opts.style);
153153

154-
if(self.styleObj.id !== styleObj.id) {
154+
if(JSON.stringify(self.styleObj) !== JSON.stringify(styleObj)) {
155155
self.styleObj = styleObj;
156156
map.setStyle(styleObj.style);
157157

0 commit comments

Comments
 (0)