1.11M Members

Multiple Google Map ???

 
0
 

Hi all,

I want to display multiple different google maps by using restful web service in the same page..this is the way I do it in one of my page:

GoogleMapClient client = new GoogleMapClient(location);
Object map = client.getGoogleMap(location);
out.println(map);
client.close();

I have tried to loop it becomes:

GoogleMapClient client = new GoogleMapClient(location);
Object map = client.getGoogleMap(location);
for(int i = 0; i < 5; i++)
    out.println(map);
client.close();

and

GoogleMapClient client = new GoogleMapClient(location);
Object map = client.getGoogleMap(location);
out.println(map);
client.close();

GoogleMapClient client2 = new GoogleMapClient("w");
Object map2 = client2.getGoogleMap(location);
out.println(map2);
client2.close();

None of the above display multiple maps..

Anyone has a solution? Thanks

You
Post:
Start New Discussion
Tags Related to this Article