Closed souzaemmanuel closed 4 years ago
Ok, I found the correct way to draw semicircles. The problem was that in addition to installing the Leaflet-semicircle extension via npm I needed to import the javascript file properly.
Just follow the steps:
npm i leaflet --save
npm install --save leaflet-semicircle
In angular.json file add the libraries as follows:
"scripts": [
"node_modules/leaflet/dist/leaflet.js",
"./node_modules/leaflet-semicircle/semicircle.js"
]
And finaly, the problem was here:
import 'leaflet';
import 'leaflet-semicircle';
//Right way to import and extend all extensions importeds previously
declare let L;
//Doesn't works */
//import * as L from 'leaflet';
I installed the dependency via npm but I was unable to use the properties of the semicircle.
Some help?