var map = new OpenLayers.Map("new-york-NY-capital-one-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( -73.9945, 40.752 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('320 Park Ave, New York, NY 10022', 'a9f7a022', 'bebe5b0f');$geo('991 3rd Ave, New York, NY 10022', 'bdcfc1ae', 'bebe5b0f');$geo('144 8th Ave, New York, NY 10011', 'd42e479d', 'bebe5b0f');$geo('301 W 125th St, New York, NY 10027', '3026fb30', 'bebe5b0f');$geo('277 Broadway, New York, NY 10007', '22f66f73', 'bebe5b0f');$geo('245 E 34th St, New York, NY 10016', '2eb3ebc8', 'bebe5b0f');$geo('845 3rd Ave, New York, NY 10022', '0bee058d', 'bebe5b0f');$geo('176 Broadway, New York, NY 10038', 'd1a452cc', 'bebe5b0f');$geo('347 6th Ave, New York, NY 10014', '1eea7ed9', 'bebe5b0f');$geo('249 E 86th St, New York, NY 10028', 'bae91574', 'bebe5b0f');$geo('2379 Broadway, New York, NY 10024', '4b9125ec', 'bebe5b0f');$geo('273 E 3rd St, New York, NY 10009', '9929e9f3', 'bebe5b0f');$geo('1180 3rd Ave, New York, NY 10065', '1533f3a2', 'bebe5b0f');$geo('700 Saint Nicholas Ave, New York, NY 10031', 'd9e016f2', 'bebe5b0f');$geo('1295 2nd Ave, New York, NY 10065', '22b221f7', 'bebe5b0f');$geo('116 Bowery, New York, NY 10013', '8558661d', 'bebe5b0f');$geo('1 Penn Plz, New York, NY 10119', '801ac5bb', 'bebe5b0f');$geo('159 2nd Ave, New York, NY 10003', 'cc43a6e7', 'bebe5b0f');$geo('404 5th Ave, New York, NY 10018', '897564d4', 'bebe5b0f');$geo('120 W 23rd St, New York, NY 10011', '7d977202', 'bebe5b0f');$geo('750 Columbus Ave, New York, NY 10025', '2a415550', 'bebe5b0f');$geo('840 9th Ave, New York, NY 10019', '1701cd65', 'bebe5b0f');$geo('1407 Broadway, New York, NY 10018', '69807aef', 'bebe5b0f');$geo('220 E 42nd St, New York, NY 10017', '8ebaae12', 'bebe5b0f');$geo('1745 Broadway, New York, NY 10019', '4b158496', 'bebe5b0f');$geo('1166 Avenue of the Americas, New York, NY 10036', 'd0f480f8', 'bebe5b0f');$geo('620 W 181st St, New York, NY 10033', '1a5e1b31', 'bebe5b0f');$geo('401 West 23rd Street, New York, NY 10011', '902e1316', 'bebe5b0f');$geo('1999 1st Ave, New York, NY 10029', '97424302', 'bebe5b0f');$geo('109 E 42nd St, New York, NY 10017', '95ce1cc7', 'bebe5b0f');$geo('200 W 135th St, New York, NY 10030', '9376c9f6', 'bebe5b0f');$geo('1865 2nd Ave, New York, NY 10029', '6a32b40e', 'bebe5b0f');$geo('31 E 17th St, New York, NY 10003', '56af6925', 'bebe5b0f');$geo('21 University Pl, New York, NY 10003', '8be04b68', 'bebe5b0f');$geo('175 W 72nd St, New York, NY 10023', '40ed5960', 'bebe5b0f');$geo('1345 3rd Ave, New York, NY 10075', '861652f9', 'bebe5b0f');$geo('211 Dyckman St, New York, NY 10040', '84e19437', 'bebe5b0f');$geo('57 W 57th St, New York, NY 10019', 'a447ed3a', 'bebe5b0f');$geo('90 W Broadway, New York, NY 10007', '5cd71bc7', 'bebe5b0f');$geo('750 3rd Ave, New York, NY 10017', '0279a9e5', 'bebe5b0f');$geo('502 Park Ave, New York, NY 10022', 'f6db69a3', 'bebe5b0f');$geo('1001 Avenue of the Americas, New York, NY 10018', '1c5cfff8', 'bebe5b0f');$geo('501 Broadway, New York, NY 10012', '2a0c2dc8', 'bebe5b0f');$geo('123 3rd Ave, New York, NY 10003', 'c71f5311', 'bebe5b0f');$geo('154 Bleecker St, New York, NY 10012', 'b5000bb3', 'bebe5b0f');$geo('1512 2nd Ave, New York, NY 10075', 'af45a780', 'bebe5b0f');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';});}