var map = new OpenLayers.Map("seattle-WA-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( -122.333, 47.6113 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('360 NW Richmond Beach Rd, Seattle, WA 98177', 'c12082a6', '81cdaac5');$geo('4314 Sw Alaska St, Seattle, WA 98116', '0d4f713b', '81cdaac5');$geo('13273 Aurora Ave N, Seattle, WA 98133', 'a1bb0c10', '81cdaac5');$geo('625 5th Ave S, Seattle, WA 98104', '746354c8', '81cdaac5');$geo('1026 NE 64th St, Seattle, WA 98115', 'f21f6a09', '81cdaac5');$geo('401 Broadway E, Seattle, WA 98102', 'd645b636', '81cdaac5');$geo('2800 3rd Ave, Seattle, WA 98121', '94205f90', '81cdaac5');$geo('4568 Sand Point Way Ne, Seattle, WA 98105', '99b6c338', '81cdaac5');$geo('1819 NW Market St, Seattle, WA 98107', 'a742dbfe', '81cdaac5');$geo('8517 35th Ave NE, Seattle, WA 98115', '19e0e08b', '81cdaac5');$geo('4500 University Way NE, Seattle, WA 98105', '9f597209', '81cdaac5');$geo('1317 Madison St, Seattle, WA 98104', '0593f6f8', '81cdaac5');$geo('4100 University Way NE, Seattle, WA 98105', 'f849a138', '81cdaac5');$geo('1410 E John St, Seattle, WA 98112', '9a3fc169', '81cdaac5');$geo('2358 California Ave Sw, Seattle, WA 98116', '7df24c79', '81cdaac5');$geo('5963 Corson Ave S, Seattle, WA 98108', '57153e1a', '81cdaac5');$geo('3100 Rainier Ave S, Seattle, WA 98144', '783e1157', '81cdaac5');$geo('8340 15th Ave NW, Seattle, WA 98117', 'c472469d', '81cdaac5');$geo('510 Terry Ave N, Seattle, WA 98109', '4923242d', '81cdaac5');$geo('4009 E Madison St, Seattle, WA 98112', 'fc88e904', '81cdaac5');$geo('1701 N 45th St, Seattle, WA 98103', '700cac08', '81cdaac5');$geo('1620 4th Ave, Seattle, WA 98101', 'b3156a8e', '81cdaac5');$geo('1827 15th Ave W, Seattle, WA 98119', 'e5f6921d', '81cdaac5');$geo('1763 4th Ave S, Seattle, WA 98134', '0bdde0ca', '81cdaac5');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';});}