Use gradient for user-location hack circle
This commit is contained in:
@ -25,6 +25,8 @@ window.plugin.userLocation.locationLayer = new L.LayerGroup();
|
||||
window.plugin.userLocation.setup = function() {
|
||||
$('<style>').prop('type', 'text/css').html('@@INCLUDESTRING:mobile/plugins/user-location.css@@').appendTo('head');
|
||||
|
||||
$('<div style="position:absolute; left:-9999em; top:-9999em;">').html('@@INCLUDESTRING:mobile/plugins/user-location.svg@@').prependTo('body');
|
||||
|
||||
var cssClass = PLAYER.team === 'RESISTANCE' ? 'res' : 'enl';
|
||||
|
||||
var icon = L.divIcon({
|
||||
@ -41,9 +43,10 @@ window.plugin.userLocation.setup = function() {
|
||||
});
|
||||
|
||||
var circle = new L.Circle(new L.LatLng(0,0), 40, {
|
||||
color: 'orange',
|
||||
stroke: false,
|
||||
opacity: 0.7,
|
||||
fillOpacity: 0,
|
||||
fillOpacity: 1,
|
||||
fillColor: "url(#user-location-gradient)",
|
||||
weight: 1.5,
|
||||
clickable: false
|
||||
});
|
||||
|
Reference in New Issue
Block a user