Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created February 19, 2026 16:58
Show Gist options
  • Select an option

  • Save propertyhive/ea99fe91535a92044ec56383a351be41 to your computer and use it in GitHub Desktop.

Select an option

Save propertyhive/ea99fe91535a92044ec56383a351be41 to your computer and use it in GitHub Desktop.
OSM icon marker size and anchor
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