Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
Leaflet draw toolbar icons not loaded

I'm trying to use Leaflet-draw, after calling it :

.ts file : import "leaflet-draw"

.scss file : @import "~leaflet-draw/dist/leaflet.draw.css";

configuration :

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

Toolbar screenshot

Nothing is displayed in the toolbar. I'm trying to manually import icons, but still not working :

.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;
        }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda