Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/277459
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(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui refs/changes/59/277459/1 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: newchange Gerrit-Change-Id: I3c297d0ff8dc7ae15d9c1ae97792255a96b0cd2b Gerrit-PatchSet: 1 Gerrit-Project: wikidata/query/gui Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits