Friday, November 02, 2007


Languages available with &hl=en like parameter in api js call.

Croatian hr
Czech cs
Danish da
Dutch nl
English en
Finnish fi
French fr
German de
Greek el
Hindi hi
Indonesian id
Italian it
Japanese ja
Norwegian no
Portuguese pt
Raeto-Romance rm
Russian ru
Serbian sr
Slovak sk
Slovenian sl
Spanish es
Swedish sv
Thai th
Turkish tr
Ukrainian uk
Vietnamese vi

Update Oct 2008:
The up-to-date list of supported languages is online in a sophisticated format.

Saturday, June 30, 2007

api.js version display

Add a line:


Update Oct 2008:That variable told you the latest version available. No we have a variable that tells you the actual version you are using:


Thursday, May 17, 2007

String to a GLatLng() object

Now we have a handy undocumented method

It converts a coordinate pair string like "60.21, 24.95" to a GLatLng object:

var latLngString = "60.21, 24.95"
var point = GLatLng.fromUrlValue(latLngString);

Nice. The method performs split(",") and parseFloat() for you. It simplifies parsing of many file formats. Actually I am converting my Spreadsheets to have a 'latlng' column instead of 'lat' and 'lng' columns. It makes copy-paste-filling of the spreadsheet easier.

Wednesday, February 07, 2007

Get coordinates simply

On, type in url-field:

javascript:void(prompt('lat, lng', gApplication.getMap().getCenter()));

Not very convenient but make it a bookmark! Get coords. Drag it into your bookmarks folder.

Friday, January 26, 2007

Business graphics

I see a lot of sense to make presentation graphigs by GPolygon. Graphics are the the easy part, legends cause some pain.

Do it. Dynamic diagrams and pies. Easy as a lie.

My project just now is a pie called 'clock'.

Thursday, January 04, 2007

Large Zoom Control Without Pan Buttons

A duplicate of my post on api forum:

You can move the large control upwards:
map.addControl(new GLargeMapControl(),
new GControlPosition(G_ANCHOR_TOP_LEFT,
new GSize(5,-60)));

Having a style definition 'overflow:hidden' for the map div hides the
overflowing pan buttons.

A demo.

There is also a clever commenting script called 'JS-Kit' on the demo page. That is loaded by GScript() just for testing. Try commenting or just sending regards.