homeflowjs 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,7 +105,11 @@ const hfInitialize = () => {
105
105
  store.dispatch(setArticles(Homeflow.get('articles')));
106
106
  }
107
107
 
108
- if (pageRoute === 'properties#index') {
108
+ if (pageRoute === 'properties#index'
109
+ || pageRoute === 'counties#show'
110
+ || pageRoute === 'postcodes#show'
111
+ || pageRoute === 'locations#show'
112
+ ) {
109
113
  const searchFromFragment = parseFragment(window.location.pathname);
110
114
  const defaultStatus = store.getState().app.themePreferences.default_search_status;
111
115
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "JavaScript toolkit for Homeflow themes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -125,7 +125,7 @@ export default class DraggableMap {
125
125
  generateMarker(property) {
126
126
  const marker = L.marker(
127
127
  [property.lat, property.lng],
128
- { title: property.name, icon: Homeflow.get('custom_property_pin')(property) }
128
+ { title: property.name, icon: this.generateMarkerIcon(property) }
129
129
  );
130
130
 
131
131
  // add the property to marker attributes so they can be accessed on click