-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i can not run my program correctly #1
Comments
On the repo page, you'll see the file list. You'll see the src folder, and within that, you'll see the link to the leaflet-arrowheads.js file. Hopefully that's a direct enough answer for you. Just make sure you put the <script> tags in your HTML header in the right order, as explained in the instructions. |
thank you for your code and answer,in fact,i saw the
code but it seem i can not use it,becase it start with "import { } from '/node_modules/leaflet-geometryutil/src/leaflet.geometryutil.js' ",
…------------------ 原始邮件 ------------------
发件人: "Seth Lutske"<notifications@github.com>;
发送时间: 2019年12月20日(星期五) 上午9:31
收件人: "slutske22/leaflet-arrowheads"<leaflet-arrowheads@noreply.github.com>;
抄送: "夏焌"<1012262558@qq.com>; "Author"<author@noreply.github.com>;
主题: Re: [slutske22/leaflet-arrowheads] i can not run my program correctly (#1)
On the repo page, you'll see the file list. You'll see the src folder, and within that, you'll see the link to the leaflet-arrowheads.js file.
Hopefully that's a direct enough answer for you. Just make sure you put the <script> tags in your HTML header in the right order, as explained in the instructions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Oh right. You may need to adjust the file path to wherever you have leaflet.geometryutil.js in your project. I just assumed its in node_modules, but if you're keeping it somewhere else, you'll need to specify where. If you're trying to avoid ES6 imports and modules completely, just cut that line out (assuming geometryutil is linked in your HTML header before arrowheads.) Let me know if that works. I highly recommend getting into ES6 modules, imports and exports. It was confusing to me at first, but it ends up opening up a much better way to organize your code and use other people's code as well. |
thany you for your suggestion,if i use ES6 modules,i must refactoring the code.yeah,when i cut that line and cut that code is "export default",my code works correctly,Thank you again for your code
…------------------ 原始邮件 ------------------
发件人: "Seth Lutske"<notifications@github.com>;
发送时间: 2019年12月20日(星期五) 中午11:10
收件人: "slutske22/leaflet-arrowheads"<leaflet-arrowheads@noreply.github.com>;
抄送: "夏焌"<1012262558@qq.com>; "Author"<author@noreply.github.com>;
主题: Re: [slutske22/leaflet-arrowheads] i can not run my program correctly (#1)
Oh right. You may need to adjust the file path to wherever you have leaflet.geometryutil.js in your project. I just assumed its in node_modules, but if you're keeping it somewhere else, you'll need to specify where.
If you're trying to avoid ES6 imports and modules completely, just cut that line out (assuming geometryutil is linked in your HTML header before arrowheads.) Let me know if that works.
I highly recommend getting into ES6 modules, imports and exports. It was confusing to me at first, but it ends up opening up a much better way to organize your code and use other people's code as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
i do not want to run my program by npm,but i can not find the source of leaflet-arrowheads.
The text was updated successfully, but these errors were encountered: