var map = new OpenLayers.Map("atlanta-GA-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( -84.3953, 33.8559 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('852B Ralph David Abernathy Blvd SW, Atlanta, GA 30310-1808', '337309a4', '4947444a');$geo('515 Ponce De Leon Ave NE, Atlanta, GA 30308-1847', 'd0a6cc1d', '4947444a');$geo('2030 Bolton Rd NW, Atlanta, GA 30318-1106', '7c46458a', '4947444a');$geo('1841 Chamblee Tucker Rd, Atlanta, GA 30341-2754', '5ac13911', '4947444a');$geo('5920 Roswell Rd, Atlanta, GA 30328-4900', '23714358', '4947444a');$geo('4725 S Atlanta Rd SE, Atlanta, GA 30339-1544', 'e432cb61', '4947444a');$geo('5400 W Fayetteville Rd Ste102, Atlanta, GA 30349-5573', '2269db51', '4947444a');$geo('3065 Headland Dr SW, Atlanta, GA 30311-5421', '5a128bbc', '4947444a');$geo('387 Cleveland Ave SW Ste 3B, Atlanta, GA 30315-8100', 'cfb9f709', '4947444a');$geo('5190 Old National Hwy Ste E, Atlanta, GA 30349-3251', '80605fa2', '4947444a');$geo('2164 Campbellton Rd SW, Atlanta, GA 30311-4694', '4e1ad896', '4947444a');$geo('50 Upper Alabama St SW Ste 252, Atlanta, GA 30303-3105', '45ec4246', '4947444a');$geo('1715 Howell Mill Rd NW Ste C-20, Atlanta, GA 30318-3101', '4e1195c2', '4947444a');$geo('381 Moreland Ave SE, Atlanta, GA 30316-1506', '41f6a037', '4947444a');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';});}