var map = new OpenLayers.Map("baltimore-MD-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( -76.6249, 39.2949 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('3415 Eastern Ave, Baltimore, MD 21224', 'cf45a266', 'eb52da73');$geo('1800 E Monument St, Baltimore, MD 21205', 'a3a3d2a4', 'eb52da73');$geo('5655 The Alameda, Baltimore, MD 21239', '0481da5f', 'eb52da73');$geo('902 W 36th St, # 904, Baltimore, MD 21211', '78078cbc', 'eb52da73');$geo('3121 St Paul St, Baltimore, MD 21218', '3b57f7f9', 'eb52da73');$geo('3400 Belair Rd, Baltimore, MD 21213', '499a3a0f', 'eb52da73');$geo('7703 Eastpoint Mall, Baltimore, MD 21224', 'e957c120', 'eb52da73');$geo('524 S Broadway, Baltimore, MD 21231', '7498750a', 'eb52da73');$geo('6538 Reisterstown Rd, Baltimore, MD 21215', 'a6f62f5d', 'eb52da73');$geo('20 N Howard St, Baltimore, MD 21201', 'b09032e5', 'eb52da73');$geo('3601 S Hanover St, Baltimore, MD 21225', 'a254c95f', 'eb52da73');$geo('201 N Charles St, Baltimore, MD 21201', '890dfc60', 'eb52da73');$geo('3050 Mondawmin Mall, Baltimore, MD 21215', 'c18bedde', 'eb52da73');$geo('2530 N Charles St, Baltimore, MD 21218', '147249c9', 'eb52da73');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';});}