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

220
Visualizações
openstreetmap Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

Hello all (from France),

I have a page with two map (Openstreemap) On the first map, If I click on the marker I've the popup. On the second map, if I click on the marker I've the error "Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'."

This is the code for the first map (It's ok if I click on the marker, I've the popup) :

   map = L.map('mapid').setView([48.852969, 2.349903], 6);
   var ZMesmarkeurs = L.layerGroup().addTo(map);
   ZMesmarkeurs.clearLayers();
   var markerArray = [];
   var ZlatClient='48.852969';
   var ZlonClient='2.349903';
   L.marker([ZlatClient, ZlonClient], {
        icon:'URL of my marker'
   }).addTo(ZMesmarkeurs).bindPopup('Test1');
   markerArray.push([ZlatClient, ZlonClient]);

This is the code for the second map (with popup error Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.) :

   mapAccueil = L.map('mapidAccueil').setView([48.852969, 2.349903], 6);
   var ZMesmarkeursAide = L.layerGroup().addTo(mapAccueil);
   ZMesmarkeursAide.clearLayers();
   var markerArrayAide = [];
   var ZlatClient='48.852969';
   var ZlonClient='2.349903';
   L.marker([ZlatClient, ZlonClient], {
         icon: 'URL of my marker'
   }).addTo(ZMesmarkeursAide).bindPopup('Test2');
   markerArrayAide.push([ZlatClient, ZlonClient]);

I don't find the problem. Does somebody can help me ?

REGARDS.

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