Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/288996
Change subject: Use CircleMarker in the map view ...................................................................... Use CircleMarker in the map view radius is specified in pixels, and make slight adjustment to opacity. Change-Id: I4eedc1eb90450d7d29a9b5d758ed747e5f3dcd84 --- M wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js 1 file changed, 12 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui refs/changes/96/288996/1 diff --git a/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js b/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js index a14308a..8e528f9 100644 --- a/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js +++ b/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js @@ -99,7 +99,7 @@ lon = longLat[0], lat = longLat[1]; - var marker = L.circle( [ lat, lon ], 10 ) + var marker = L.circleMarker( [ lat, lon ], self._getMarkerStyle() ) .bindPopup( popup ); marker.on( 'click', function() { @@ -118,12 +118,20 @@ markers.push( marker ); } - return L.featureGroup( markers ).setStyle( { + return L.featureGroup( markers ); + }; + + /** + * @private + */ + SELF.prototype._getMarkerStyle = function() { + return { + radius: 2, color: '#e04545', - opacity: 0.9, + opacity: 0.8, fillColor: '#e04545', fillOpacity: 0.9 - } ); + }; }; /** -- To view, visit https://gerrit.wikimedia.org/r/288996 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4eedc1eb90450d7d29a9b5d758ed747e5f3dcd84 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