have a look at 
http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/GPlotter.html

I found this a bit too limited when I looked at it and build one
myself. Check out http://www.carealoud.com/en/caredforby/joostschouten
for a working tapestry example (still in beta ;-).

If you wish to do it yourself, just code your javascript file and add
it through @IncludeJavaScriptLibrary. them add a @BeginRender method
like:

@BeginRender
    void doBeginRender(MarkupWriter writer) {
                clientId = renderSupport.allocateClientId(resources);
        Element root = writer.getDocument().getRootElement();
        if(root.getElementById("gmap") == null) {
                Element head = root.find("head");
        
                head.element("script",
                             "src",
"http://maps.google.com/maps?file=api&v=2&key=yourKey";,
                             "type", "text/javascript",
                             "id", "gmap");
        }
}

hope it helps,
Joost

On Tue, Apr 14, 2009 at 9:05 AM, Amit Nithian <anith...@gmail.com> wrote:
> How does one go about using Google Maps with Tapestry? I understand how to
> use Google Maps JS API but am unclear about how I can integrate that into
> Tapestry. I read online that it's been integrated into Tapestry at least
> once but am having a tough time finding out documentation/examples about
> this.
> Thanks
> Amit
>

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

Reply via email to