var map = new OpenLayers.Map("austin-TX-cash-america-pawn");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( -97.7499, 30.2202 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('611 S Lamar Blvd, Austin, TX 78704', '5234a0f7', 'b504bde4');$geo('2400 S 1st St, Austin, TX 78704', '97996449', 'b504bde4');$geo('1901 W William Cannon Dr, Austin, TX 78745', 'f897cf79', 'b504bde4');$geo('3402 Guadalupe St, Austin, TX 78705', '11d77b99', 'b504bde4');$geo('9616 N Lamar Blvd Suite 100, Austin, TX 78753-4150', 'ad500a21', 'b504bde4');$geo('1701 E William Cannon Dr, Austin, TX 78744-3409', '82b37d4d', 'b504bde4');$geo('6214 W Highway 290, Austin, TX 78735', '13a6c7e4', 'b504bde4');$geo('2321 E 7th St, Austin, TX 78702', 'a442efb4', 'b504bde4');$geo('7544 N Lamar Blvd, Austin, TX 78752', 'ad80ce62', 'b504bde4');$geo('1620 Ohlen Rd, Austin, TX 78758', '39a1e5a8', 'b504bde4');$geo('501 W Ben White Blvd, Austin, TX 78704', '3bd7abd0', 'b504bde4');$geo('2410 E Riverside Dr Ste A-3, Austin, TX 78741-1252', '69c7b830', 'b504bde4');$geo('5301 Airport Blvd, Austin, TX 78751-2220', '65ca7b86', 'b504bde4');$geo('2121 E Oltorf Street Suite 102 Oltorf Market Shopping Center, Austin, TX 78741', 'e70a8bd8', 'b504bde4');$geo('11857 Research Blvd, Austin, TX 78759-2443', 'a9e7c234', 'b504bde4');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';});}