Estate & Letting Agents in Hockwold cum Wilton, King's Lynn and West Norfolk

Find Estate Agents in Hockwold cum Wilton, King's Lynn and West Norfolk
12 results
Molyneux Estate Agents
Molyneux Estate Agents

Brandon

Sales
5 active listings in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
104 total
49a High Street, Brandon, IP27 0AQ
View Featured Profile
Ewemove

Covering Scotland

Lettings Sales
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
1,817 total
Cavendish House Littlewood Court West 26 Industrial Estate Cleckheaton BD19 4TE
View Profile
Lodge

Red Lodge

Lettings
4 active listings in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
34 total
6 Bellflower Crescent, Red Lodge, IP28 8XQ
View Profile
King & Partners

Downham Market

Sales
2 active listings in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
117 total
9 Market Place, Downham Market, PE38 9DG
View Profile
Shires Estate & Letting Agents
2 active listings in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
119 total
4 New Street Mildenhall IP28 7EN
View Profile
Auction House

East Anglia

Sales
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
323 total
The Barn Newmarket Road Cringleford Norwich NR4 6UE
Baselets

Lakenheath

Lettings
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
37 total
5 Shopping Centre Earls Field Raf Lakenheath IP27 9RX
View Profile
Bettermove

Nationwide

Sales
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
524 total
20-22 Bridge End, Leeds, LS1 4DJ
View Profile
Chilterns Estate & Letting Agents
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
44 total
36 High Street, Brandon, IP27 0AQ
View Profile
Haart

Thetford

Sales
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
48 total
33 Riverside Walk, Thetford, IP24 2BB
View Profile
Sowerbys

King'S Lynn

Lettings Sales
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
102 total
23 Tuesday Market Place King's Lynn Norfolk PE30 1JJ
View Profile
William H. Brown

Brandon

