nnhubbard / zspinannotation Goto Github PK
View Code? Open in Web Editor NEWBuild custom MKMapView annotations with any UIColor
Home Page: www.zedsaid.com
License: MIT License
Build custom MKMapView annotations with any UIColor
Home Page: www.zedsaid.com
License: MIT License
Can you please add it to CocoaPods?
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.
Just noticed that the initWithCoordinate: method on ZSAnnotation returns nil rather than self. Great code thanks for sharing.
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?
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.
Love the concept, but I have many pins clustered together, and the call-out is displaying behind my pins. Ideas?
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.