var map = new OpenLayers.Map("columbia-SC-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( -81.0325, 33.9982 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('4058 W Beltline Blvd, Columbia, SC 29204-1549', '294a21b5', '1c3e4ebe');$geo('2700 Broad River Rd, Columbia, SC 29210-6055', '038c0fa9', '1c3e4ebe');$geo('2000 Clemson Rd Ste 14, Columbia, SC 29229-9538', '5734389e', '1c3e4ebe');$geo('599 Saint Andrews Rd, Columbia, SC 29210-4516', '5d4a2845', '1c3e4ebe');$geo('7120 Two Notch Rd, Columbia, SC 29223-7502', '9d288675', '1c3e4ebe');$geo('4630 Devine St, Columbia, SC 29205-3616', '5b0898ee', '1c3e4ebe');$geo('7509I Garners Ferry Rd, Columbia, SC 29209-2627', 'c026a009', '1c3e4ebe');$geo('439 Percival Rd, Columbia, SC 29206-5020', 'eac98ffc', '1c3e4ebe');$geo('10173 Two Notch Rd, Columbia, SC 29229-4388', '48129d74', '1c3e4ebe');$geo('6129 N Main St, Columbia, SC 29203-6256', '533f1048', '1c3e4ebe');$geo('2101 Gervais St, Columbia, SC 29204-1805', '4c4ac61a', '1c3e4ebe');$geo('9003 Two Notch Rd Ste 10, Columbia, SC 29223-5846', 'deaf6f41', '1c3e4ebe');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';});}