[Seaside] Google Maps examples?

cdrick cdrick65 at gmail.com
Tue Mar 25 16:57:49 UTC 2008


I once experimented something... was kind of working but not nice code
at all as I tested lots of function (javascript mix with smalltalk
code) !

did you put your proper gmap key ?  this could explain why the map is
not showing...

2 important method I guess

updateRoot: aRoot

	super updateRoot: aRoot.
	aRoot title: 'test GMAP'.
	aRoot linkToScript: self class gmapKey. "link to your gmap key"
	aRoot addScript: self gmapScript. "here put the google adress of js,
I had a local copy"
	aRoot bodyAttributes
		at: 'onload'
		put: 'load()'.
	aRoot bodyAttributes
		at: 'onunload'
		put: 'GUnload()'

renderGmapOn: html

	html html: ' <div id="map" style="width: 950px; height: 400px"></div>'



Sorry I cannot spend more time on it, but this was working for me and
I can't really send you the code as it won't work.

HTH

Cédrick


More information about the seaside mailing list