Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Titanium Maps Module V2 - Change info window image(or background color atleast)

$
0
0

I am using Titanium map module. Everything is working fine. I just want to change the background image or color of Info window. Please note that I know how to change image of the annotation pin. I don't know how to change do it for info window, which appears after clicking the pin.

Following is my code:

var bridge = MapModule.createAnnotation({
    latitude : cinema.locationLatitude,
    longitude : cinema.locationLongitude,
    title:cinema.cinemaName,
    subtitle: cinema.address,
    pincolor:Titanium.Map.ANNOTATION_RED,
 
    // For eventing, use the Map View's click event
    // and monitor the clicksource property for 'rightPane'.
    leftButton: cinema.imageUrl,
});
 
    var map1 = MapModule.createView(
    {
        userLocation : true,
        mapType : MapModule.NORMAL_TYPE,
        animate : true,
        region :
        {
            latitude : cinema.locationLatitude,
            longitude : cinema.locationLongitude,
            latitudeDelta : 0.1,
            longitudeDelta : 0.1
        },
        height : '92%',
        top : '3%',
        left : '0',
        width : '100%',
        annotations: [bridge]
    });

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>