Code Monkey home page Code Monkey logo

Comments (1)

NelsonMinar avatar NelsonMinar commented on May 17, 2024

The first thing you should try in your app is using the latest version
v0.8-dev version of Leaflet from GitHub. There's significant improvements
in line rendering speed, for details see
https://groups.google.com/forum/#!msg/leaflet-js/_WJquNpdmH0/qQsasZpCTPUJ

The rivers-d3leaflet rendering of the river lines is entirely different
from rivers-leaflet. The D3 version uses D3 to create the SVG layer,
whereas the slower Leaflet version uses Leaflet's own drawing. I haven't
looked at the code for what happens when panning but ideally a pan would
not require any redrawing or anything, just a transform that results in
hardware accelerated graphics. Maybe something about the Leaflet SVG
structure doesn't do that? You may also want to double check in Chrome;
last I looked Firefox's SVG performance was not very good.

from vector-river-map.

Related Issues (6)

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.