var map = new OpenLayers.Map("albuquerque-NM-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( -106.643, 35.2005 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('7412 Jefferson St Ne, Albuquerque, NM 87109', 'b1bfb019', 'e8595644');$geo('5850 Eubank Blvd NE, Albuquerque, NM 87111', 'aa1562a0', 'e8595644');$geo('156 Juan Tabo Blvd NE, Albuquerque, NM 87123', 'f75c6330', 'e8595644');$geo('8333 Montgomery Blvd NE, Albuquerque, NM 87109', 'cf7c8dc8', 'e8595644');$geo('8100 Wyoming Blvd NE, Albuquerque, NM 87113', '20aacf79', 'e8595644');$geo('1406 Bridge Blvd SW, Albuquerque, NM 87105', '360dfc79', 'e8595644');$geo('3022 Central Ave SE, Albuquerque, NM 87106', '7bde813b', 'e8595644');$geo('111 Coors Blvd NW, Albuquerque, NM 87121', '2cbc7a66', 'e8595644');$geo('550 San Mateo Blvd SE, Albuquerque, NM 87108', 'cd8ce9ba', 'e8595644');$geo('3701 Constitution Ave NE, Albuquerque, NM 87110', '6fbd6a5d', 'e8595644');$geo('7827 4th St NW, Albuquerque, NM 87107', '9727f7d3', 'e8595644');$geo('6000 Menaul Blvd NE, Albuquerque, NM 87110', '23b82b80', 'e8595644');$geo('9390 Coors Blvd NW, Albuquerque, NM 87114', 'e1273410', 'e8595644');$geo('3401 Coors Blvd Nw, Albuquerque, NM 87120', '4e746199', 'e8595644');$geo('6200 Coors Blvd NW, Albuquerque, NM 87120', '06bd47a9', 'e8595644');$geo('3801 4th St NW, Albuquerque, NM 87107', '9da11c27', 'e8595644');$geo('11825 Lomas Blvd NE, Albuquerque, NM 87112', '82692fcb', 'e8595644');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';});}