hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to use a view as pin/marker?

spaksa opened this issue · comments

Not directly, but using the toImage() method of every Ti.UI.View:

var myView = Ti.UI.createView({
    width: 30, 
    height: 30, 
    backgroundColor: "#ff0"
});

var annotation = maps.createAnnotation({
    latitude : 37.368122,
    longitude : -121.913653,
    image: myView.toImage()
});

I will add a note about this in the next update. Thanks!