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

161
Visualizações
How to give each co-ordinate in GeoJson a different color?

I want each co-ordinate to have its own color as per the altitude, which is the third element of the array.

Solutions I've come up with so far: Manually split the data into multiple features, I know how to add styling at a feature/geometry level.

I am using react-leaflet v2.4.0 . Thanks in advance!

Below is the GeoJson object I have.

{
    type: 'FeatureCollection',
    features: [
        {
            type: 'Feature',
            geometry: {
                type: 'MultiLineString',
                coordinates: [
                    [
                        [86.871974, 27.9047199, 4737.0],
                        [86.8715921, 27.9044794, 4733.0],
                        [86.8715009, 27.9046169, 4734.0],
                        [86.8715062, 27.9048065, 4735.0],
                        [86.8711361, 27.9051479, 4732.0],
                        [86.8706104, 27.9048302, 4728.0],
                        [86.8704494, 27.9049677, 4727.0],
                    ]
                ],
            },
        },
    ]
}
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