On Tue, 18 May 2010 12:40:07 -0300, Alexander Muthmann <amuthm...@dev-eth0.de> wrote:

Hi there,

Hi!

I currently work on an applications which uses a google-map-api based map with database-loaded data. To get the data in my map, I use a JSONArray which is returned from a method.

function addLocations(){
             var data = ${courierLocations};
             for(i in data ){
                 map.addOverlay(parseMarker(data[i]));
             }
}
...

This works quite well. Now I want to update the locations on the map with new data.

Why don't you create a function that receives the data as a parameter and just invoke it using RenderSupport.addScript()?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to