Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

219
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!