Skip to content

Instantly share code, notes, and snippets.

@brianjlandau
Created July 15, 2009 01:58
Show Gist options
  • Select an option

  • Save brianjlandau/147381 to your computer and use it in GitHub Desktop.

Select an option

Save brianjlandau/147381 to your computer and use it in GitHub Desktop.
<div id="map"></div>
<div id="map-side-bar">
<div class="map-location" data-id="1" data-point="{lng: -122.2678847, lat: 37.8574888}" data-category="'market'">
<a href="#" class="map-link">Berkeley Bowl</a>
<div class="info-box">
<p>A great place to get all your groceries, especially fresh fruits and vegetables.</p>
</div>
</div>
<div class="map-location" data-id="2" data-point="{lng: -122.4391131, lat: 37.7729943}" data-category="'restaurant'">
<a href="#" class="map-link">Nopalito</a>
<div class="info-box">
<p>The best authentic Mexican restaurant in San Francisco.</p>
</div>
</div>
<div class="map-location" data-id="3" data-point="{lng: -122.4481651, lat: 37.8042096}" data-category="'museum'">
<a href="#" class="map-link">Exploratorium</a>
<div class="info-box">
<p>A hands-on museum of science, art, and human perception in San Francisco.</p>
</div>
</div>
</div>
$(document).ready(function(){
$('#map').jMapping({metadata_options: {type: 'html5'}});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment