[SPIGOT-4958] MapView.setTrackingPosition() needed in order to show player position on maps. Created: 19/May/19  Updated: 20/May/19  Resolved: 20/May/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Reg Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: mapview

Version: git-Spigot-1a3504a-dfa7583
Guidelines Read: Yes

 Description   

Custom maps created with Bukkit.createMap() do not show the player position marker, even when using the default renderer.

NBT inspection of any map.dat file shows a parameter called trackingPosition.  Maps generated by the game have this tag set to 1 and show the player marker on the map, Bukkit.createMap() maps have this tag set to 0 and do not show the marker.

I could really do with having access to a setTrackingPosition(boolean) method on mapView in order to turn the player position marker on for custom maps.  Setting trackingPosition to 1 manually using an NBT editor adds the marker to my custom map next time I reload so I'm sure this is doable.



 Comments   
Comment by Reg [ 20/May/19 ]

Perfect.  Thank you very much indeed.

Generated at Sat Dec 13 15:23:17 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.