-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change colour of Pins #13
Comments
Further to my request above. I replaced the pins in the assets folder with my own designs. This didn't change the pins shown in my app. I guess that those pins aren't being used by the module. Hopefully there is another way... Cheers |
Just to clarify, this is the sort of thing I'm trying to achieve. To visually identify POI's with the use of coloured Pins / Pins with category images. Link to Mapbox iOS SDK video) https://dl.dropboxusercontent.com/u/575564/picksvid.mov Hope that helps! |
The color of the pin is set by declare a tintColor on your window :-) |
Hi maikkley That's interesting. tintColor eh. Not something I would have guessed. Thanks ;-) Any idea how we can have different colours/pins for different categories on the same map? Cheers |
I see for a solution to set an image for an annotation. So this is the Solution. When i get it working, i Paste the Solution here;-) |
TintColor works on these, eh? Cool, didn't know that. As for changing pin colors, at one time I threw in those other pin colors in an effort for parity with the standard appcelerator map modules, but I don't think I wired it up completely. Other items got in the way. Mapbox actually has a pretty cool setup for custom pin colors, shapes and sizes, but it requires internet connectivity in order to access their api, so I didn't spend much time on it. |
Did anyone successfully make this work, either changing the existing pin colors or using a custom markerImage? Trying to use my own pins at app/assets/images/pin_name.png, I have tried all the paths that I can think of and no change, based on the source code it looks like it should work, any ideas? |
Ups, i forget to Paste my code ;-) |
Hi Adam
I noticed that you have a folder with various map pin images in three different colours. The default seems to be set to "pin-blue-png".
What properties do we need to amend to change the pin colour?
Also, can we implement our own pin designs by replacing those in the assets/pins folder?
Thanks
burgons
The text was updated successfully, but these errors were encountered: