Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { projInv, unitsPerMeter } = this.projection;
// add orbitMarker
const target = orbit.userData.target;
const llTarget = projInv(target.x, target.y);
console.log('llTarget:', llTarget);
this.orbitMarker =
L.marker(llTarget)
.bindTooltip("Orbit Axis", {
permanent: true,
direction: 'right',
}).addTo(this.map);
// add orbitCircle
const circle = turfCircle(
MapHelper.swap(llTarget),
orbit.userData.radius / unitsPerMeter, {
units: 'meters',
});
this.orbitCircle =
L.geoJson(circle, {
style: feature => {
return {
dashArray: '3, 5',
color: '#ff00ff',
fillOpacity: 0.0,
};
},
}).addTo(this.map);
}