var map = new OpenLayers.Map("dallas-TX-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( -96.7985, 32.7872 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('9245 Skillman St Ste 106, Dallas, TX 75243-9044', '70f94355', 'cb340d74');$geo('6780 Abrams Rd, Dallas, TX 75231-7170', '4b12476a', 'cb340d74');$geo('1924 W Jefferson Blvd, Dallas, TX 75208-5579', 'e12f5851', 'cb340d74');$geo('1408 S Buckner Blvd, Dallas, TX 75217-1703', 'd11e177c', 'cb340d74');$geo('4323 W Illinois Ave Ste 101, Dallas, TX 75211-8460', '60ea9979', 'cb340d74');$geo('4343 W Camp Wisdom Rd 150, Dallas, TX 75237', '28e2fda0', 'cb340d74');$geo('10622 Garland Rd, Dallas, TX 75218-2639', '03418386', 'cb340d74');$geo('7914 Spring Valley Rd, Dallas, TX 75254-2896', '5d127f37', 'cb340d74');$geo('2232 S Buckner Blvd, Dallas, TX 75227-8603', 'dcb608e4', 'cb340d74');$geo('4701 Frankford Rd Ste 229, Dallas, TX 75287-7131', 'd3da7727', 'cb340d74');$geo('10051 Marsh Ln, Dallas, TX 75229-6058', 'c23952de', 'cb340d74');$geo('2613 S Lancaster Rd, Dallas, TX 75216-3112', '5f61376e', 'cb340d74');$geo('4043 Trinity Mills Rd, Dallas, TX 75287-6757', 'f6bd6bf5', 'cb340d74');$geo('10257 Ferguson Rd, Dallas, TX 75228-3012', '6f484149', 'cb340d74');$geo('2731 W Northwest Hwy Ste 108, Dallas, TX 75220-4782', '976505be', 'cb340d74');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';});}