## jMaps

This example shows you how easily jQuery + jMaps makes adding a traffic information layer.

Google traffic allows you to add a layer of traffic information to your maps.

### Example: Add a Traffic Info Layer.

Add Traffic | Remove Traffic

    jQuery(document).ready(function(){
    	jQuery('#map1').jmap('init', {'mapType':G_HYBRID_MAP,'mapCenter':[40.714996739064084,-74.00665283203125]});

    	jQuery('.add-traffic').click(function(){
    		jQuery('#map1').jmap('AddTrafficInfo', null, function(traffic, options) {
    			jQuery('.remove-traffic').click(function(){
    				jQuery('#map1').jmap('RemoveTrafficInfo', traffic);
    			});
    		});
    	});
    });