diff --git a/wp-content/plugins/mls-by-hansonxyz/includes/class-mls-cluster.php b/wp-content/plugins/mls-by-hansonxyz/includes/class-mls-cluster.php old mode 100644 new mode 100755 index 96943976..2a25f1ef --- a/wp-content/plugins/mls-by-hansonxyz/includes/class-mls-cluster.php +++ b/wp-content/plugins/mls-by-hansonxyz/includes/class-mls-cluster.php @@ -336,15 +336,12 @@ class MLS_Cluster { return $this->get_density_data($where_sql, $values, $zoom, $center_lat, $total, self::DENSITY_DOT_SPACING); } - // Zoom 12-15: Numbered clusters (or individual if low count) + // Zoom 9-15: Always use server-side clusters (let server handle grouping) if ($zoom <= self::ZOOM_CLUSTER_MAX) { - if ($total <= self::MAX_INDIVIDUAL_MARKERS) { - return $this->get_individual_markers($where_sql, $values, $total); - } return $this->get_cluster_data($where_sql, $values, $zoom, $center_lat, $total); } - // Zoom 16+: Individual markers + // Zoom 16+: Individual markers (no clustering needed at this zoom) return $this->get_individual_markers($where_sql, $values, $total); } diff --git a/wp-content/themes/homeproz/archive-property.php b/wp-content/themes/homeproz/archive-property.php index 5d1c3026..5b7ff522 100755 --- a/wp-content/themes/homeproz/archive-property.php +++ b/wp-content/themes/homeproz/archive-property.php @@ -120,7 +120,7 @@ $view_class = $show_map ? 'is-map-view' : 'is-grid-view'; $initial_filters = array( 'status' => isset($_GET['property_status']) ? sanitize_text_field($_GET['property_status']) : 'Active', 'property_type' => isset($_GET['property_type']) ? sanitize_text_field($_GET['property_type']) : '', - 'city' => isset($_GET['property_location']) ? sanitize_text_field($_GET['property_location']) : '', + 'city' => isset($_GET['city']) ? sanitize_text_field($_GET['city']) : '', 'min_price' => isset($_GET['min_price']) ? intval($_GET['min_price']) : '', 'max_price' => isset($_GET['max_price']) ? intval($_GET['max_price']) : '', 'min_beds' => isset($_GET['beds']) ? intval($_GET['beds']) : '', @@ -137,13 +137,8 @@ if (function_exists('mls_get_property_count')) { ?> - - - - -