Git Product home page Git Product logo

Comments (6)

bbecquet avatar bbecquet commented on August 17, 2024

Hi, and thanks for using my plugin.
You need only the leaflet.polylineDecorator.js file, located at the root of the project. It's the consolidated file you're looking for, as it is only a concatenation of the src/* files.
About the lack of minified file, it's on purpose. For real life scenarios where these extra bytes matter, most developers would prefer to use their own bundling and minifying method anyway.

Sorry about the example file, you're perfectly right. It should refer to the single file instead of the source version. Moreover, it's also referring to Leaflet as local files on my computer (yuck!). I have to take some time to clean things out on this project, and add a real doc beside the example.

Hope it helps you with your project.

from leaflet.polylinedecorator.

vsrdharca avatar vsrdharca commented on August 17, 2024

@bbecquet Hello - When I include leaflet.polylineDecorator.js (local reference) it complains about Uncaught Syntax Error: unexpected token < line 7. Since the above js is all I need do you know if why its complaining about the unexpected token. The console log says Added non passive event listener as a violation. I thought may be its trying to look up another file whose js is not locally available? Thank you for your help.

from leaflet.polylinedecorator.

bbecquet avatar bbecquet commented on August 17, 2024

Hi @vsrdharca. Do you still have troubles with the lib?
If so, can you give some more details, like how you include Leaflet and PolylineDecorator in your page (the script tags for example) and the code with the error line.
BTW, I think the other msg about passive listener is unrelated.

from leaflet.polylinedecorator.

vsrdharca avatar vsrdharca commented on August 17, 2024

@bbecquet

Hi bbecquet

Just getting back to this. I am still getting this error message.

I just have skeleton implementation to test.

i am importing your js file in a pug script

script(src='/polylinedecorator/leaflet.polylineDecorator.js')

the folder polylinedecorator is under public

I don't even call it. But when the index.pug loads it gives me this error

Appreciate your input

image

from leaflet.polylinedecorator.

vsrdharca avatar vsrdharca commented on August 17, 2024

@bbecquet Express doesn't seem to like the fact that the imported external library is html formatted as opposed to just javascript?

from leaflet.polylinedecorator.

vsrdharca avatar vsrdharca commented on August 17, 2024

@bbecquet Hi Benjamin - My issue is resolved. It had to do with deployment.

from leaflet.polylinedecorator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.