Last post Dec 08, 2020 05:11 PM by bruce (sqlwork.com)
Dec 08, 2020 06:50 AM|ehsan_kabiri_33|LINK
I need to complete using leaflet.js in asp-callback tag helper:
asp-fallback-test=" ? ? ? "
By this time, I haven't found a doc, to find out how to use it for any other .js file, as you know lots of .js files are on CDN servers, there should be a general rule for writing the code...
Dec 08, 2020 03:36 PM|bruce (sqlwork.com)|LINK
Dec 08, 2020 04:26 PM|ehsan_kabiri_33|LINK
Thanks a lot for answering . I've seen the reference before but nothing about what you said :
The typical test is window.<some global from the library>
I solved my case by using asp-fallback-test="window.L" , and I saw the leaflet codes, many places used L.Somthing !! So I used L as global and it worked. but if you would mind getting more explanation about global, I searched
Leaflet.js but all the variable are inside function(t,i), I looked at
Leaflet Docs it is using L every where...
the other point, always we have 404 error on not loading first resource... I hope you meant "not throwing error" is any error except 404
Dec 08, 2020 05:11 PM|bruce (sqlwork.com)|LINK