Estoy tratando de usar Leaflet-draw, después de llamarlo:
Archivo .ts: import "leaflet-draw"
Archivo .scss: @import "~leaflet-draw/dist/leaflet.draw.css";
configuración:
var drawPluginOptions = { position: 'topleft', draw: { polyline: { shapeOptions: { color: '#f357a1', weight: 10 } }, polygon: { allowIntersection: false, drawError: { color: '#e1e100', message: '<strong>Polygon draw does not allow intersections!<strong> (allowIntersection: false)' }, shapeOptions: { color: '#bada55' } }, circle: false, rectangle: { shapeOptions: { clickable: false } }, marker: { icon: new MyCustomMarker() } }, edit: { featureGroup: editableLayers, remove: false } };Captura de pantalla de la barra de herramientas
No se muestra nada en la barra de herramientas. Estoy tratando de importar íconos manualmente, pero aún no funciona:
.leaflet-draw-toolbar a { background-image: url('https://unpkg.com/leaflet-draw@1.0.2/dist/images/spritesheet.png'); background-repeat: no-repeat; color: transparent !important; }