Skip to content

Commit

Permalink
[tidev#1198 state:fixed-in-qa] added image synonym. Left pinImage for…
Browse files Browse the repository at this point in the history
… backward compatability to apps that shipped before iPhone renamed it to image
  • Loading branch information
donthorp committed Sep 1, 2010
1 parent ccf6dce commit 57c5515
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,12 @@ protected TiOverlayItem createItem(int i) {
item = new TiOverlayItem(location, title, subtitle, p);

//prefer pinImage to pincolor.
if (a.containsKey("pinImage"))
if (a.containsKey("image") || a.containsKey("pinImage"))
{
String imagePath = a.getString("pinImage");
String imagePath = a.getString("image");
if (imagePath == null) {
imagePath = a.getString("pinImage");
}
Drawable marker = makeMarker(imagePath);
boundCenterBottom(marker);
item.setMarker(marker);
Expand Down

0 comments on commit 57c5515

Please sign in to comment.