Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The simplest question. When you create a google Fusion Map with geographic data, Google provides you with an iframe link to display the Map on your website. But i need to display that information through Javascript for customization etc. So how do i go about it, some basic and newbie walkthrough will be appreciated.

share|improve this question

Check out this example:

It shows you how to query a Fusion Table and create a marker for each row of data.

You could modify the createMarker() function to give the marker a different icon depending on a certain criteria/column value that you pass to it.


var createMarker = function(coordinate, colour) {
      var marker = new google.maps.Marker({
        map: map,
        position: coordinate,
        icon: new google.maps.MarkerImage('images/' + colour + '_icon.png')
      google.maps.event.addListener(marker, 'click', function(event) {
        infoWindow.setContent('This is a' + colour ' + 'icon');;
share|improve this answer

The FusionTablesLayer Wizard is a really good way to get started.

Once you plug in your information, it gives you all of the code you need for a simple FusionTablesLayer map with standard Google Maps controls, and some basic filtering if you wish. You can stop there or you can customize even further. The wizard is nice, too, because it lets you see how the code changes as you change different parameters.

If you need more FusionTablesLayer guidance, here's where I would go next: Be sure to check out all of the pages on Fusion Tables.

Hope this helps you or someone else!

share|improve this answer

You should take a look to Geocodezip web page. There is a lot of examples and some are about what your are looking for.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.