Discussion Forums  >  Uncategorized

Replies: 1    Views: 915

Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
02/26/11 06:18 AM (15 years ago)

Map pin color

Is there any possibility to change the map pin color if you have three different maps? Kind of red, green, purple etc?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/26/11 09:23 PM (14 years ago)
Not without some kung-fu. If you want to attempt some hack-a-thon in the objective C, lemme know, I'll guide you through it. But, realize that changeing the source in your project means you'll need to do this again if you re-download the project for some reason. It's super simple to change the pin color: See BT_screen_map.m in the BT_Screens folder. Look for this around line 510 [annotationView setPinColor:MKPinAnnotationColorRed]; You could easily change MKPinAnnotationColorRed to the other available iOS pin colors (google MKPinAnnotationColorRed for the others). However, if you change this, ALL the maps, no matter how many you have will use this new color. So, you're challenge is to tell the map to use 'this color for this screen and this color for that screen' Hope this makes sense.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.