Sometimes Kartographer maps with external data from OSM works, and sometimes they don't work with the same data.
See https://da.wikipedia.org/w/index.php?title=Bruger:Dipsacus_fullonum/sandkasse&oldid=9957579 for an example.
The page have two Kartographer maps. Both should show the countries Bosnia and Hercegovina, Croatia, and Montenegro in different colors. The first map have the Wikidata ID's explicit in the JSON code. The second map get them from a trivial SPARQL query.
The first map with the explicit ID's is shown correct in the page, but the second map with the SPARQL query is not shown at all.
But if I start editing the page and make a preview then in the first map only Croatia is filled with colour while the two other countries are missing, but now the second map now is shown correct with all 3 countries filled with colour.