If I do /give @p filled_map 1 2
it gives me a filled locator map
but if I do
/replaceitem entity @p slot.weapon.mainhand 0 filled_map 1 2
it gives me a normal filled map
<-- I forgot to test with 4 and 6 data for nether and end filled locator map -->
Can confirm, affects 1.20.51.
This also affects all explorer maps, irrespective of their given data value. Every locator and explorer map given via the /replaceitem command, will default to a normal filled map.
How to reproduce:
1. Run /give @p filled_map 1 7 in a world with cheats enabled.
2. Then, run /replaceitem entity @p slot.weapon.mainhand 0 filled_map 1 7 in a separate main hand slot.
3. Compare the two maps given.
Observed results:
The map obtained via the /replaceitem command will always be a default filled map.
Expected results:
The map obtained via the /replaceitem command will be identical to the one obtained through /give, in this case, it should be a Snowy Village locator map.