Mei 13, 2012
By
Firman
- Method one involves the use of a simple snippet of code in your browser's address bar.
- Find the location for which you would like to obtain coordinates in Google Maps.
- Right click on your chosen location, and select "center map here."
- Open Firebug's console in Firefox then copy and paste the snippet of javascript code below into the address bar, and hit "enter."
javascript:void(prompt('',gApplication.getMap().getCenter()));
- This will activate a small pop-up window that will show the coordinates for the centered location in decimal format.
From: http://gps.about.com/od/gpsproductoverview/ht/google-maps-coordinates.htm
Januari 24, 2010
By
Firman
I got the bugs nailed down. Firebug helped a lot in the process. I could never imagine how hard it would be without Firebug. If you are serious Javascript programmer, you should really learn to use this.
Two tabs which are most useful to me were the console and the script tabs. The console tab lets you see in real time the flow of the program. Which function/method is being called. What error message is output. Etc.
The script tag lets you define break point and inspect the value of the variables.
Januari 22, 2010
By
Firman
OK so I have tinkered with the Apache settings. I managed to get rid of the error message in the log. I only needed to add this line to the file /etc/apache2/sites-enabled/000-default
Options +Indexes
AllowOverride All
Order allow,deny
allow from all
The magic is done by the Options +Indexes. It allows directory to be listed. But even after I did that, and no error message in the log, my module still would not show. I suspect it is because the javascript is not executing. I will debug it using firebug. I have just learnt how to use this nifty tool! I will report again later.