Hurqalia / ap_under_draw

IITC plugin : Show AP under draw
2 stars 2 forks source link

Attempting to run this plugin under IITC-CE results in error #3

Closed ryantheleach closed 4 years ago

ryantheleach commented 4 years ago
Uncaught TypeError: Cannot read property 'layerPointToLatLng' of undefined
    at NewClass.getBounds (<anonymous>:11449:16)
    at APUnderDraw.underCircle (<anonymous>:154:39)
    at Object.<anonymous> (<anonymous>:79:32)
    at Function.each (<anonymous>:18716:2976)
    at APUnderDraw.run (<anonymous>:75:15)
    at Function.window.plugin.apunderdraw.doTheJob (<anonymous>:327:12)
    at HTMLAnchorElement.onclick (intel:1)
Hurqalia commented 4 years ago

Ouch! this (layerPointToLatLng property & getBounds method) come from leaflet library. But, these plugins are very old and were written for leaflet 0.7.x, i think they are no longer compatible with current versions of leaflet / iitc / iitc-ce (don't know this version, ask them about this error) and should be rewritten or updated.