Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

158
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda