In order to use this JavaScript API on your website, a link back to the http://www.4sqmap.com/ website should be provided!
First you should know the ID of Foursquare List which you would like to embed into your website or blog.<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="http://www.4sqmap.com/js/0.1/api.min.js"></script> <script type="text/javascript"> // Replace '2629883/tips' with the ID of your Foursquare List foursqmap.lists('map', '2629883/tips'); </script> <div id="map" style="width:100%; height: 500px"></div>2. Map + Sidebar
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="http://www.4sqmap.com/js/0.1/api.min.js"></script> <script type="text/javascript"> // Replace '4e2df6f13151250387b53f5c' with the ID of your Foursquare List foursqmap.lists('map2', '4e2df6f13151250387b53f5c', {'sidebar': 'map2_sidebar'}); </script> <div> <div id="map2_sidebar" style="width:300px; float:left; height: 500px; overflow: auto"></div> <div style="margin-left:300px;"> <div id="map2" style="width: 100%;height: 500px"></div> </div> </div>