Skip to main content

no template as the body

3 replies [Last post]
groverblue
Offline
Joined: 2006-06-23

Are there anymore examples for jMaki, especially Google Maps?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31

Google maps is pretty easy in jMaki. There is a google map example that is part of the sample application. The Google Search is very similar to Google Maps and I have written a blog enry on this at http://weblogs.java.net/blog/gmurray71/archive/2006/06/jmaki_google_aj.html .
Also included with jMaki are Yahoo Map examples.

jvence
Offline
Joined: 2006-06-21

What is the best way to have the google map redraw itself and fetch the latest list of markers?
Thanks!

gmurray71
Offline
Joined: 2003-07-31

You would do this in the JavaScript bootrap script in the for the google map:

In the jamki application this is:

WEB_ROOT/resources/gmap/component.js

To add change the script t othe following:

var map = new GMap2(document.getElementById(widget.uuid));
var point = new GLatLng(37.39316,-121.947333700);
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml('You are here ');

Pretyt much you are using the Google API at this point.