Lettings Sales
1 active listing in Hockwold cum Wilton, King's Lynn and West Norfolk, Norfolk, England
111 total
20 High Street, Brandon, IP27 0AQ
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 = 'Hockwold cum Wilton, King's Lynn and West Norfolk'; 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":56647,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Molyneux Estate Agents","email":"info@molyneuxestateagents.co.uk","sales_phone_number":"01842 818282","address":"49a High Street,\r\nBrandon,\r\nIP27 0AQ","postcode":"IP27 0AQ","website_url":"http:\/\/www.molyneuxestateagents.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\/56647\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:22.000000Z","updated_at":"2026-01-20T20:01:50.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56647,"agent_company_id":1523,"branch_location":"Brandon","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":true,"geopoint":"0101000020E610000063EFC517EDF1E33F310BED9C66394A40","agent_brand_id":2094,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"49a High Street, Brandon","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Molyneux Estate Agents","branch_name":"Brandon","lettings":false,"sales":true,"commercial":false,"h_email":"info@molyneuxestateagents.co.uk","has_email":true,"h_phone":"01842 818282","has_phone":true,"resolved_brand_color":"#292929","boundary_listing_count":"5","property_count":"104","latitude":52.448444,"longitude":0.623282},{"core_branch_id":50830,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Ewemove","email":"katy.lamsin@ewemove.com","sales_phone_number":"01274 888790","address":"Cavendish House \r\nLittlewood Court\r\nWest 26 Industrial Estate\r\nCleckheaton\r\nBD19 4TE ","postcode":"BD19 4TE","website_url":"https:\/\/www.ewemove.com\/estate-agents\/greenford\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":"SME Professional","logo":"https:\/\/cdn.home.co.uk\/agents\/50830\/logo.png","office_images":null,"claimed_at":"2025-12-22T15:24:09.000000Z","created_at":"2025-12-09T17:14:11.000000Z","updated_at":"2026-01-20T20:01:26.000000Z","deleted_at":null,"claimed_user_id":"cb096143-431a-4200-ba92-f3ac46037fb3","profile_status":"on_hold","assigned_user_id":null,"id":50830,"agent_company_id":44,"branch_location":"Covering Scotland","lettings_phone_number":"01274 888790","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000001C7E37DDB283FBBF3ACFD8976CDE4A40","agent_brand_id":74,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Cavendish House, Littlewood Court, West 26 Industrial Estate, Cleckheaton","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Ewemove","branch_name":"Covering Scotland","lettings":true,"sales":true,"commercial":false,"h_email":"katy.lamsin@ewemove.com","has_email":true,"h_phone":"01274 888790","has_phone":true,"resolved_brand_color":"#9ebe3d","boundary_listing_count":"1","property_count":"1817","latitude":53.737689,"longitude":-1.719653},{"core_branch_id":56658,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Lodge","email":"enquiries@readwinbarclay.co.uk","sales_phone_number":null,"address":"6 Bellflower Crescent,\r\nRed Lodge,\r\nIP28 8XQ","postcode":"IP28 8XQ","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\/56658\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:23.000000Z","updated_at":"2026-01-20T20:01:37.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56658,"agent_company_id":2327,"branch_location":"Red Lodge","lettings_phone_number":"01638 551551","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000001B66683C11C4DF3F76FF58880E274A40","agent_brand_id":2951,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"6 Bellflower Crescent, Red Lodge","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Lodge","branch_name":"Red Lodge","lettings":true,"sales":false,"commercial":false,"h_email":"enquiries@readwinbarclay.co.uk","has_email":true,"h_phone":"01638 551551","has_phone":true,"resolved_brand_color":"#fd3e40","boundary_listing_count":"4","property_count":"34","latitude":52.305131,"longitude":0.496342},{"core_branch_id":61105,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"King \u0026 Partners","email":"info@kingpartners.co.uk","sales_phone_number":"01366 385588","address":"9 Market Place,\r\nDownham Market,\r\nPE38 9DG","postcode":"PE38 9DG","website_url":"https:\/\/kingpartners.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\/61105\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:47.000000Z","updated_at":"2026-01-20T19:54:18.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":61105,"agent_company_id":6097,"branch_location":"Downham Market","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000005439ED293927D83FA051BAF42F4D4A40","agent_brand_id":6914,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"9 Market Place, Downham Market","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"King \u0026 Partners","branch_name":"Downham Market","lettings":false,"sales":true,"commercial":false,"h_email":"info@kingpartners.co.uk","has_email":true,"h_phone":"01366 385588","has_phone":true,"resolved_brand_color":"#9c9071","boundary_listing_count":"2","property_count":"117","latitude":52.603026,"longitude":0.377394},{"core_branch_id":56653,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Shires Estate \u0026 Letting Agents","email":"mildenhall@shiresresidential.com","sales_phone_number":"01638 712132","address":"4 New Street\r\nMildenhall\r\nIP28 7EN ","postcode":"IP28 7EN","website_url":"https:\/\/www.shiresresidential.com\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/56653\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:23.000000Z","updated_at":"2026-01-20T19:53:31.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56653,"agent_company_id":2329,"branch_location":"Mildenhall","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000A5677A89B14CE03F397F130A112C4A40","agent_brand_id":2954,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"4 New Street, Mildenhall","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Shires Estate \u0026 Letting Agents","branch_name":"Mildenhall","lettings":false,"sales":true,"commercial":false,"h_email":"mildenhall@shiresresidential.com","has_email":true,"h_phone":"01638 712132","has_phone":true,"resolved_brand_color":"#b0cb03","boundary_listing_count":"2","property_count":"119","latitude":52.34427,"longitude":0.509362},{"core_branch_id":60266,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Auction House","email":null,"sales_phone_number":"01603 505100","address":"The Barn\r\nNewmarket Road\r\nCringleford\r\nNorwich\r\nNR4 6UE","postcode":"NR4 6UE","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\/60266\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:20.000000Z","updated_at":"2026-01-20T19:59:33.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60266,"agent_company_id":654,"branch_location":"East Anglia","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000A1478C9E5BE8F33F3FE08101844D4A40","agent_brand_id":1128,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"The Barn, Newmarket Road, Cringleford, Norwich","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Auction House","branch_name":"East Anglia","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"01603 505100","has_phone":true,"resolved_brand_color":"#f13e4b","boundary_listing_count":"1","property_count":"323","latitude":52.605591,"longitude":1.244228},{"core_branch_id":56649,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Baselets","email":"information@baselets.co.uk","sales_phone_number":null,"address":"5 \r\nShopping Centre\r\nEarls Field\r\nRaf Lakenheath\r\nIP27 9RX ","postcode":"IP27 9RX","website_url":"http:\/\/www.baselets.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\/56649\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:23.000000Z","updated_at":"2026-01-20T20:01:36.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56649,"agent_company_id":1521,"branch_location":"Lakenheath","lettings_phone_number":"01638 583877","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000FF3C0D1824FDE03FF392FFC9DF314A40","agent_brand_id":2092,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"5, Shopping Centre, Earls Field, Raf Lakenheath","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Baselets","branch_name":"Lakenheath","lettings":true,"sales":false,"commercial":false,"h_email":"information@baselets.co.uk","has_email":true,"h_phone":"01638 583877","has_phone":true,"resolved_brand_color":"#0f2346","boundary_listing_count":"1","property_count":"37","latitude":52.389642,"longitude":0.530901},{"core_branch_id":57838,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Bettermove","email":"hello@bettermove.co.uk","sales_phone_number":"0113 465 5176","address":"20-22 Bridge End,\r\nLeeds,\r\nLS1 4DJ","postcode":"LS1 4DJ","website_url":"https:\/\/www.bettermove.co.uk\/","description":null,"listings_feed_url":"https:\/\/www.bettermove.co.uk\/","feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/57838\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:18:02.000000Z","updated_at":"2026-01-20T20:01:10.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"live","assigned_user_id":null,"id":57838,"agent_company_id":3608,"branch_location":"Nationwide","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000001343723271ABF8BF76A6D0798DE54A40","agent_brand_id":4299,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"20-22 Bridge End, Leeds","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Bettermove","branch_name":"Nationwide","lettings":false,"sales":true,"commercial":false,"h_email":"hello@bettermove.co.uk","has_email":true,"h_phone":"0113 465 5176","has_phone":true,"resolved_brand_color":"#ff8060","boundary_listing_count":"1","property_count":"524","latitude":53.79338,"longitude":-1.541856},{"core_branch_id":56646,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Chilterns Estate \u0026 Letting Agents","email":"brandon@chilterns.co","sales_phone_number":"01842 813466","address":"36 High Street,\r\nBrandon,\r\nIP27 0AQ","postcode":"IP27 0AQ","website_url":"https:\/\/www.chilterns.co","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/56646\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:22.000000Z","updated_at":"2026-01-20T19:53:31.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56646,"agent_company_id":1522,"branch_location":"Brandon","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000063EFC517EDF1E33F310BED9C66394A40","agent_brand_id":2093,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"36 High Street, Brandon","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Chilterns Estate \u0026 Letting Agents","branch_name":"Brandon","lettings":false,"sales":true,"commercial":false,"h_email":"brandon@chilterns.co","has_email":true,"h_phone":"01842 813466","has_phone":true,"resolved_brand_color":"#21507a","boundary_listing_count":"1","property_count":"44","latitude":52.448444,"longitude":0.623282},{"core_branch_id":56636,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Haart","email":"0212@spicerhaart.com","sales_phone_number":"01842 338082","address":"33 Riverside Walk,\r\nThetford,\r\nIP24 2BB","postcode":"IP24 2BB","website_url":"https:\/\/www.haart.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\/56636\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:22.000000Z","updated_at":"2026-01-20T20:01:36.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56636,"agent_company_id":163,"branch_location":"Thetford","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000008E210038F6ECE73F1E166A4DF3344A40","agent_brand_id":405,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"33 Riverside Walk, Thetford","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Haart","branch_name":"Thetford","lettings":false,"sales":true,"commercial":false,"h_email":"0212@spicerhaart.com","has_email":true,"h_phone":"01842 338082","has_phone":true,"resolved_brand_color":"#46195f","boundary_listing_count":"1","property_count":"48","latitude":52.413675,"longitude":0.747676},{"core_branch_id":61081,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Sowerbys","email":"kingslynn@sowerbys.com","sales_phone_number":"01553 766741","address":"23\r\nTuesday Market Place\r\nKing\u0027s Lynn\r\nNorfolk\r\nPE30 1JJ","postcode":"PE30 1JJ","website_url":"https:\/\/www.sowerbys.com","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/61081\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:46.000000Z","updated_at":"2026-01-20T19:59:03.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":61081,"agent_company_id":4114,"branch_location":"King\u0027S Lynn","lettings_phone_number":"01553 761234","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000A94BC631923DD93F9B728577B9604A40","agent_brand_id":4837,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"23, Tuesday Market Place, King\u0027s Lynn, Norfolk","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Sowerbys","branch_name":"King\u0027S Lynn","lettings":true,"sales":true,"commercial":false,"h_email":"kingslynn@sowerbys.com","has_email":true,"h_phone":"01553 766741","has_phone":true,"resolved_brand_color":"#21323c","boundary_listing_count":"1","property_count":"102","latitude":52.75566,"longitude":0.394383},{"core_branch_id":56648,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"William H. Brown","email":"brandonlet@williamhbrown.co.uk","sales_phone_number":"01842 811058","address":"20 High Street, \r\nBrandon, IP27 0AQ","postcode":"IP27 0AQ","website_url":"http:\/\/www.williamhbrown.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\/56648\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:23.000000Z","updated_at":"2026-01-20T19:56:10.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56648,"agent_company_id":54,"branch_location":"Brandon","lettings_phone_number":"01842 811058","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000063EFC517EDF1E33F310BED9C66394A40","agent_brand_id":216,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"20 High Street, Brandon","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"William H. Brown","branch_name":"Brandon","lettings":true,"sales":true,"commercial":false,"h_email":"brandonlet@williamhbrown.co.uk","has_email":true,"h_phone":"01842 811058","has_phone":true,"resolved_brand_color":"#8dc3d9","boundary_listing_count":"1","property_count":"111","latitude":52.448444,"longitude":0.623282}]; 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`; } } }