Google Maps Component for Echo2

Just stumbled across this not quite ready Google Maps component for Echo2 over at Sourceforge. Hacim Bengalis over at his blog has taken this work and presents the code changes necessary to getting it to work with Echo2. Basically, he registers his own service (i.e. the stuff that gets run at start time for an Echo2 session, as I recall) that injects the Google Maps Javascript include into the page.

    /* add google maps api */    baseDoc.addJavaScriptInclude("js/googleload.js");

If you read French, then this fellow claims to have done it without having to register his own services, i.e. with a stock Echo2.

The solution use the component HttpPaneEx from EchoPointNG (I guess this is standard library for most Echo2 users). This component creates an HTML Iframe in which you can display any HTML pages : even one using GoogleMaps. Next, you need to interact with it. The trick is to use method enqueueCommand and JavaScriptInclude and JavaScriptEval object from Echo2 to trigger javascript from Echo2.

I recall that when I tried this with Echo2 2.0.x, I had issues with the Echo2 client engine capturing events and making the Google maps component do weird things. His tutorial looks extensive; anybody feel up to translating some French?

Technorati Tags: , ,

Related posts:

  1. New ZK Google Maps Component
  2. Adding a Timer Component to Echo2
  3. Echo2 Needs a Better Way for Third Party’s to Contribute
  4. Writing Echo2 Components
  5. Informagen Echo2 Component Library

Topics: ,

Comments: 1 so far

  1. Hello, I’ve translated to Englis the post where I explain how to do a mashup with an out of shelves Echo2 version. You can found it at this URL :
    http://jl2tho.blogspot.com/2007/09/tutorial-1-mashup-googlemap-echo2.html

    Hope it will be helpful to you.

    Comment by The fellow, Friday, September 14, 2007 @ 3:29 pm

Leave a comment

Powered by WP Hashcash

Launch: Pathfinder Newsletter

    Get a monthly update on best practices for delivering successful software.

    Subscribe via email


    Subscribe via RSS      RSS icon

Topics

Search

WordPress

Comments about this site: info@pathf.com