Life is sweet in Bryan, Ohio, a small town with BIG things to offer.
We have unique downtown shops, excellent locally-owned eateries, beautiful parks, and lots of family-friendly events around our historic courthouse square.
`;check_pins();$('#map-sidebar').empty().append(html);if ($('#map-sidebar .location').length == 1) {var $this = $('#map-sidebar .location:first-child');var id = $this.data('id');$this.addClass('active').siblings().removeClass('active');var location = get_location_by_id(id);remove_open_popups();location.marker.togglePopup();} else remove_open_popups();}function get_location_markup(data) {if (data.point_spangler == 0) count++;var html = `
${data.point_spangler == 0 ? count : ''}
${data.category_title ? `${data.category_title}
` : ''}${data.point_title}
`;return html;}function check_pins() { let visibleIDs = [];filtered_json.forEach(el => { visibleIDs.push(el.point_id)})show_all_markers();markers.forEach(marker => {if (!visibleIDs.includes(marker.id)) marker.remove()})}/* --- Filters -- */$('#map-filters select').change(function() {current_page = 1;filter_data();update_URL();});$('#map-filters').submit(function(e) {e.preventDefault();current_page = 1;filter_data();update_URL();})function filter_data() {count = 0;filters.category_id = $('#point-category').val();filters.search = $('#point-search').val();filtered_json = json.filter(function(point) {if (filters.category_id && filters.category_id != point.category_id) return false;else if (filters.search && !point.point_title.toLowerCase().includes(filters.search.toLowerCase()) && !point.point_desc.toLowerCase().includes(filters.search.toLowerCase())) return false;return true;});if (!filtered_json.length) {$('#point-map-sidebar').empty().append('
There are no locations that match your search.
');} else {populate_map_sidebar();if (filters.category_id != '' || filters.search != '') {console.log(filters)setTimeout(function() {$('#map-sidebar .location:visible:first').click();}, 200);}}}function update_URL() {// append to urllet params = '?';let category = $('#point-category').val();if (category) params += 'category_id=' + category + '&';if ($('#point-search').val()) params += 'search=' + $('#point-search').val() + '&';if (params.charAt(params.length - 1) == '&') {params = params.substr(0, params.length - 1);}window.history.pushState('', 'Places of Interest Map', location.pathname + params);}/* --- Map Sidebar Interactions --- */$('#map-sidebar').on('click', '.location', function() {var id = $(this).data('id');$(this).addClass('active').siblings().removeClass('active');var location = get_location_by_id(id);remove_open_popups();location.marker.togglePopup();});});/* --- Mapbox --- */var locations_json = [{"point_id":"42","category_id":"0","point_title":"Spangler Candy Company Factory","point_url":"spangler-candy-company-factory","point_desc":"
Factory where 12 million Dum-Dums are made every day!<\/p>","point_address":"400 West Portland Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.478019","point_lng":"-84.5563976","point_image":"","point_link":"https:\/\/www.spanglercandy.com","point_spangler":"1","point_status":"1","category_title":null},{"point_id":"46","category_id":"0","point_title":"Spangler Candy World","point_url":"spangler-candy-world","point_desc":"","point_address":"131 South Main Street","point_address2":"","point_city":"Bryan","point_state":"OH","point_zip":"43506","point_phone":"","point_lat":"41.473700","point_lng":"-84.550780","point_image":"","point_link":"","point_spangler":"1","point_status":"1","category_title":null},{"point_id":"3","category_id":"1","point_title":"Bill's Locker Room","point_url":"bills-locker-room","point_desc":"
Sporting Goods and Custom Apparel.<\/p>","point_address":"109 South Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.474281","point_lng":"-84.550438","point_image":"","point_link":"https:\/\/www.Billslockerroom3.com","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"4","category_id":"8","point_title":"Bryan Lanes","point_url":"bryan-lanes","point_desc":"
Family Bowling Center<\/p>","point_address":"1307 West High Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.47401","point_lng":"-84.57092","point_image":"","point_link":"www.bryanbowling.com","point_spangler":"0","point_status":"1","category_title":"Recreation"},{"point_id":"5","category_id":"3","point_title":"Bryan Recreation Park","point_url":"bryan-recreation-park","point_desc":"
78-acre park, home to 18-hold disc golf course, Imagination Station playground, baseball\/softball fields, sand volleyball court, basketball courts, tennis courts, soccer fields. Paved paths for biking, walking & running, plus pavilion and amphitheater available to rent.<\/p>","point_address":"850 Center Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.46585","point_lng":"-84.56271","point_image":"","point_link":"www.cityofbryan.com","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"6","category_id":"2","point_title":"Bryan Theater","point_url":"bryan-theater","point_desc":"
Movie Theater<\/p>","point_address":"140 South Lynn Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43056","point_phone":"","point_lat":"41.4737915","point_lng":"-84.5527297","point_image":"","point_link":"www.bryantheater.com","point_spangler":"0","point_status":"1","category_title":"Entertainment"},{"point_id":"8","category_id":"3","point_title":"Central Park","point_url":"central-park","point_desc":"
1\/4 acre park with fountain, gazebo, and walking path.<\/p>","point_address":"430 South Portland Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4699964","point_lng":"-84.5560537","point_image":"","point_link":"www.cityofbryan.com","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"9","category_id":"1","point_title":"COVE Interiors & Salon","point_url":"cove-interiors-salon","point_desc":"
Home Goods and Aveda Salon<\/p>","point_address":"122 South Lynn Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4740728","point_lng":"-84.55273","point_image":"","point_link":"www.cove419.com","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"10","category_id":"1","point_title":"Crossed Rifles","point_url":"crossed-rifles","point_desc":"
Sporting goods, firearms and training<\/p>","point_address":"127 South Walnut Street","point_address2":"","point_city":"Bryan ","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4736704","point_lng":"-84.5493681","point_image":"","point_link":"www.crossedriflestraining.com","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"11","category_id":"1","point_title":"Donaldson's Ace Hardware","point_url":"donaldsons-ace-hardware","point_desc":"
Ace Hardware Store<\/p>","point_address":"421 North Union Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4793563","point_lng":"-84.5369365","point_image":"","point_link":"www.acehardware.com","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"24","category_id":"3","point_title":"East End Park","point_url":"east-end-park","point_desc":"
33.3-acre park and pool with water slide and diving board; baseball diamond, basketball court, play equipment, and pavilion, six pickleball courts; handicap accessible.<\/p>","point_address":"1400 East High Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4751325","point_lng":"-84.5307749","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"13","category_id":"1","point_title":"EllieAnn's","point_url":"ellieanns","point_desc":"
Women's boutique apparel, accessories, shoes and home goods<\/p>","point_address":"119 South Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.47408","point_lng":"-84.5505968","point_image":"","point_link":"https:\/\/www.facebook.com\/ellianns\/","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"14","category_id":"1","point_title":"Endless Creations","point_url":"endless-creations","point_desc":"
Multi-merchant art and crafts store<\/p>","point_address":"110 South Lynn Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4743187","point_lng":"-84.552772","point_image":"","point_link":"https:\/\/www.facebook.com\/endlesscreations19\/","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"25","category_id":"1","point_title":"Faith + Grace Baby Boutique","point_url":"faith-grace-baby-boutique","point_desc":"
Baby apparel & accessories, maternity apparel & supplies<\/p>","point_address":"117 South Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4743501","point_lng":"-84.5508051","point_image":"","point_link":"https:\/\/www.facebook.com\/faith.gracebabyboutique","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"15","category_id":"5","point_title":"Father John's Microbrewery","point_url":"father-johns-microbrewery","point_desc":"
Vintage rooms in a charming 19th-century parsonage-turned brewery featuring a restaurant\/pub.<\/p>","point_address":"301 West Butler Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4730075","point_lng":"-84.5540102","point_image":"","point_link":"https:\/\/www.facebook.com\/pages\/Father-Johns-Brewing-Company\/309231429910583","point_spangler":"0","point_status":"1","category_title":"Dining"},{"point_id":"16","category_id":"7","point_title":"Father John's Stoned Goat Inn","point_url":"father-johns-stoned-goat-inn","point_desc":"
Restored 1875 parsonage w\/ adjoining restaurant, 5 private rooms available<\/p>","point_address":"301 West Butler Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4730075","point_lng":"-84.5540102","point_image":"","point_link":"https:\/\/www.facebook.com\/pages\/Father-Johns-Brewing-Company\/309231429910583","point_spangler":"0","point_status":"1","category_title":"Lodging"},{"point_id":"17","category_id":"1","point_title":"Fearfully Made Boutique","point_url":"fearfully-made-boutique","point_desc":"
men's and women's boutique clothing<\/p>","point_address":"100 South Lynn Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4744254","point_lng":"-84.5526582","point_image":"","point_link":"www.fearfullymadeboutique.com","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"18","category_id":"2","point_title":"Fountain City Amphitheater","point_url":"fountain-city-amphitheater","point_desc":"
City of Bryan outdoor theater featuring outdoor events May through September<\/p>","point_address":"526 Avenue B","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.468905","point_lng":"-84.565528","point_image":"","point_link":"www.cityofbryan.com\/fcamphitheater","point_spangler":"0","point_status":"1","category_title":"Entertainment"},{"point_id":"19","category_id":"3","point_title":"Fountain City Park","point_url":"fountain-city-park","point_desc":"
7.7-acre park, home to city's skate park and sledding hill<\/p>","point_address":"925 Union Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4657543","point_lng":"-84.536079","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"20","category_id":"3","point_title":"Garver Park","point_url":"garver-park","point_desc":"
13.2 acre park with paved paths, pavilion, playground equipment, baseball field, and walking path<\/p>","point_address":"521 Blakeslee Avenue","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4717792","point_lng":"-84.5600906","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"21","category_id":"5","point_title":"Grand Plaza Mexican Grill","point_url":"grand-plaza-mexican-grill","point_desc":"
Mexican cuisine, drinks and desserts<\/p>","point_address":"139 West Butler Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4731722","point_lng":"-84.5521184","point_image":"","point_link":"http:\/\/www.grandplazarestaurant.com\/","point_spangler":"0","point_status":"1","category_title":"Dining"},{"point_id":"26","category_id":"3","point_title":"Hitt Park","point_url":"hitt-park","point_desc":"
1-acre park featuring pavilion with restrooms, basketball court and playground equipment<\/p>","point_address":"220 Bement Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.482282","point_lng":"-84.5525422","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"22","category_id":"3","point_title":"Israel Gardens Butterfly Park","point_url":"israel-gardens-butterfly-park","point_desc":"
1\/2-acre park<\/p>","point_address":"1510 Brenner Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.507820","point_lng":"-84.508652","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"23","category_id":"5","point_title":"Kora Brew House & Wine Bar","point_url":"kora-brew-house-wine-bar","point_desc":"
Premium coffee, world-class wines, regional microbrews, flatbreads, salads, and local entertainment<\/p>","point_address":"120 South Lynn Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"","point_phone":"","point_lat":"41.4741335","point_lng":"-84.5527301","point_image":"","point_link":"https:\/\/www.korabrewandwine.com\/","point_spangler":"0","point_status":"1","category_title":"Dining"},{"point_id":"27","category_id":"1","point_title":"Mad Ox's Men's Emporium","point_url":"mad-oxs-mens-emporium","point_desc":"
Men's apparel & giftware store, specialty foods and barware<\/p>","point_address":"119 South Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.47408","point_lng":"-84.5505968","point_image":"","point_link":"https:\/\/www.facebook.com\/profile.php?id=100063716342108","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"28","category_id":"3","point_title":"Mattie Marsh Park","point_url":"mattie-marsh-park","point_desc":"
1-acre park in residential area. Pavilion with restrooms, basketball court & playground equipment<\/p>","point_address":"410 East Trevitt Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4783323","point_lng":"-84.5458438","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"29","category_id":"4","point_title":"Michindoh Winery","point_url":"michindoh-winery","point_desc":"
Small country winery located in Ohio, near Indiana and Michigan lines.<\/p>","point_address":"3850 County Road 7","point_address2":"","point_city":"Edgerton","point_state":"Ohio","point_zip":"43517","point_phone":"","point_lat":"41.46798","point_lng":"-84.690753","point_image":"","point_link":"","point_spangler":"0","point_status":"1","category_title":"Winery"},{"point_id":"30","category_id":"3","point_title":"Moore Park & Pool","point_url":"moore-park-pool","point_desc":"","point_address":"1017 Oakwood Avenue","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.470197","point_lng":"-84.5659918","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"31","category_id":"5","point_title":"O'Bryan's","point_url":"obryans","point_desc":"
Pub and Sports Bar<\/p>","point_address":"1307 West High Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4739317","point_lng":"-84.5709693","point_image":"","point_link":"http:\/\/bryanbowling.com\/obryans\/","point_spangler":"0","point_status":"1","category_title":"Dining"},{"point_id":"32","category_id":"8","point_title":"Opdycke Park Disc Golf Course","point_url":"opdycke-park-disc-golf-course","point_desc":"","point_address":"9998 County Road 16","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.5501818","point_lng":"-84.5167184","point_image":"","point_link":"","point_spangler":"0","point_status":"1","category_title":"Recreation"},{"point_id":"33","category_id":"6","point_title":"Parlor 1861","point_url":"parlor-1861","point_desc":"
event rental space for personal and business events<\/p>","point_address":"137 South Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"","point_phone":"","point_lat":"41.4735938","point_lng":"-84.5505935","point_image":"","point_link":"https:\/\/www.facebook.com\/Parlor1861\/","point_spangler":"0","point_status":"1","category_title":"Venue"},{"point_id":"34","category_id":"5","point_title":"Partner in Crime Catering","point_url":"partner-in-crime-catering","point_desc":"
Bakery and Catering<\/p>","point_address":"110 North Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4749617","point_lng":"-84.5506017","point_image":"","point_link":"https:\/\/www.facebook.com\/partnerincrimecatering\/","point_spangler":"0","point_status":"1","category_title":"Dining"},{"point_id":"35","category_id":"8","point_title":"Recreation Park Disc Golf Course","point_url":"recreation-park-disc-golf-course","point_desc":"","point_address":"630 Newdale Drive","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4682864","point_lng":"-84.57088","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Recreation"},{"point_id":"36","category_id":"7","point_title":"Room 108","point_url":"room-108","point_desc":"
Trendy loft apartment in downtown Bryan<\/p>","point_address":"108 South Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4742798","point_lng":"-84.5525597","point_image":"","point_link":"https:\/\/www.facebook.com\/room108bryan\/","point_spangler":"0","point_status":"1","category_title":"Lodging"},{"point_id":"37","category_id":"3","point_title":"Roseland Park","point_url":"roseland-park","point_desc":"
8-acres, with pavilion with restrooms, basketball court, tennis court and playground equipment<\/p>","point_address":"319 East South Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4642106","point_lng":"-84.5468819","point_image":"","point_link":"https:\/\/www.cityofbryan.com\/parks-recreation\/","point_spangler":"0","point_status":"1","category_title":"Parks"},{"point_id":"38","category_id":"7","point_title":"Sauder Heritage Inn","point_url":"sauder-heritage-inn","point_desc":"
Beautiful country lodge at Sauder Village<\/p>","point_address":"22611 State Route 2","point_address2":"","point_city":"Archbold","point_state":"Ohio","point_zip":"43502","point_phone":"","point_lat":"41.5428342","point_lng":"-84.3008591","point_image":"","point_link":"https:\/\/saudervillage.org\/stay\/sauder-heritage-inn","point_spangler":"0","point_status":"1","category_title":"Lodging"},{"point_id":"39","category_id":"2","point_title":"Sauder Village Living History Museum & Village","point_url":"sauder-village-living-history-museum-village","point_desc":"
235-acre historic village featuring living history farm & craft village preserving more than 75 historic structures and nearly 50,000 artifacts, 98-room Sauder Heritage Inn, 87-site Sauder Village campground, 350-seat Barn Restaurant, Doughbox Bakery, and banquet seating for 750 in Founder's Hall<\/p>","point_address":"22611 State Route 2","point_address2":"","point_city":"Archbold","point_state":"Ohio","point_zip":"43502","point_phone":"","point_lat":"41.5428342","point_lng":"-84.3008591","point_image":"","point_link":"https:\/\/saudervillage.org\/","point_spangler":"0","point_status":"1","category_title":"Entertainment"},{"point_id":"40","category_id":"5","point_title":"Season's Coffee & Bistro","point_url":"seasons-coffee-bistro","point_desc":"
coffee shop serving breakfast & lunch<\/p>","point_address":"105 South Main Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4743831","point_lng":"-84.5506572","point_image":"","point_link":"www.seasonscoffeeandbistro.com","point_spangler":"0","point_status":"1","category_title":"Dining"},{"point_id":"41","category_id":"1","point_title":"Silver & Vine","point_url":"silver-vine","point_desc":"
handmade silver jewelry and apparel. Naturally dyed textiles, pressed flower art and gifts<\/p>","point_address":"125 South Beech Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4736427","point_lng":"-84.5532878","point_image":"","point_link":"https:\/\/www.silverandvine.com\/","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"43","category_id":"4","point_title":"Stoney Ridge Winery","point_url":"stoney-ridge-winery","point_desc":"
Family-run winery, open year round. Offers seasonal dry & sweet varieties produced on its own 13-acre vineyard. Includes tasting room, a hideout room, and indoor and outdoor event spaces including a scenic pond and woods<\/p>","point_address":"7144 County Road 16","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.5163632","point_lng":"-84.5110511","point_image":"","point_link":"www.stoneyridgewinery.com","point_spangler":"0","point_status":"1","category_title":"Winery"},{"point_id":"44","category_id":"1","point_title":"Town & Country","point_url":"town-country","point_desc":"
Hometown hardware and farm supply store<\/p>","point_address":"1210 East High Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4746603","point_lng":"-84.5338435","point_image":"","point_link":"https:\/\/stores.truevalue.com\/oh\/bryan\/19954\/","point_spangler":"0","point_status":"1","category_title":"Shopping"},{"point_id":"45","category_id":"2","point_title":"Williams Country Community Theater","point_url":"williams-country-community-theater","point_desc":"
Community theater presently under renovation<\/p>","point_address":"208 West Butler Street","point_address2":"","point_city":"Bryan","point_state":"Ohio","point_zip":"43506","point_phone":"","point_lat":"41.4733792","point_lng":"-84.552842","point_image":"","point_link":"","point_spangler":"0","point_status":"1","category_title":"Entertainment"}];var map_data = {locations: []};var markers = [];var mobile = false;if ($(window).innerWidth() <= 900) mobile = true;mapboxgl.accessToken = 'pk.eyJ1IjoidGhlZm9ybWdyb3VwIiwiYSI6IlBtaEw1Y0EifQ.-SYgQ9NUuJC9ycsAWxNY1w';var map = new mapboxgl.Map({container: 'point-map-area',style: 'mapbox://styles/theformgroup/clqy3solw00qd01nv98qggd56', // stylesheet locationcenter: [-84.550780, 41.473700], // starting position [lng, lat] CANDY WORLDzoom: 17 // starting zoom});map.addControl(new mapboxgl.NavigationControl());map.scrollZoom.disable();var bounds = new mapboxgl.LngLatBounds();locations_json.forEach(function(data) {var location = new Location(data);// create the popupvar popup = create_popup(location);popup.on('open', function(e) {$('#map-sidebar .location').removeClass('active');// Add 'selected' class to the markermarker.getElement().classList.add('selected');$('html, body').scrollTop($('#map-filters').offset().top - $('header').innerHeight());//$('html, body').animate({ scrollTop: $('#map-filters').offset().top - 50 });//if (mobile) $('html, body').animate({ scrollTop: $('#point-map').offset().top - $('header').innerHeight() });//else $('html, body').animate({ scrollTop: $('#map-filters').offset().top - $('header').innerHeight() });map.flyTo({center: e.target.getLngLat()});// update list statusvar id = parseInt(e.target.options.id);$('#map-sidebar .location').each(function() {if (parseInt($(this).data('id')) == id) {$(this).addClass('active');$('#map-sidebar').animate({ scrollTop: $('#map-sidebar').scrollTop() + $(this).position().top }, 'fast');}});});popup.on('close', function(e) {$('#map-sidebar .location').removeClass('active');marker.getElement().classList.remove('selected');});// set up the map markervar el = document.createElement('div');if (location.spangler == 1) {el.className = 'special-marker';if (location.id == 46) el.style.backgroundImage = 'url(https://spanglercandyworld.imgix.net/images/spangler-candy-world.png)';else if (location.id == 42) el.style.backgroundImage = 'url(https://spanglercandyworld.imgix.net/images/spangler-factory.png)';else if (location.id == 12) el.style.backgroundImage = 'url(https://spanglercandyworld.imgix.net/images/spangler-water-tower.png)';} else {el.className = 'marker';el.style.backgroundImage = 'url(https://spanglercandyworld.imgix.net/images/icons/pin-dark-shadow.svg)';}var marker = new mapboxgl.Marker(el).setLngLat(location.coords).addTo(map).setPopup(popup);marker.id = location.id;markers.push(marker);location.set_marker(marker);location.set_popup(popup);map_data.locations.push(location);// extend the overall bounds of the pinsbounds.extend(location.coords);});/* --- Helper Functions --- */function Location(data) {this.id = data.point_id;this.category = data.category_title;this.image = data.point_image;this.title = data.point_title;this.desc = data.point_desc;this.phone = data.point_phone;this.website = data.point_link;this.address = data.point_address;if (data.point_address2) this.address += ', ' + data.point_address2;this.city = data.point_city;this.zip = data.point_zip;this.coords = [parseFloat(data.point_lng), parseFloat(data.point_lat)];this.spangler = data.point_spanglerthis.popup = null;this.marker = null;this.set_marker = function(marker) {this.marker = marker;}this.set_popup = function(popup) {this.popup = popup;}this.getLngLat = function() { return [data.lng, data.lat]; }}function get_location_by_id(id) {var filter = map_data.locations.filter(l => l.id == id);return filter[0];}function set_popup_html(location, popup) {var address_link = 'http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=&daddr=' + encodeURIComponent(location.address + ' ' + location.city + ' OH ' + location.zip);var html = `
${location.image ? `` : ''}
${location.category ? `${location.category}
` : ''}
${location.title}
${location.address}
${location.desc}${location.phone ? `
${location.phone}
` : ''}${location.website ? `Visit Website` : ''}
`;popup.setHTML(html);return popup;}function create_popup(location) {var popup = new mapboxgl.Popup({ offset: 0, maxWidth: '330px', id: location.id });popup = set_popup_html(location, popup);return popup;}function remove_open_popups() {$('#map-sidebar .location').removeClass('active');markers.forEach(function(marker) {if (marker.getPopup().isOpen()) marker.getPopup().remove();});}function remove_all_markers() {markers.forEach(function(marker) {marker.remove();});}function show_all_markers() {markers.forEach(function(marker) {marker.addTo(map);});}