xronos-ch / xronos.rails

Ruby on Rails application powering XRONOS, an open infrastructure for chronometric data from archaeological contexts worldwide
https://xronos.ch
MIT License
4 stars 0 forks source link

Map on site show view is broken #340

Closed joeroe closed 1 month ago

joeroe commented 1 month ago

It doesn't appear to work on any page. Doesn't show up at all. Stacktrace:

Error connecting controller

 TypeError: map3 is undefined
    addTo Layer.js:52
    loadMarkers map_controller.js:149
    load map_controller.js:103
    connect map_controller.js:20
    connect stimulus.js:1379
    connectContextForScope stimulus.js:1549
    scopeConnected stimulus.js:1923
    elementMatchedValue stimulus.js:1839
    tokenMatched stimulus.js:945
    tokenMatched stimulus.js:876
    tokensMatched stimulus.js:870
    tokensMatched stimulus.js:870
    elementMatchedAttribute stimulus.js:859
    elementMatched stimulus.js:574
    addElement stimulus.js:522
    refresh stimulus.js:443
    start stimulus.js:413
    start stimulus.js:550
    start stimulus.js:841
    start stimulus.js:926
    start stimulus.js:1817
    start stimulus.js:1887
    start stimulus.js:1981

Object { identifier: "map", controller: {…}, element: div }
stimulus.js:2017:20
joeroe commented 1 month ago

Line 20 in map_controller.js is this.load(), so perhaps this was caused by d8053e1a4a69191e309afdf77d958218a8572ef0, @MartinHinz? I admit I have no idea what it's doing there either...