var map = new OpenLayers.Map("fort-worth-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( -97.3291, 32.7594 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('115 W Seminary Dr, Fort Worth, TX 76115-2603', 'fc072778', '95d496d6');$geo('3401 Altamesa Blvd Ste 143, Fort Worth, TX 76133-5772', 'a9ccafd7', '95d496d6');$geo('809 E Berry St, Fort Worth, TX 76110-4414', '6346cfab', '95d496d6');$geo('6225 Oakmont Trl, Fort Worth, TX 76132-3024', '90f268e3', '95d496d6');$geo('4624 E Lancaster Ave, Fort Worth, TX 76103-3213', 'befa7daf', '95d496d6');$geo('5932 Curzon Ave, Fort Worth, TX 76107-5012', '3a39e8cc', '95d496d6');$geo('6730 Brentwood Stair Rd, Fort Worth, TX 76112-3310', 'aa259533', '95d496d6');$geo('9112 Camp Bowie West Blvd Ste 150, Fort Worth, TX 76116-5945', '9e19cde8', '95d496d6');$geo('1324 N Main St, Fort Worth, TX 76164-9117', 'c749dc75', '95d496d6');$geo('6245 Rufe Snow Dr Ste 302, Fort Worth, TX 76148-3396', 'bd85dc81', '95d496d6');$geo('115 Longhorn Rd, Fort Worth, TX 76179-2401', '836491b9', '95d496d6');$geo('5200 N Tarrant Pkwy Ste 124, Fort Worth, TX 76137-5757', '4a13c690', '95d496d6');$geo('1100 Bridgewood Dr, Fort Worth, TX 76112-0808', 'a43cfab3', '95d496d6');$geo('3305 N Main St Ste 113, Fort Worth, TX 76106-4390', '43c07714', '95d496d6');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';});}