JGirault has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/318115

Change subject: Remove static background image once the map is interactive
......................................................................

Remove static background image once the map is interactive

Bug: T149155
Change-Id: I5a08282f30ab40e77ee8ddfea3121fd3babcf8d5
---
M modules/mapframe/mapframe.js
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Kartographer 
refs/changes/15/318115/1

diff --git a/modules/mapframe/mapframe.js b/modules/mapframe/mapframe.js
index 80619ff..8cc055e 100644
--- a/modules/mapframe/mapframe.js
+++ b/modules/mapframe/mapframe.js
@@ -94,6 +94,9 @@
                                        dataGroups: data.overlays,
                                        captionText: data.captionText
                                } );
+                               map.doWhenReady( function () {
+                                       map.$container.css( 'backgroundImage', 
'' );
+                               } );
 
                                mapsInArticle.push( map );
                                maps[ index ] = map;

-- 
To view, visit https://gerrit.wikimedia.org/r/318115
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a08282f30ab40e77ee8ddfea3121fd3babcf8d5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Kartographer
Gerrit-Branch: master
Gerrit-Owner: JGirault <julien.inbox.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to