var map = new OpenLayers.Map("portland-OR-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.692, 45.4986 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('7615 Sw 13th Ave, Portland, OR 97219', '8b8ee199', 'fd526028');$geo('12240 N Jantzen Dr, Portland, OR 97217', 'a633cc01', 'fd526028');$geo('4515 Se Woodstock Blvd, Portland, OR 97206', '9a55ee53', 'fd526028');$geo('8334 N Denver Ave, Portland, OR 97217', '4b291ffa', 'fd526028');$geo('635 SW 6th Ave, Portland, OR 97204', '87c475db', 'fd526028');$geo('3782 Se Hawthorne Blvd, Portland, OR 97214', '734e2a5e', 'fd526028');$geo('1640 Nw 19th Ave, Portland, OR 97209', '2ba695e7', 'fd526028');$geo('5615 Sw Macadam Ave, Portland, OR 97239', '098bba07', 'fd526028');$geo('1900 Sw 5th Ave, Portland, OR 97201', 'fe5c7ec7', 'fd526028');$geo('1610 NE 122nd Ave, Portland, OR 97230', '559b0b18', 'fd526028');$geo('1405 Lloyd Ctr, Portland, OR 97232', '9108f4e3', 'fd526028');$geo('10305 SE Washington St, Portland, OR 97216', '042e609a', 'fd526028');$geo('845 NW 11th Ave, Portland, OR 97209', '12f12261', 'fd526028');$geo('6646 Se Milwaukie Ave, Portland, OR 97202', 'd7935ab0', 'fd526028');$geo('12005 SE Division St, Portland, OR 97266', '7548acb5', 'fd526028');$geo('1972 W Burnside St, Portland, OR 97209', 'c10662c3', 'fd526028');$geo('7410 SW Oleson Rd, Portland, OR 97223', '25bcc928', 'fd526028');$geo('13485 NW Cornell Rd, Portland, OR 97229', 'c06532d1', 'fd526028');$geo('3275 NW 29th Ave, Portland, OR 97210', 'b5560ec2', 'fd526028');$geo('5444 SE 82nd Ave, Portland, OR 97266', '480cbefe', 'fd526028');$geo('5730 NE M L King Blvd, Portland, OR 97211', '4285b1e2', 'fd526028');$geo('8330 N Ivanhoe St, Portland, OR 97203', '652f09fb', 'fd526028');$geo('440 Se 181st Ave, PORTLAND, OR 97233', '47ec249c', 'fd526028');$geo('310 Se Taylor St, Portland, OR 97214', 'eda23046', 'fd526028');$geo('3625 SE Cesar E Chavez Blvd, Portland, OR 97202', 'b0f8395d', 'fd526028');$geo('6785 SW Beaverton Hillsdale Hwy, Portland, OR 97225', '5185d581', 'fd526028');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';});}