Zhincore / dynmap-trains

DynMap integration for Create Track Map
GNU General Public License v3.0
20 stars 2 forks source link

Clicking on trains in the sidebar doesn't do anything #13

Open calliecameron opened 1 month ago

calliecameron commented 1 month ago

Clicking on the name of a train in the sidebar gives the error:

Uncaught Cannot select map null map.js:479:15
    selectMapAndPan map.js:479
    RenderManager trains.js:741
    jQuery 8
    RenderManager trains.js:737
    #onMessage trains.js:235
    <anonymous> trains.js:213
    (Async: EventHandlerNonNull)
    connect trains.js:212
    connect trains.js:790
    (Async: promise callback)
    connect trains.js:790
    onAdd trains.js:846
    fire Events.js:203
    _layerAdd Layer.js:116
    whenReady Map.js:1470
    addLayer Layer.js:172
    trains trains.js:860
    initialize map.js:361
    each jQuery
    initialize map.js:360
    onload dynmaputils.js:277
    (Async: EventHandlerNonNull)
    loadjs dynmaputils.js:274
    initialize map.js:357
    each jQuery
    initialize map.js:355
    DynMap map.js:38
    jQuery 10
    DynMap map.js:28
    <anonymous> (index):49
    jQuery 13

Should it be focusing on the train like clicking on a player in the sidebar does?

Happens for any train that shows up, whether on the rails or derailed during the current session.