Created
February 19, 2026 16:58
-
-
Save propertyhive/ea99fe91535a92044ec56383a351be41 to your computer and use it in GitHub Desktop.
OSM icon marker size and anchor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('propertyhive_property_map_osm_icon_width', function ($w) { | |
| return 40; | |
| }); | |
| add_filter('propertyhive_property_map_osm_icon_height', function ($h) { | |
| return 40; | |
| }); | |
| add_filter('propertyhive_property_map_osm_icon_anchor_width', function ($aw) { | |
| return 20; // half of width | |
| }); | |
| add_filter('propertyhive_property_map_osm_icon_anchor_height', function ($ah) { | |
| return 40; // full height (bottom) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment