GithubHelp home page GithubHelp logo

nnhubbard / zspinannotation Goto Github PK

View Code? Open in Web Editor NEW
160.0 160.0 31.0 346 KB

Build custom MKMapView annotations with any UIColor

Home Page: www.zedsaid.com

License: MIT License

Objective-C 100.00%

zspinannotation's People

Contributors

armillio avatar ch-beck avatar kvting avatar mluisbrown avatar nnhubbard 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

zspinannotation's Issues

CocoaPod

Can you please add it to CocoaPods?

ZSPinAnnotation for OSX

Can you convert this library to use it on OS X or is it too complicated?
I tried to convert files contained in the ZSPinAnnotation folder, without succeeding.
Thank you.

NB: I would very much like to use them on os x, because they are very beautiful.

initWithCoordinate returns nil

Just noticed that the initWithCoordinate: method on ZSAnnotation returns nil rather than self. Great code thanks for sharing.

Custom action

Hi, I'm using the ZSPinAnnotation on my map (which helps me a lot!) but I'm trying to set a custom action to each pin and I can't seem to get an ID or tag from each pin, have you done this?

Too large hit areas

Hi,

Thanks for a nice approach to multi-colored pins!

I have problems with the hit area being too large. Instead of the hit area just being the pins bounding box, it extends quite a bit to the sides, as well as as taking up as much space below the pin as the pin is tall.

I assume that this is so that the pin will touch down exactly on the annotation coordinate, but you could use an offset to achieve this precise placing as well.

Do you happen to have a solution for this? If not, I'll have a look at the code and see if I can come up with a solution.

Call out is behind pins

Love the concept, but I have many pins clustered together, and the call-out is displaying behind my pins. Ideas?

Must set annotationType before annotationColor

I discovered that one must set annotationType before annotationColor, as setting the color generates the image.

It seems unusual for a setter to have such side-effects. One should be able to set either in either order. Would it be possible to either regenerate the image on each setter or delay generating the image until it is actually need. This way the setters could be called in either order.

At the very least, please update the documentation to say that one must set type type first.

suggest setting pinView.centerOffset in README.md

I noticed that overlaying MKPinAnnotationView pins and MKAnnotationView pins with ZSPinAnnotation images were quite a bit off without setting centerOffset. Your demo project sets it but it's not mentioned in the readme example.

Also, for some reason I get more accurate placement with:
pinView.centerOffset = CGPointMake(7, -15);
pinView.calloutOffset = CGPointMake(-7, 0);

than the demo settings of:
pinView.centerOffset = CGPointMake(6.5, -16);
pinView.calloutOffset = CGPointMake(-11, 0);

but I notice it's pretty hard to get it perfect. Zooming in and out sometimes looks perfect and sometimes is a little off. I assume due to rounding somewhere.

Nice project!

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.