var map = new OpenLayers.Map("memphis-TN-first-tennessee-bank");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( -89.9576, 35.0681 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('1312 Union Avenue, Memphis, TN 38104', '4c1e4242', '363a2eaa');$geo('1620 Madison Avenue, Memphis, TN 38104', '38c2115a', '363a2eaa');$geo('7080 E Shelby Dr, Memphis, TN 38125', '17a12621', '363a2eaa');$geo('4330 Summer Avenue, Memphis, TN 38122', '196bee66', '363a2eaa');$geo('2750 N Germantown Road, Memphis, TN 38133', '94ae7054', '363a2eaa');$geo('3409 Poplar Avenue, Memphis, TN 38111', '6c5e88fb', '363a2eaa');$geo('4180 Elvis Presley, Memphis, TN 38116', '168a529c', '363a2eaa');$geo('1249 Ridgeway Road, Memphis, TN 38119', '9a4bf80b', '363a2eaa');$geo('315 Poplar Avenue, Memphis, TN 38103', '62bc5582', '363a2eaa');$geo('1249 E Shelby Drive, Memphis, TN 38116', 'b0ab92c1', '363a2eaa');$geo('3391 North Watkins, Memphis, TN 38127', '150a7500', '363a2eaa');$geo('4655 Poplar Avenue, Memphis, TN 38117', 'f15b9646', '363a2eaa');$geo('2015 Brooks Road East, Memphis, TN 38116', 'b7166dac', '363a2eaa');$geo('2284 Lamar Avenue, Memphis, TN 38114', 'c705e49d', '363a2eaa');$geo('3225 Austin Peay Hwy, Memphis, TN 38128', '079cacd6', '363a2eaa');$geo('1845 Kirby Parkway, Memphis, TN 38138', '9e7b6931', '363a2eaa');$geo('3180 South Perkins Road, Memphis, TN 38118', '3866dd4d', '363a2eaa');$geo('6595 Kirby Center Cove, Memphis, TN 38115', '5856d41c', '363a2eaa');$geo('4990 Poplar Avenue, Memphis, TN 38117', 'cbdf4f3c', '363a2eaa');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';});}