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

218
Vistas
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 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