Hebbinkpro / PocketMap

A dynamic map plugin for PocketMine-MP
GNU General Public License v3.0
13 stars 1 forks source link

Bug on player displays on the Dynamap #20

Closed Zarika92 closed 11 months ago

Zarika92 commented 11 months ago

Since I installed your plugin and put all the recommended virions and they are well launched, after 1 hour of waiting to move a little everywhere on my server, no indication of player has appeared, do you have an idea or is it a bug? Thank you! (use Pocketmap 0.4.3)

Hebbinkpro commented 11 months ago

Hi thanks for reporting the bug,

I was already aware of the bug, but haven't found the time to finish the update for the plugin yet.

But this is an issue in the web files, so you can fix it yourself if you want to. To fix the issue, go to the file plugin_data/PocketMap/web/static/script/main.js. Find the following function

function updateMarker(player) { 
     let pos = player["pos"]; 
     let latLng = L.latLng(-pos.z, pos.x);
     ...
}

Change let latLng = L.latLng(-pos.z, pos.x); to let latLng = L.latLng(-pos.z/16, pos.x/16); After this it will behave properly.

Hebbinkpro commented 11 months ago

Fixed in v0.4.4