Use gradient for user-location hack circle

This commit is contained in:
fkloft
2013-12-11 19:26:07 +01:00
parent fe0c408fd5
commit 5c30743531
2 changed files with 11 additions and 2 deletions

View File

@ -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
});