Coder Social home page Coder Social logo

sarweshkumar47 / curve-fit Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 7.0 25.84 MB

Curve-Fit is an Android library for drawing curves on Google Maps

Home Page: https://sarweshkumar47.github.io/Curve-Fit/

License: Apache License 2.0

Java 100.00%
android android-library bezier-curve beziercurve curve curve-fit curves drawing-curves google-maps maps polyline

curve-fit's People

Contributors

sarweshkumar47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

curve-fit's Issues

Curve click error

Got this error trying to click a curve after an app sleep/resume... maybe also related to the weak references issues...

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.util.HashMap.get(java.lang.Object)' on a null object reference
    at com.makesense.labs.curvefit.impl.CurveManager$DelegatingCurveClickListener.onPolylineClick(CurveManager.java:142)
    at com.google.android.gms.maps.zzq.zza(Unknown Source:2)
    at com.google.android.gms.maps.internal.zzbg.dispatchTransaction(Unknown Source:5)
    at com.google.android.gms.internal.maps.zzb.onTransact(Unknown Source:12)
    at android.os.Binder.transact(Binder.java:667)
    at hl.b(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):14)
    at com.google.android.gms.maps.internal.bu.a(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):4)
    at com.google.maps.api.android.lib6.impl.dt.y(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):270)
    at com.google.maps.api.android.lib6.gmm6.api.r.a(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):137)
    at com.google.maps.api.android.lib6.gmm6.api.q.a(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):58)
    at com.google.maps.api.android.lib6.gmm6.vector.af.b(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):130)
    at com.google.maps.api.android.lib6.gmm6.vector.dc.onSingleTapConfirmed(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):22)
    at com.google.maps.api.android.lib6.impl.gesture.c.onSingleTapConfirmed(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):240)
    at com.google.maps.api.android.lib6.impl.gesture.e.handleMessage(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-257258062):9)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6718)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Adjust curvature

Is there any way to adjust the curvature of the lines? Actually, I'd like to be able to create a straight line for some datasets.

Not compatible with Android Maps SDK 3.0 beta

As the title says, this library is not compatible with the new Android Maps SDK coming out. Any idea if/when a compatible version is coming out?

I really like this library, but will have to pull it from my app if this can't be resolved soon.

Confused

How is this integrated into a project? Via a gradle library dependency (like the old one) or put in the libs directory as an APK? I can't get it to work.

show just once

hi there !
thanks for useful library , i have one problem and one question
1 - in my case i have few item when click on item show you dialog with map fragment and show the curved polyline but thats work for first time and the next time the polyline dosn't show .
2 - can i set animation to polyline color change ?!

Random NPE

Periodically, I'll get a NullPointerException when closing a map with a curve and then reopening it to show the curve again. I haven't isolated a pattern yet. Here is the stack trace:

java.lang.NullPointerException: Attempt to invoke interface method 'void com.makesense.labs.curvefit.interfaces.UiThreadCallback.publishToUiThread(android.os.Message)' on a null object reference
at com.makesense.labs.curvefit.impl.WorkerHandlerThread$1.handleMessage(WorkerHandlerThread.java:83)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)

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.