Estate & Letting Agents in Glusburn and Cross Hills, North Yorkshire

Find Estate Agents in Glusburn and Cross Hills, North Yorkshire
12 results
Belvoir

Skipton

Lettings
1 active listing in Glusburn and Cross Hills, North Yorkshire, England
20 total
12 Belmont Street, Skipton, BD23 1RP
View Profile
Wilman & Wilman

Cross Hills

Sales
21 active listings in Glusburn and Cross Hills, North Yorkshire, England
142 total
8 Main Street Cross Hills Keighley BD20 8TB
View Profile
Leightons Estate Agency

Cross Hills

Sales
17 active listings in Glusburn and Cross Hills, North Yorkshire, England
88 total
31 Main Street, Cross Hills, Keighley, BD20 8TA
View Profile
Wilman & Lodge

Cross Hills

Sales
16 active listings in Glusburn and Cross Hills, North Yorkshire, England
53 total
77 Main Street, Cross Hills, Keighley, BD20 8PH
View Profile
Dacre Son & Hartley

Skipton

Sales
8 active listings in Glusburn and Cross Hills, North Yorkshire, England
100 total
32 Sheep Street, Skipton, BD23 1HX
View Profile
Harrison Boothman

Skipton

Sales
5 active listings in Glusburn and Cross Hills, North Yorkshire, England
184 total
1 Unicorn House Keighley Road, Skipton, BD23 2LP
View Profile
Hardisty

Skipton

Sales
3 active listings in Glusburn and Cross Hills, North Yorkshire, England
44 total
84 High Street, Skipton, BD23 1JH
View Profile
Macaulay & Co

Cross Hills

Sales
3 active listings in Glusburn and Cross Hills, North Yorkshire, England
40 total
28 Main Street, Cross Hills, Keighley, BD20 8TQ
Hunters

Skipton

Sales
2 active listings in Glusburn and Cross Hills, North Yorkshire, England
63 total
1 High Street, Skipton BD23 1AJ
View Profile
Davies Properties

Keighley

Sales
1 active listing in Glusburn and Cross Hills, North Yorkshire, England
34 total
42 North Street Keighley West Yorkshire BD21 3SE
View Profile
Linley & Simpson

Harrogate

