Quantcast
Viewing all articles
Browse latest Browse all 8068

Annotation image property not working for local image path android Modules.map.annotation

Hi,

I cant get the annotation image on map. But when i click on annotation the image it shows the call out(i am using the routes and as i cant see the annotation i just clicked on the end point of route as there should be some annotation) Here is the code

var annotation = Map.createAnnotation({
        image : '/images/pin.png',
        latitude : parseFloat(resultsFeed.items[poi].latitude),
        longitude : parseFloat(resultsFeed.items[poi].longitude),
        title : resultsFeed.items[poi].name,
        myid : poi,
 
});
Here Map is instance of ti.map module, .. I am using google api v2

I alternatively used the customView property and it worked ,... I have to change the annotations image when it shows the call out Please help me finding the solution


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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