This example shows how to create an extension and utilize an external library.
Note that the js is not minified so it is readable. See GMapPanel.js and gmap.js for the full source code.