Code Monkey home page Code Monkey logo

Comments (9)

leplatrem avatar leplatrem commented on August 20, 2024

Can you reproduce in some jsfiddle or similar please ?

from leaflet.textpath.

akshayme avatar akshayme commented on August 20, 2024

Sure, give me 15 minutes to put something together.

from leaflet.textpath.

akshayme avatar akshayme commented on August 20, 2024

http://jsfiddle.net/sir_kitty/cmhbQ/2/

The markers start off on top of the line. After _updatePath is called, they are no longer on top, and no longer clickable.

I'm thinking that possibly just altering the text value (e.g. recalculating the string and appending the existing string) instead of totally clearing the node might work. I may implement such a thing, just wondering if you have any thoughts or ideas for this.

from leaflet.textpath.

leplatrem avatar leplatrem commented on August 20, 2024

Thanks !

Indeed, remove and adding nodes might re-order their "stack" order. If you have time, please open a pull-request :) I might not be available to work on this for a while...

from leaflet.textpath.

akshayme avatar akshayme commented on August 20, 2024

Cool, I'll take a stab at it later this week.

from leaflet.textpath.

p-j avatar p-j commented on August 20, 2024

Hi guys,

Has this been fixed or should I plan on working around this if I use this plugin ?

Thanks

from leaflet.textpath.

solo999 avatar solo999 commented on August 20, 2024

The issue is still there... Text layer getting to the top

from leaflet.textpath.

solo999 avatar solo999 commented on August 20, 2024

there is a hack to redraw text layer always as first element of svg:
replace in line 97 "svg.appendChild(textNode);"
with "svg.insertBefore(textNode, svg.firstChild);"
then it will not be over the other layers after every zoom or pan...

from leaflet.textpath.

leplatrem avatar leplatrem commented on August 20, 2024

Would it be relevant to patch with this hack ?

from leaflet.textpath.

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.