Lettings Sales
1 active listing in Glusburn and Cross Hills, North Yorkshire, England
68 total
12 Albert Street Harrogate HG1 1JT
View Profile
Springbok Properties
1 active listing in Glusburn and Cross Hills, North Yorkshire, England
1,297 total
Springbok Properties Nationwide Suite 7N Trafford House Chester Road Old Trafford M32 0RS
View Profile
initializeAllPremierCards() }); // Load detailed stats function function loadDetailedStats() { const button = document.getElementById('load-more-stats'); const statsContainer = document.getElementById('detailed-stats'); if (statsContainer.classList.contains('hidden')) { // Show loading state button.innerHTML = ` Loading... `; // Make AJAX call for detailed stats const location = 'Glusburn and Cross Hills, North Yorkshire'; const agentType = ''; fetch(`/api/agents/detailed-stats?location=${encodeURIComponent(location)}&type=${agentType}`) .then(response => response.json()) .then(data => { // Build detailed stats HTML let statsHtml = '
'; // Property types breakdown if (data.propertyTypes && Object.keys(data.propertyTypes).length > 0) { statsHtml += `
Property Types
`; for (const [type, count] of Object.entries(data.propertyTypes)) { const percentage = Math.round((count / data.totalProperties) * 100); statsHtml += `
${type}: ${count.toLocaleString()} (${percentage}%)
`; } statsHtml += '
'; } // Price ranges if (data.priceRanges) { statsHtml += `
Price Ranges
Avg Sale Price: £${data.priceRanges.avgSalePrice?.toLocaleString() || 'N/A'}
Avg Rent PCM: £${data.priceRanges.avgRentPrice?.toLocaleString() || 'N/A'}
`; } // Top performing agents if (data.topAgents && data.topAgents.length > 0) { statsHtml += `
Top Agents
`; data.topAgents.slice(0, 3).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} props
`; }); statsHtml += '
'; } statsHtml += '
'; // Show stats statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); // Update button button.innerHTML = ` Hide Insights `; }) .catch(error => { // If API fails, show some calculated stats from existing data const agents = [{"core_branch_id":50855,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Belvoir","email":"belvoiruklettingagents.skipton@ptlp.co.uk","sales_phone_number":null,"address":"12 Belmont Street,\r\nSkipton,\r\nBD23 1RP","postcode":"BD23 1RP","website_url":"https:\/\/www.belvoir.co.uk\/offices\/skipton","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":"SME Professional","logo":"https:\/\/cdn.home.co.uk\/agents\/50855\/logo.png","office_images":null,"claimed_at":"2025-12-22T15:24:09.000000Z","created_at":"2025-12-09T17:14:12.000000Z","updated_at":"2026-01-20T20:01:27.000000Z","deleted_at":null,"claimed_user_id":"cb096143-431a-4200-ba92-f3ac46037fb3","profile_status":"on_hold","assigned_user_id":null,"id":50855,"agent_company_id":44,"branch_location":"Skipton","lettings_phone_number":"01756 700702","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000630D17B9A72B00C04337FB03E5FA4A40","agent_brand_id":67,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"12 Belmont Street, Skipton","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Belvoir","branch_name":"Skipton","lettings":true,"sales":false,"commercial":false,"h_email":"belvoiruklettingagents.skipton@ptlp.co.uk","has_email":true,"h_phone":"01756 700702","has_phone":true,"resolved_brand_color":"#ba3232","boundary_listing_count":"1","property_count":"20","latitude":53.960114,"longitude":-2.021316},{"core_branch_id":50838,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Wilman \u0026 Wilman","email":"office@wilman-wilman.co.uk","sales_phone_number":"01535 637333","address":"8 \r\nMain Street\r\nCross Hills\r\nKeighley\r\nBD20 8TB ","postcode":"BD20 8TB","website_url":"https:\/\/www.wilman-wilman.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50838\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:11.000000Z","updated_at":"2026-01-20T19:52:32.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50838,"agent_company_id":3817,"branch_location":"Cross Hills","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000016342DB132DAFFBF6AA164726AF34A40","agent_brand_id":4518,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"8, Main Street, Cross Hills, Keighley","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Wilman \u0026 Wilman","branch_name":"Cross Hills","lettings":false,"sales":true,"commercial":false,"h_email":"office@wilman-wilman.co.uk","has_email":true,"h_phone":"01535 637333","has_phone":true,"resolved_brand_color":"#007351","boundary_listing_count":"21","property_count":"142","latitude":53.901686,"longitude":-1.990771},{"core_branch_id":50837,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Leightons Estate Agency","email":"info@leightonsestateagency.co.uk","sales_phone_number":"01535 666031","address":"31 Main Street,\r\nCross Hills,\r\nKeighley,\r\nBD20 8TA","postcode":"BD20 8TA","website_url":"https:\/\/leightonsestateagency.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50837\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:11.000000Z","updated_at":"2026-01-20T20:01:27.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50837,"agent_company_id":3814,"branch_location":"Cross Hills","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000062122EE411DCFFBFAE0FEB8D5AF34A40","agent_brand_id":4515,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"31 Main Street, Cross Hills, Keighley","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Leightons Estate Agency","branch_name":"Cross Hills","lettings":false,"sales":true,"commercial":false,"h_email":"info@leightonsestateagency.co.uk","has_email":true,"h_phone":"01535 666031","has_phone":true,"resolved_brand_color":"#fffd0c","boundary_listing_count":"17","property_count":"88","latitude":53.901201,"longitude":-1.991228},{"core_branch_id":50836,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Wilman \u0026 Lodge","email":"crosshills@wilman-lodge.co.uk","sales_phone_number":"01535 636238","address":"77 Main Street,\r\nCross Hills,\r\nKeighley,\r\nBD20 8PH","postcode":"BD20 8PH","website_url":"http:\/\/www.wilman-lodge.co.uk\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50836\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:11.000000Z","updated_at":"2026-01-20T19:52:32.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50836,"agent_company_id":3816,"branch_location":"Cross Hills","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000015C8EC2C7AE7FFBFBED87BF145F34A40","agent_brand_id":4517,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"77 Main Street, Cross Hills, Keighley","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Wilman \u0026 Lodge","branch_name":"Cross Hills","lettings":false,"sales":true,"commercial":false,"h_email":"crosshills@wilman-lodge.co.uk","has_email":true,"h_phone":"01535 636238","has_phone":true,"resolved_brand_color":"#0c056f","boundary_listing_count":"16","property_count":"53","latitude":53.900572,"longitude":-1.994013},{"core_branch_id":50850,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Dacre Son \u0026 Hartley","email":"skipton@dacres.co.uk","sales_phone_number":"01756 701010","address":"32 Sheep Street,\r\nSkipton,\r\nBD23 1HX","postcode":"BD23 1HX","website_url":"http:\/\/www.dacres.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50850\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:12.000000Z","updated_at":"2026-01-20T20:01:27.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50850,"agent_company_id":1505,"branch_location":"Skipton","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000001BB80375CA2300C056444DF4F9FA4A40","agent_brand_id":2072,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"32 Sheep Street, Skipton","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Dacre Son \u0026 Hartley","branch_name":"Skipton","lettings":false,"sales":true,"commercial":false,"h_email":"skipton@dacres.co.uk","has_email":true,"h_phone":"01756 701010","has_phone":true,"resolved_brand_color":"#052a4f","boundary_listing_count":"8","property_count":"100","latitude":53.960753,"longitude":-2.017476},{"core_branch_id":50856,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Harrison Boothman","email":"office@harrison-boothman.co.uk","sales_phone_number":"01756 799993","address":"1 Unicorn House Keighley Road,\r\nSkipton,\r\nBD23 2LP","postcode":"BD23 2LP","website_url":"https:\/\/www.harrison-boothman.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50856\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:12.000000Z","updated_at":"2026-01-20T20:01:27.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50856,"agent_company_id":6356,"branch_location":"Skipton","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000001BF2CF0CE22300C0A777F17EDCFA4A40","agent_brand_id":7178,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"1 Unicorn House Keighley Road, Skipton","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Harrison Boothman","branch_name":"Skipton","lettings":false,"sales":true,"commercial":false,"h_email":"office@harrison-boothman.co.uk","has_email":true,"h_phone":"01756 799993","has_phone":true,"resolved_brand_color":"#fc0203","boundary_listing_count":"5","property_count":"184","latitude":53.959854,"longitude":-2.017521},{"core_branch_id":50851,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hardisty","email":"skipton@daleeddison.co.uk","sales_phone_number":"01756 630555","address":"84 High Street,\r\nSkipton,\r\nBD23 1JH","postcode":"BD23 1JH","website_url":"https:\/\/www.daleeddison.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50851\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:12.000000Z","updated_at":"2026-01-20T20:01:27.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50851,"agent_company_id":496,"branch_location":"Skipton","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000B685E7A5622300C0C66CC9AA08FB4A40","agent_brand_id":874,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"84 High Street, Skipton","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hardisty","branch_name":"Skipton","lettings":false,"sales":true,"commercial":false,"h_email":"skipton@daleeddison.co.uk","has_email":true,"h_phone":"01756 630555","has_phone":true,"resolved_brand_color":"#c93200","boundary_listing_count":"3","property_count":"44","latitude":53.961202,"longitude":-2.017278},{"core_branch_id":50839,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Macaulay \u0026 Co","email":null,"sales_phone_number":"01535 279326","address":"28 Main Street,\r\nCross Hills,\r\nKeighley,\r\nBD20 8TQ","postcode":"BD20 8TQ","website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50839\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:11.000000Z","updated_at":"2026-01-20T19:52:32.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50839,"agent_company_id":3815,"branch_location":"Cross Hills","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000C70E2A711DE3FFBF8F71C5C551F34A40","agent_brand_id":4516,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"28 Main Street, Cross Hills, Keighley","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Macaulay \u0026 Co","branch_name":"Cross Hills","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"01535 279326","has_phone":true,"resolved_brand_color":"#1e4b73","boundary_listing_count":"3","property_count":"40","latitude":53.900933,"longitude":-1.992948},{"core_branch_id":50849,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hunters","email":"skipton@huntersnet.co.uk","sales_phone_number":"01756 700544","address":"1 High Street,\r\nSkipton\r\nBD23 1AJ","postcode":"BD23 1AJ","website_url":"https:\/\/www.hunters.com\/office\/skipton\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50849\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:12.000000Z","updated_at":"2026-01-20T19:52:32.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50849,"agent_company_id":98,"branch_location":"Skipton","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000780DFAD2DB1F00C0884677103BFB4A40","agent_brand_id":290,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"1 High Street, Skipton","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hunters","branch_name":"Skipton","lettings":false,"sales":true,"commercial":false,"h_email":"skipton@huntersnet.co.uk","has_email":true,"h_phone":"01756 700544","has_phone":true,"resolved_brand_color":"#193273","boundary_listing_count":"2","property_count":"63","latitude":53.96274,"longitude":-2.015556},{"core_branch_id":50845,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Davies Properties","email":"info@davies-properties.co.uk","sales_phone_number":"01535 872018","address":"42 North Street\r\nKeighley\r\nWest Yorkshire\r\nBD21 3SE","postcode":"BD21 3SE","website_url":"http:\/\/www.davies-properties.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50845\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:11.000000Z","updated_at":"2026-01-20T19:52:32.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50845,"agent_company_id":5890,"branch_location":"Keighley","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000A54FABE80F8DFEBF548B8862F2EE4A40","agent_brand_id":6700,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"42 North Street, Keighley, West Yorkshire","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Davies Properties","branch_name":"Keighley","lettings":false,"sales":true,"commercial":false,"h_email":"info@davies-properties.co.uk","has_email":true,"h_phone":"01535 872018","has_phone":true,"resolved_brand_color":"#ff3f42","boundary_listing_count":"1","property_count":"34","latitude":53.866772,"longitude":-1.909439},{"core_branch_id":56067,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Linley \u0026 Simpson","email":"harrogate@linleyandsimpson.co.uk","sales_phone_number":"01423 540054","address":"12 Albert Street\r\nHarrogate\r\nHG1 1JT","postcode":"HG1 1JT","website_url":"https:\/\/www.linleyandsimpson.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/56067\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:04.000000Z","updated_at":"2026-01-20T19:58:24.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56067,"agent_company_id":496,"branch_location":"Harrogate","lettings_phone_number":"01423 540054","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000FD6CE4BA29A5F8BF026553AEF0FE4A40","agent_brand_id":881,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"12 Albert Street, Harrogate","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Linley \u0026 Simpson","branch_name":"Harrogate","lettings":true,"sales":true,"commercial":false,"h_email":"harrogate@linleyandsimpson.co.uk","has_email":true,"h_phone":"01423 540054","has_phone":true,"resolved_brand_color":"#6dc0dc","boundary_listing_count":"1","property_count":"68","latitude":53.99172,"longitude":-1.540323},{"core_branch_id":58412,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Springbok Properties","email":"admin@springbokgroup.co.uk","sales_phone_number":"0161 416 6302","address":"Springbok Properties Nationwide\r\nSuite 7N\r\nTrafford House\r\nChester Road\r\nOld Trafford\r\nM32 0RS","postcode":"M32 0RS","website_url":"http:\/\/springbokproperties.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/58412\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:18:21.000000Z","updated_at":"2026-01-20T20:00:34.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":58412,"agent_company_id":497,"branch_location":"-","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000DE1FEF552B5302C003CDE7DCEDBA4A40","agent_brand_id":894,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Springbok Properties Nationwide, Suite 7N, Trafford House, Chester Road, Old Trafford","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Springbok Properties","branch_name":"-","lettings":false,"sales":true,"commercial":false,"h_email":"admin@springbokgroup.co.uk","has_email":true,"h_phone":"0161 416 6302","has_phone":true,"resolved_brand_color":"#ffff33","boundary_listing_count":"1","property_count":"1297","latitude":53.460384,"longitude":-2.29061}]; let topAgents = []; agents.forEach(agent => { // Collect top agents if (agent.property_count > 0) { topAgents.push({ name: agent.name, property_count: agent.property_count }); } }); // Sort top agents topAgents.sort((a, b) => b.property_count - a.property_count); let statsHtml = '
'; // Show top agents if (topAgents.length > 0) { statsHtml += `
Top Performing Agents
`; topAgents.slice(0, 5).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} properties
`; }); statsHtml += '
'; } statsHtml += '
'; statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); button.innerHTML = ` Hide Insights `; }); } else { // Hide stats statsContainer.classList.add('hidden'); button.innerHTML = ` Load Detailed Insights `; } } // Open agent map function function openAgentMap(locationSlug) { // Use the floating view toggle button const mapBtn = document.getElementById('agent-view-map'); if (mapBtn) { mapBtn.click(); } else { // Fallback to old button const oldMapBtn = document.getElementById('view-map-btn'); if (oldMapBtn) { oldMapBtn.click(); } else { // Last resort - open map page window.location.href = `/agents/${locationSlug}/map`; } } }