var map = new OpenLayers.Map("baltimore-MD-liberty-tax-service");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('2301 E Northern Pkwy, Baltimore, MD 21214-1139', 'f98d95a2', '3390a53c');$geo('2039 W Pratt St, Baltimore, MD 21223-2242', '78cca8b4', '3390a53c');$geo('2312 E Monument St, Baltimore, MD 21205-2404', '69f9e05f', '3390a53c');$geo('3414 Eastern Ave, Baltimore, MD 21224-4121', '9509c871', '3390a53c');$geo('3308 Greenmount Ave, Baltimore, MD 21218-2838', '2efa1a9f', '3390a53c');$geo('3602 Falls Rd, Baltimore, MD 21211-1814', '6194912f', '3390a53c');$geo('1742 W North Ave, Baltimore, MD 21217-1738', 'e0c710e9', '3390a53c');$geo('503 W Lexington St, Baltimore, MD 21201-1711', 'e2c62226', '3390a53c');$geo('6518 B Reisterstown Rd, Baltimore, MD 21215', '9f257fc4', '3390a53c');$geo('312 S Broadway, Baltimore, MD 21231-2407', 'c95169d6', '3390a53c');$geo('809 N Point Blvd, Baltimore, MD 21224-3411', 'aacdc418', '3390a53c');$geo('5801 Belair Rd, Baltimore, MD 21206-2608', '2c8d69a2', '3390a53c');$geo('4422 Park Heights Ave, Baltimore, MD 21215-6324', 'df14db7e', '3390a53c');$geo('3343 Belair Rd, Baltimore, MD 21213-1202', '8d4052f2', '3390a53c');$geo('1490 H W Patapsco Blvd, Baltimore, MD 21230', '86bf2a2b', '3390a53c');$geo('1401 E Cold Spring Ln, Baltimore, MD 21239-3913', 'dbda822d', '3390a53c');$geo('5443 Reisterstown Rd, Baltimore, MD 21215-4404', 'b8e02186', '3390a53c');$geo('1808 Pennsylvania Ave, Baltimore, MD 21217-3298', '8a40b782', '3390a53c');$geo('2201 N Charles St, Baltimore, MD 21218-5719', '612efc7d', '3390a53c');$geo('200 N Highland Ave, Baltimore, MD 21224-1411', '045648f2', '3390a53c');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';});}