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
New Contributor
Posts: 7
Registered: ‎04-26-2011
My Device: bold 9000
My Carrier: BIS

How to Display Multiple Markers on google map?

Hello,

can anybody tell me How to Display Multiple Markers on google map dynamically? I have used kml file stored on my server ..but it shows only static data..

 

I used the code:

 

public void invokeGMaps() {

int mh = CodeModuleManager.getModuleHandle("GoogleMaps");

if (mh == 0) {

try {

throw new ApplicationManagerException("GoogleMaps isn't installed");

}

catch (ApplicationManagerException e) {

System.out.println(e.getMessage());

}

}

String[] args = { "http://www.webateasesolutions.com/demo/blackberrytest/locations.kml "};

ApplicationDescriptor ad = CodeModuleManager.getApplicationDescriptors(mh)[0];

ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);

try {

ApplicationManager.getApplicationManager().runApplication(ad2, true);

}

catch (ApplicationManagerException e) {

System.out.println("Error\t"+e);

}

}

 

Thanks.