It is simple to write a test page using a new functionality that was announced or was discovered by Mike Williams. I been doing that many times within a few hours from the publishing of a new feature.
Sometimes you just got an idea and write a page for study and publish it. People mail you positive feedback. It is rewarding, useful and fun.
Writing an api extension is totally different. You have to think about all the developers that are going to use your code. You have to write functions that have useful and useable I/O. You have to write clear code with descriptive variable and function names. You have to comment your code clearly. You have to follow general code writing conventions. You have to follow general comment tagging conventions. You have to write a reference. You have to write useful example pages. You have to make a page that describes the extension. You have to monitor and react feedback on group. Still you will get a lot of personal email.
Writing a library of api extensions sounds like something that is not intended for any intelligent creature.
I took the challenge. zmarker.js library will be announced in a few days.
Writing an API is like something from Moon or Mars compared to my 'library'. Now I do respect the Google maps api people even more than ever before. They are doing some unbelievable work.
P.S. From the beginning of the api group: Many of the first posters were disturbed that the marker is ugly. How did they find the right group without a vision.
Friday, April 04, 2008
Friday, November 02, 2007
Languages
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
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:
document.write(_mJavascriptVersion);
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:
G_API_VERSION
Thursday, May 17, 2007
String to a GLatLng() object
Now we have a handy undocumented method
.fromUrlValue();
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.
.fromUrlValue();
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 maps.google.com, type in url-field:
javascript:void(prompt('lat, lng', gApplication.getMap().getCenter()));
Not very convenient but make it a bookmark! Get maps.google coords. Drag it into your bookmarks folder.
javascript:void(prompt('lat, lng', gApplication.getMap().getCenter()));
Not very convenient but make it a bookmark! Get maps.google 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'.
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.
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.
Subscribe to:
Posts (Atom)
