Jekyll Templates

    
  ---
  layout: map
  category: maps
  title: "Map Title"
  description: "This is a description."
  template: true
  basemap: topo
  date: 2016-01-29
  ---
  map.on('click', function(e) {
    var lat = e.latlng.lat.toFixed(6);
    var lng = e.latlng.lng.toFixed(6);
    $('#mapInfo').html('
You clicked the map at ' + lat + ', ' + lng + '

(#mapInfo)'); $('#mapLegend').html('
This is space for a legend/chart, etc. added dynamically in the map script.

(#mapLegend)'); $('#mapLegendInfo').html('
This is space for more info, below the legend.

(#mapLegendInfo)'); sidebar.show(); });