var map = new OpenLayers.Map("staten-island-NY-santander-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( -74.0946, 40.6288 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('800 Forest Avenue, Staten Island, NY 10310', '26901e9b', '1eb089cf');$geo('2700 Hylan Boulevard, Staten Island, NY 10306', '23470e84', '1eb089cf');$geo('1837 Victory Boulevard, Staten Island, NY 10314', '9e1cacea', '1eb089cf');$geo('2655 Richmond Avenue, Staten Island, NY 10314', 'abfb293f', '1eb089cf');$geo('4025 Amboy Road, Staten Island, NY 10308', '392fdf6e', '1eb089cf');$geo('3150 Amboy Road, Staten Island, NY 10306', '6575f1bb', '1eb089cf');$geo('257 New Dorp Lane, Staten Island, NY 10306', '528a4d0b', '1eb089cf');$geo('4310 Amboy Road, Staten Island, NY 10312', 'd65ec21d', '1eb089cf');$geo('1850 Victory Boulevard, Staten Island, NY 10314', '99b482a3', '1eb089cf');$geo('6975 Amboy Road, Staten Island, NY 10307', 'f24850d5', '1eb089cf');$geo('475 Forest Avenue, Staten Island, NY 10301', '2f0ca04d', '1eb089cf');$geo('1320 Hylan Boulevard, Staten Island, NY 10305', 'd77f74dd', '1eb089cf');$geo('1630 Richmond Road, Staten Island, NY 10304', '8b8952a8', '1eb089cf');$geo('1460 Forest Avenue, Staten Island, NY 10302', '9bdcc133', '1eb089cf');$geo('15 Hyatt Street, Staten Island, NY 10301', '90b8dafa', '1eb089cf');$geo('1550 Richmond Road, Staten Island, NY 10304', '1047589a', '1eb089cf');$geo('1630 Forest Avenue, Staten Island, NY 10302', 'fa344926', '1eb089cf');$geo('900 Huguenot Avenue, Staten Island, NY 10312', '3df3b72f', '1eb089cf');$geo('81 Water Street, Staten Island, NY 10304', '9c6c24cf', '1eb089cf');$geo('43 Richmond Hill Road, Staten Island, NY 10314', '7b1bc4ce', '1eb089cf');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';});}