Skip to content
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

Closed
SkyXj opened this issue Dec 20, 2019 · 4 comments
Closed

i can not run my program correctly #1

SkyXj opened this issue Dec 20, 2019 · 4 comments

Comments

@SkyXj
Copy link

SkyXj commented Dec 20, 2019

i do not want to run my program by npm,but i can not find the source of leaflet-arrowheads.

@slutske22
Copy link
Owner

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.

@SkyXj
Copy link
Author

SkyXj commented Dec 20, 2019 via email

@slutske22
Copy link
Owner

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.

@SkyXj
Copy link
Author

SkyXj commented Dec 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants