var map = new OpenLayers.Map("columbus-OH-checksmart");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( -83.017, 40.0988 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('1015 N High St, Columbus, OH 43201', '3786071c', 'd2eb76da');$geo('5462 West Pointe Plaza, Columbus, OH 43228', '204ba4d6', 'd2eb76da');$geo('2824 S Hamilton Rd, Columbus, OH 43232', '5c494aab', 'd2eb76da');$geo('6261 E Main St, Columbus, OH 43213', 'd5c6f49c', 'd2eb76da');$geo('5783 Cleveland Ave, Columbus, OH 43229', '48e9cedd', 'd2eb76da');$geo('170 N Wilson Rd, Columbus, OH 43204', '4edf365d', 'd2eb76da');$geo('7095 E Broad St, Columbus, OH 43213', '4e748d76', 'd2eb76da');$geo('7370 Sawmill Rd, Columbus, OH 43235', '41724cea', 'd2eb76da');$geo('2496 Morse Rd, Columbus, OH 43231', '4293a270', 'd2eb76da');$geo('2013 Zettler Center Dr, Columbus, OH 43223', 'd69fa7c5', 'd2eb76da');$geo('1255 Parsons Ave, Columbus, OH 43206', 'b7bc7ceb', 'd2eb76da');$geo('1624 E Dublin Granville Rd, Columbus, OH 43229', '08677034', 'd2eb76da');$geo('91 S Hamilton Rd, Columbus, OH 43213', '7b4633d6', 'd2eb76da');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';});}