var map = new OpenLayers.Map("sioux-falls-SD-wells-fargo-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( -96.7049, 43.6013 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('101 N Phillips Ave, Sioux Falls, SD 57104', 'fd68cd76', '6715580c');$geo('3610 W Avera Dr, Sioux Falls, SD 57108', '0d83169e', '6715580c');$geo('5300 W 41st St, Sioux Falls, SD 57106', 'daa3acba', '6715580c');$geo('1801 S Minnesota Ave, Sioux Falls, SD 57105', '1d47898a', '6715580c');$geo('3000 W 12th St, Sioux Falls, SD 57104', '9e27db4e', '6715580c');$geo('2800 E 26th St, Sioux Falls, SD 57103', 'a1368b88', '6715580c');$geo('1301 N Cliff Ave, Sioux Falls, SD 57103', 'fbb819e0', '6715580c');$geo('500 W 41st St, Sioux Falls, SD 57105', '0c3fc684', '6715580c');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';});}