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

Can't customize pin image - MapView Alloy

$
0
0

Hi Guys,

I can't customize pin image in a MapView filled with a collection.

View :

<Alloy>
    <Collection src="gc"/>
    <Window class="container">      
 
        <ScrollView  id="AppWrapper" class="containerVertical">             
 
            <View class='verticalView' id='mapView'>                      
                <Module dataCollection="gc" id="moduleMap" module="ti.map" method="createView"/>     
            </View>
 
       </ScrollView>
    </Window>
</Alloy>
tss :
"#moduleMap": {
    ....
    image: "images/map_marker.png", 
    ...
}
Annotations are well displayed but with default pin.

I have tried :

"#moduleMap": {
    ....
    image: "map_marker.png",    // and many other paths
    ...
}
or
"Annotation":{
    image: "images/map_marker.png", 
}
The image is in app/assets/images/map_marker.png

Is it a way to do it ?

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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