Giter Club home page Giter Club logo

moving-mkannotationview's People

Contributors

rubnov 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moving-mkannotationview's Issues

There is a much simpler alternative

Seems like you did a ton of work trying to solve this problem however you'll find this simple trick of setting the annotation again will cause it to update to the new coordinate:

MKAnnotationView* annotationView = [self.mapView viewForAnnotation:a];
a.coordinate = newCoordinate;
annotationView.annotation = a;

Furthermore if you want to animate the move just do:

[UIView animateWithDuration:0.5 animations:^{
a.coordinate = coordinate;
annotationView.annotation = a;
}];

FYI I saw you setting a mapView on your HGMovingAnnotationView causing a circular reference, tut tut you should be ashamed ;-)

How to do this moving of cars without a seperate file of coordinates

I want to add cars on the map and show their movement but the problem is that I am getting the position of cars from an api.So I want to animate cars through the latitude and longitude that I am getting from that api.How can I achieve that?Any help will be much appreciated.

Request to help on how to stop the animation for a certain period of 2 seconds and then resume the moving annotation

Hi,

Thanks a lot for the Post Moving MKAnnotationView. Its very helpful and its been used by many. I came across a similar kind of requirement where i need to animate the annotation points between multiple map points. I was able to do it with the post u have suggested but apart from that i need to stop the animation at certain annotation points and wait for 2 seconds and then start the animation again. Can you please help me? It would be of great help if any alternative or suggestion is provided for this..

Weird behavior when user changes the map region

When the map region changes, the "moving" pin is dragged with the slide and then returns to its place to continue moving... any ideas how to fix the pin when the user changes the region of the map? Thanks!

Requesting to help on how to achieve the implementation of stopping the moving annotation at a particular location?

Hi Rotem,

From your yesterday's answer i have got an understanding on how this should be done. But my problem here lies in when the annotation point where it should stop at a particular point and then resume from that stopped point. HGMovingAnnotation Class has a "Stop" Method but when i tried to call the Stop method from "startTracking" Method it doesn't get called. I am actually checking the condition if the currentLocation reaches certain location coordinates.

double latitude = currentLocation.x;
double longitude = currentLocation.y;
if (latitude == 137472336.403570 && longitude == 90052702.711254 ) {
NSLog(@"Inside If condition");
[self stop];
}

Can you please suggest me an alternative on how to implement this?

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.