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.