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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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

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
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

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
Posts: 64
Registered: ‎04-25-2012
My Device: 9000
My Carrier: Airtel

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
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

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
Posts: 64
Registered: ‎04-25-2012
My Device: 9000
My Carrier: Airtel

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
Posts: 275
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha
My Carrier: -

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
Posts: 275
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha
My Carrier: -

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'.