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

Adobe AIR Development

Reply
Developer
ddev1702
Posts: 64
Registered: ‎04-25-2012
My Device: 9000

Want to show some image and info on Google map

Hello All,

i have to display some stores name with image on a map.i am working on shopping cart for cushions.so,how is it possible to show map for particular city along with some stores with image and brief descriptions.

 

help me out..

d.dev
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Want to show some image and info on Google map

Yes, see the Google Map API. BTW, Google does not support the ActionScript/Flash library any more, but it should still work.
Developer
ddev1702
Posts: 64
Registered: ‎04-25-2012
My Device: 9000

Re: Want to show some image and info on Google map

if answer is Yes,then how is it possible?i cant understand how to do this?can u gve me some idea?plz

d.dev
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Want to show some image and info on Google map

Have you looked at the Google Map API and samples on their site and the web? I stopped using the GMap SDK over a year ago, so your best bet is the Google Map website and samples found elsewhere on the web.

For finding a city, you will need to do a geocode. Google has an API for that, and there are others you can find on the net. If you have addresses for the stores, you will need to do a geocode for those places as well.
Developer
ddev1702
Posts: 64
Registered: ‎04-25-2012
My Device: 9000

Re: Want to show some image and info on Google map

[ Edited ]

i have to show map like those attached images. but unable to do so.really confused..plz help me

d.dev
Developer
SangramPatil
Posts: 271
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha

Re: Want to show some image and info on Google map

If you want to add the customised Markers, do the following:

var oMarkOption:MarkerOptions = new MarkerOptions();
oMarkOption.icon = new ClassName();
var oMarker:Marker = new Marker(LatLng,oMarkOption);

 Create the Marker graphics movieclip and Export it for ActionScript and give some linkage identifier. You have to use the same ID to set as 'oMarkOption.icon'.

 

 

Developer
SangramPatil
Posts: 271
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha

Re: Want to show some image and info on Google map

It was a way too tricky, I had spent a lot of time getting it done and there wasn't any help available either. Glad this will help you :-)

 

For adding the different image in the Info box use the following:

var sTitleText:String = "<b><a href=\'event:" + nIndex + "\'>" + sTitle;
var sContentText:String = "<a href=\'event:" + nIndex + "\'><img src='" + sImageURL + "' width='160' height='90'></a>";
oMap.openInfoWindow(LatLng, new InfoWindowOptions({titleHTML: sTitleText, contentHTML: sContentText}));

 Add sTitle as Title of the Window.

sImageURL: Should be URL of the image, you want to add. And I have added the <a href> to handle the click listener with the corresponding 'nIndex'.