Archive for the ‘Google Maps’ Category

The best analytics plugin I ever seen: Geotrack Plugin (2.0.2)

Monday, July 23rd, 2007

 

Today I found a great wordpress plugin today:

Features:

  • logs every visit on your wordpress blog in your MySQL database
  • automatic cleanup of logs in your MySQL database
  • contains the same information as Apache combined server logs with ip, referrer, method, status, uri, user agent and access time
  • additionally stores geo-ip information with country, ISO country code, city name, latitude and longitude
  • displays a list of current visitors
  • displays a top-10-list of referrers, visited pages, visitors‘ countries and visitors‘ cities
  • has functionality to prevent referrer spamming
  • ip blocking of known referrer spammers
  • contains a set of free (GNU-GPL / Creative Commons) country flags from Wikipedia
  • Google maps integration: shows your visitors‘ locations on world map
  • fast geoip retrieval through local database
  • contains installer and update scripts
  • uses MaxMind GeoLite City
  • see it in action here
  • and of course it’s free to use!

Very cool, very useful and with google maps displaying who si from where…

See it live in my site:

http://dev.robertmao.com/visitors-map/

Download it here!

Popularity: 24% [?]

Google Maps + Google Ditu Mashup

Sunday, July 22nd, 2007

转到 Google 地图 主页Go to Google Maps Home

Some days ago I wrote a small bookmarklet to switch between Google Maps and Google Ditu, now I have a simple maskup which add google ditu as a customized layer in Google Maps.

The reason why Google Ditu in China can’t contain a satellite layer is the goverment’s policy. There are so many unbelieveable policies here in China, this one is just a simple example.

The satellite images and the maps don’t match well, actually that’s also a policy and requirement by China goverment… :(

 

Here is page with the code,use browser’s “view source” to see how this implemented.

Popularity: 16% [?]

Google Maps / Ditu switcher bookmarklet

Wednesday, July 18th, 2007

Ditu.google.com is the Chinese version of Google Maps, Google maps is a great product however in China, there is no detailed map, all we can play around is the satellite images. Google China released Ditu which is the answer, however due to China’s local law google is not allowed to put it together with the satellite image.

I wrote a small bookmarklet to allow you siwtch between Ditu and Google Maps automatically, locate to a position either in Google Maps or Ditu, click the bookmarlet, the page will automatically switch to the same location of the other site.

Drag this link to your Firefox address bar:

Ditu/Maps Switcher

The source code is here:

<a href="javascript:url = ''+document.getElementById('link'); if ((url.search(/http:\/\/maps.goog/i) ==-1) && (url.search(/http:\/\/ditu.goog/i)==-1)) { alert('Do not click this links, drag it too your address bar. \nThis bookmarklet only works on maps.google.com or ditu.google.com.\nCheck update on http://dev.robertmao.com/category/google-maps for latest updates or other google maps hack.'); } else { if (url.search(/ditu/i)==-1) { url=url.replace(/maps./i, 'ditu.'); } else {url=url.replace(/ditu./i, 'maps.'); if (url.search(/&t=k/i) ==-1) url += '&t=k'; } window.location=url;}">Ditu/Maps Switcher</a>

You can also copy the part “javascript:….url;}” and paste in your address input box and hit return to make a switch. However I think drag the link as a bookbarklet is a better idea.

I didn’t test under IE, so not sure if it work. Try at your own risk.

I am thinking writing a hack to overlap the image files of Ditu and Google Maps, it gonna be cooler, but this is still just an idea. One issue is, during I play arround, I found Ditu’s position is not exactly match the satellites images, maybe it’s also because google need to follow some local policy.

Popularity: 14% [?]

Close
E-mail It
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.