var map = new OpenLayers.Map("phoenix-AZ-liberty-tax-service");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( -112.069, 33.4492 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('1716 W Bell Rd, Phoenix, AZ 85023-3414', '3c089a7b', '4f74f85a');$geo('3528 W Glendale Ave, Phoenix, AZ 85051-8395', '8155d375', '4f74f85a');$geo('7602 W Indian School Rd, Phoenix, AZ 85033-3033', '0fe10ca7', '4f74f85a');$geo('10625 N 35th Ave A, Phoenix, AZ 85029', '1baeb736', '4f74f85a');$geo('7002 S Central Ave, Phoenix, AZ 85042-5423', 'ff015247', '4f74f85a');$geo('4757 E Greenway Rd Ste 105, Phoenix, AZ 85032-8509', 'c5459ca1', '4f74f85a');$geo('1635 E Indian School Rd, Phoenix, AZ 85016-5924', '37ce83bf', '4f74f85a');$geo('4266 W Thomas Rd, Phoenix, AZ 85019-4335', 'a318289d', '4f74f85a');$geo('3428 W Bell Rd, Phoenix, AZ 85053-2926', '97da666f', '4f74f85a');$geo('2837 N 75th Ave Ste 5, Phoenix, AZ 85035-1217', 'c91c535d', '4f74f85a');$geo('602 W Union Hills Dr Ste 9, Phoenix, AZ 85027-6629', 'd097a3af', '4f74f85a');$geo('8310 W Thomas Rd Ste 103, Phoenix, AZ 85037-3322', 'b35e287d', '4f74f85a');$geo('2908 W Camelback Rd, Phoenix, AZ 85017-3301', '108bb49a', '4f74f85a');$geo('1601 E Bell Rd Ste A15, Phoenix, AZ 85022-2895', '3c7bec7d', '4f74f85a');$geo('4501 E Thomas Rd Ste 110, Phoenix, AZ 85018-7600', '38d5f977', '4f74f85a');$geo('2330 E McDowell Rd Ste A, Phoenix, AZ 85006-2440', '720b0b45', '4f74f85a');$geo('5950 W McDowell Rd Ste 106, Phoenix, AZ 85035-4989', 'a9437d22', '4f74f85a');$geo('2701 W Northern Ave Ste 104, Phoenix, AZ 85051-6812', '09827699', '4f74f85a');$geo('1607 N 7th Ave, Phoenix, AZ 85007-1701', '4732ebdb', '4f74f85a');$geo('1920 W Camelback Rd, Phoenix, AZ 85015-3482', 'b7bb4f9e', '4f74f85a');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';});}