Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 64
Registered: ‎09-21-2011
My Device: Curve & 8520
My Carrier: TMN

Blackberry Maps API

Hi! I want to customize the Map and put some images instead of the standard pin points. So I am using the following:

 

1)  MapMarker mapImage1 = new MapMarker(48.727096,9.113503, "file:///store/home/user/rss_icon.png");
 2) MapMarker mapImage2 = new MapMarker(48.719735,9.132128, "http://i20.photobucket.com/albums/b210/DKW1985/JCicons/Versus_icon2.gif");

 

The first line doesn't work and the image is not loaded. The second line (where I am using URI with Http, works fine). But I want to have the images files inside application, so I need to use the first option. Somebody can help me?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Blackberry Maps API

Try this

 

cod://<your code name without the the .cod>/<your image name>

 

Also try the same with "local://" rather than "cod://".

Regular Contributor
Posts: 64
Registered: ‎09-21-2011
My Device: Curve & 8520
My Carrier: TMN

Re: Blackberry Maps API

Thank you for your reply but It doesn't work..any more ideas?

 

Thank you

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Blackberry Maps API

Not from me - seems like the API could do with expanding to support local icons!