homeflowjs 0.11.7 → 0.11.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.11.7",
3
+ "version": "0.11.8",
4
4
  "description": "JavaScript toolkit for Homeflow themes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -6,11 +6,13 @@ import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet';
6
6
  const PropertyLeafletMap = ({ CustomPopup }) => {
7
7
  const property = Homeflow.get('property');
8
8
  const customIcon = Homeflow.get('custom_map_icon');
9
+ const customIconAnchor = Homeflow.get('custom_map_icon_anchor');
9
10
 
10
11
  const defaultIcon = L.icon({
11
12
  iconRetinaUrl: '/assets/marker-icon.png',
12
13
  iconUrl: customIcon || '/assets/marker-icon.png',
13
14
  shadowUrl: '/assets/marker-shadow.png',
15
+ iconAnchor: customIconAnchor || [12, 41]
14
16
  });
15
17
 
16
18
  return (