jenkins-bot has submitted this change and it was merged.
Change subject: Apply style to markerGroup
......................................................................
Apply style to markerGroup
Instead of individually to each marker
Change-Id: I3c297d0ff8dc7ae15d9c1ae97792255a96b0cd2b
---
M wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
1 file changed, 8 insertions(+), 7 deletions(-)
Approvals:
Smalyshev: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
b/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
index fb71ee9..b713e48 100644
--- a/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
+++ b/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
@@ -85,18 +85,19 @@
var info = self._getItemDescription( rowKey );
markers.push(
- L.circle( [ longLat[0],
longLat[1] ], 50, {
- color: '#e04545',
- opacity: 0.9,
- fillColor: '#e04545',
- fillOpacity: 0.9
- } ).bindPopup( info[0] )
+ L.circle( [ longLat[0],
longLat[1] ], 50 )
+ .bindPopup( info[0] )
);
}
} );
} );
- return L.featureGroup( markers );
+ return L.featureGroup( markers ).setStyle( {
+ color: '#e04545',
+ opacity: 0.9,
+ fillColor: '#e04545',
+ fillOpacity: 0.9
+ } );
};
/**
--
To view, visit https://gerrit.wikimedia.org/r/277459
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3c297d0ff8dc7ae15d9c1ae97792255a96b0cd2b
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/gui
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Jonas Kress (WMDE) <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits