var map = new OpenLayers.Map("washington-DC-bank-of-america");map.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap", ['//a.tile.openstreetmap.org/${z}/${x}/${y}.png','//b.tile.openstreetmap.org/${z}/${x}/${y}.png','//c.tile.openstreetmap.org/${z}/${x}/${y}.png'], null)); var zoom=9;var lonLat = new OpenLayers.LonLat( , ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('3401 Connecticut Ave NW, Washington, DC 20008', '3e6d1367', 'acbc7ca3');$geo('2631 Connecticut Ave NW, Washington, DC 20008', '75a181ee', 'acbc7ca3');$geo('888 17th St NW, Washington, DC 20006', 'c8d0bc24', 'acbc7ca3');$geo('3131 Mt Pleasant St NW, Washington, DC 20010', '41a12cf2', 'acbc7ca3');$geo('722 H St NE, Washington, DC 20002', 'a43d2031', 'acbc7ca3');$geo('1001 Pennsylvania Ave NW, Washington, DC 20004', '9a3482c4', 'acbc7ca3');$geo('3500 Georgia Ave NW, Washington, DC 20010', 'e28c2d32', 'acbc7ca3');$geo('3821 Minnesota Ave NE, Washington, DC 20019', '9a7af155', 'acbc7ca3');$geo('201 Pennsylvania Ave SE, Washington, DC 20003', '41f47ec3', 'acbc7ca3');$geo('2201 C St NW, Washington, DC 20520', 'd3d2c1b5', 'acbc7ca3');$geo('730 12th St NW, Washington, DC 20005', '131cdeca', 'acbc7ca3');$geo('915 Rhode Island Ave NE, Washington, DC 20018', '3ccf78e8', 'acbc7ca3');$geo('1501 Pennsylvania Ave NW, Washington, DC 20006', '226b6b5e', 'acbc7ca3');$geo('2100 M L K Jr Ave SE, Washington, DC 20020', 'd13fb9d1', 'acbc7ca3');function $setCenter($lon, $lat){map.setCenter(new OpenLayers.LonLat($lon,$lat).transform(new OpenLayers.Projection('EPSG:4326'), map.getProjectionObject() ), 18);}function $geo($location, $hash, $hash2){var $geocode = 'https://nominatim.openstreetmap.org/search?q='+$location+'&format=json'; $.getJSON($geocode, function(data) {var lonLat = new OpenLayers.LonLat( data[0]['lon'] , data[0]['lat'] ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());var markers = new OpenLayers.Layer.Markers( "Markers" );map.addLayer(markers);markers.addMarker(new OpenLayers.Marker(lonLat));map.setCenter (lonLat, 12);document.getElementById($hash).innerHTML += ' | View Map';});}