Aller au contenu

Hooks : Cartes

Type : Filter

Fichier : classes/class-immomakler.php:4649

Signature :

apply_filters( 'immomakler_address_visible', $address_visible, $openimmo_data, $immobilie )

Type : Filter

Fichier : skins/bootstrap3/functions.php:2047

Signature :

apply_filters( 'immomakler_distances_unit', 'km', $post_id )

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters which provider answers one geo service.

Fichier : src-plus/Geo/Provider_Resolver.php:113

Signature :

apply_filters( 'immomakler_geo_provider', $chosen, $service, $providers )

Paramètres :

  • $chosen (string) Provider id from the settings, may be empty.
  • $service (string) Service key: geocoding, static_map or autocomplete.
  • $providers (array<string,Contract\Geo_Provider_Interface>) Registered providers, keyed by id.

Type : Action

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Fires once, so a site can add or replace geo-service providers. Registering under an existing id replaces that provider, which is how a site swaps our Google implementation for its own.

Fichier : src-plus/Geo/Provider_Registry.php:194

Signature :

do_action( 'immomakler_geo_register_providers', $this )

Paramètres :

  • $registry (Provider_Registry) The registry being built.

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filters whether a geo request that is not cached may go out. Only asked on a cache miss, i.e. for a request the provider bills. The radius search hooks in here for the duration of one lookup to hold a visitor to their allowance; a refused request is not cached.

Fichier : src-plus/Geo/Http/Geo_Http_Client.php:90

Signature :

apply_filters( 'immomakler_geo_request_allowed', true, $url )

Paramètres :

  • $allowed (bool) Whether the request may be made. Default true.
  • $url (string) The request URL, API key included.

Type : Filter

Fichier : classes/class-immomakler.php:4692

Signature :

apply_filters( 'immomakler_geocode_address', true )

Autres utilisations :

  • src/Cron/Events/Geocode_Missing_Coordinates.php:35

    apply_filters( 'immomakler_geocode_address', true )

Type : Filter

Fichier : classes/class-immomakler.php:4708

Signature :

apply_filters( 'immomakler_geocode_address_if_hidden', false )

Autres utilisations :

  • classes/class-immomakler.php:4723

    apply_filters( 'immomakler_geocode_address_if_hidden', false )
  • src/Google_Maps/Geocoder.php:143

    apply_filters( 'immomakler_geocode_address_if_hidden', false )

Type : Filter

Fichier : src/Google_Maps/Geocoder.php:564

Signature :

apply_filters( 'immomakler_geocode_result', null, $address, $bias )

Type : Filter

Fichier : classes/class-immomakler.php:4723

Signature :

apply_filters( 'immomakler_geocode_sublocality', true )

Type : Filter

Fichier : classes/class-immomakler.php:4698

Signature :

apply_filters( 'immomakler_geocode_with_bundesland', false )

Autres utilisations :

  • src-plus/PDF/Pdf_Builder_Dompdf.php:2275

    apply_filters( 'immomakler_geocode_with_bundesland', false )
  • src/Google_Maps/Geocoder.php:135

    apply_filters( 'immomakler_geocode_with_bundesland', false )

Type : Filter

Fichier : src/Google_Maps/Geocoder.php:306

Signature :

apply_filters( 'immomakler_geocoding_address', $address )

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters whether geocoding is possible at all.

Fichier : src/Google_Maps/Geocoder.php:102

Signature :

apply_filters( 'immomakler_geocoding_available', $google )

Paramètres :

  • $available (bool) Whether Google is switched on and keyed.

Type : Filter

Fichier : classes/class-immomakler-options.php:135

Signature :

apply_filters( 'immomakler_googlemaps_api_key', '' )

Autres utilisations :

  • classes/class-immomakler-options.php:136

    apply_filters( 'immomakler_googlemaps_api_key', '' )
  • src/Google_Maps/Settings.php:448

    apply_filters( 'immomakler_googlemaps_api_key', '' )
  • src/Google_Maps/Settings.php:589

    apply_filters( 'immomakler_googlemaps_api_key', '' )

Type : Filter

Fichier : src/Google_Maps/Single_Map.php:59

Signature :

apply_filters( 'immomakler_map_address_with_bundesland', true )

Type : Filter

Fichier : src/Google_Maps/Single_Map.php:56

Signature :

apply_filters( 'immomakler_map_address_with_sublocality', false )

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filter the radius drawn around a marker whose address is not exact.

Fichier : src-plus/Frontend/Map/Config/Map_Config_Builder.php:235

Signature :

apply_filters( 'immomakler_map_blur_radius_km', $options->float( 'map_blur_radius_km' ) )

Paramètres :

  • $kilometres (float) Radius in kilometres. Zero draws no circle.

Type : Filter

Depuis la version : 5.67.0

Description (tirée du code source, en anglais) :

Filter the Borlabs content-blocker id the map is wrapped in. Deliberately still googlemaps by default, even when another engine draws the map: the id has to match a blocker the site actually configured in Borlabs, and an unknown one is not blocked at all. A site running MapLibre or Mapbox that has set up its own blocker points this at it.

Fichier : src-plus/Frontend/Map/Container/Map_Container_Renderer.php:251

Signature :

apply_filters( 'immomakler_map_borlabs_blocker', 'googlemaps', null !== $engine ? $engine->id() : 'google' )

Paramètres :

  • $blocker_id (string) Borlabs content blocker id.
  • $engine_id (string) Engine drawing this map.

Type : Filter

Depuis la version : 5.67.0

Description (tirée du code source, en anglais) :

Filter the map settings offered on each builder module. Applies to every builder at once, since they all render this one list.

Fichier : src-plus/Frontend/Map/Settings/Builder_Controls.php:123

Signature :

apply_filters( 'immomakler_map_builder_controls', $controls, $this->context )

Paramètres :

  • $controls (array<int,array<string,mixed>>) Normalised definitions.
  • $context (string) Which kind of map is asking.

Type : Filter

Fichier : src-plus/Frontend/Map/Config/Map_Config_Builder.php:311

Signature :

apply_filters( 'immomakler_map_cluster_markers', true )

Autres utilisations :

  • src-plus/Frontend/Map/Settings/Map_Settings_Schema.php:399

    apply_filters( 'immomakler_map_cluster_markers', true )

Type : Filter

Description (tirée du code source, en anglais) :

Filter the map’s JavaScript configuration.

Fichier : src-plus/Frontend/Map/Config/Map_Config_Builder.php:193

Signature :

apply_filters( 'immomakler_map_config', $config )

Paramètres :

  • $config (array<string,mixed>) The config object handed to the map adapter.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the service a map’s consent box names.

Fichier : src/Google_Maps/Map_Availability.php:92

Signature :

apply_filters( 'immomakler_map_consent_descriptor', self::google_consent(), $overrides )

Paramètres :

  • $consent (array<string,string>) Descriptor with key, provider and privacy_url.
  • $overrides (array<string,mixed>) Settings the one map carries.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the engine a map resolves to once fallbacks are applied.

Fichier : src/Google_Maps/Map_Availability.php:333

Signature :

apply_filters( 'immomakler_map_drawing_engine', self::site_engine() )

Paramètres :

  • $engine (string) Engine id, the site’s own choice by default.

Type : Filter

Description (tirée du code source, en anglais) :

Filter which engine a map renders with.

Fichier : src-plus/Frontend/Map/Engine/Engine_Resolver.php:168

Signature :

apply_filters( 'immomakler_map_engine', $id, $context )

Paramètres :

  • $id (string) Engine id resolved so far.
  • $context (array<string,mixed>) Render context.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters whether the site’s map engine is ready to draw.

Fichier : src/Google_Maps/Map_Availability.php:385

Signature :

apply_filters( 'immomakler_map_engine_configured', $google )

Paramètres :

  • $configured (bool) Whether Google’s browser key is entered.

Type : Filter

Description (tirée du code source, en anglais) :

Filter the GeoJSON marker collection a map plots.

Fichier : src-plus/Frontend/Map/Data/Marker_Collection_Builder.php:105

Signature :

apply_filters( 'immomakler_map_features', $collection, $atts )

Paramètres :

  • $collection (array<string,mixed>) A GeoJSON FeatureCollection.
  • $atts (array<string,mixed>) The query args the markers were loaded for.

Type : Filter

Fichier : src-plus/Frontend/Map/Config/Map_Config_Builder.php:360

Signature :

apply_filters( 'immomakler_map_fitbounds', true )

Type : Filter

Fichier : src/Google_Maps/Settings.php:490

Signature :

apply_filters( 'immomakler_map_force_googlemaps_embed', false )

Type : Filter

Description (tirée du code source, en anglais) :

Filter the registered script handles the map frame prints.

Fichier : src-plus/Frontend/Map/Frame/Frame_Renderer.php:161

Signature :

apply_filters( 'immomakler_map_frame_scripts', [] )

Paramètres :

  • $handles (array<int,string>) Registered script handles.

Type : Filter

Fichier : src-plus/Frontend/Map/Container/Map_Container_Renderer.php:264

Signature :

apply_filters( 'immomakler_map_html', $map_html, false )

Autres utilisations :

  • src/Google_Maps/Single_Map.php:217

    apply_filters( 'immomakler_map_html', $map_html, $is_google_embed )

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters how wide a shaded area may be before the map leaves it out.

Fichier : src-plus/Frontend/Map/Data/Place_Id_Resolver.php:309

Signature :

apply_filters( 'immomakler_map_max_area_radius', $radius, $layer )

Paramètres :

  • $radius (float) Equal-area radius in metres.
  • $layer (string) Feature layer the area belongs to, so a site can tune postal codes and towns apart.

Type : Filter

Fichier : src-plus/Frontend/Map/Container/Map_Container_Renderer.php:69

Signature :

apply_filters( 'immomakler_map_noredirect', false )

Autres utilisations :

  • src-plus/Frontend/Map/Map_Hooks.php:261

    apply_filters( 'immomakler_map_noredirect', false )

Type : Filter

Depuis la version : 5.69.0

Description (tirée du code source, en anglais) :

Filters whether a property’s coordinates mark its exact position. Decides how the property is drawn wherever its position is shown: an exact position gets a plain marker the map may frame closely, an approximate one gets the “position approximate” note, the radius circle or the shaded postal-code area, and a wider frame. By default a position is exact when a house number is stored. Return true for properties whose coordinates are known to be exact although their address carries no house number.

Fichier : src/Google_Maps/Position_Accuracy.php:59

Signature :

apply_filters( 'immomakler_map_position_is_exact', $exact, $post_id, $secret )

Paramètres :

  • $exact (bool) Whether the position is exact.
  • $post_id (int) Property post ID.
  • $secret (bool) Whether the secret address is in effect for this reader.

Type : Filter

Description (tirée du code source, en anglais) :

Filter the properties plotted on a map.

Fichier : src-plus/Frontend/Map/Data/Property_Locations_Repository.php:123

Signature :

apply_filters( 'immomakler_map_property_locations', $locations, $atts )

Paramètres :

  • $locations (array<int,array<string,mixed>>) One record per geocoded property.
  • $atts (array<string,mixed>) The query args the records were loaded for.

Type : Action

Description (tirée du code source, en anglais) :

Register additional map engines.

Fichier : src-plus/Frontend/Map/Engine/Engine_Registry.php:143

Signature :

do_action( 'immomakler_map_register_engines', $this )

Paramètres :

  • $registry (Engine_Registry) The registry to add engines to.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the frame the single map renders, and the identity it claims.

Fichier : src/Google_Maps/Map_Availability.php:205

Signature :

apply_filters( 'immomakler_map_single_frame', [ 'url' => '', 'key' => '', 'suffix' => '', ], $post_id, $geolocation, $overrides )

Paramètres :

  • $post_id (int) Property being mapped.
  • $overrides (array<string,mixed>) Settings this one map carries.

Type : Filter

Fichier : src/Google_Maps/Single_Map.php:83

Signature :

apply_filters( 'immomakler_map_single_use_geocoordinates_only', false, $post_id )

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the map engine this site draws with. Deliberately the site’s own engine rather than the one a given map resolves to: an instance override or the immomakler_map_engine filter can send one map somewhere else, and that is not an answer about the site. A site that never opened the control has still chosen nothing, and Plus answers with the engine its credentials point at — not with a fixed google, which claimed a decision nobody made. Switching maps off is its own value, none, so no credential can do it by accident.

Fichier : src/Google_Maps/Map_Availability.php:53

Signature :

apply_filters( 'immomakler_map_site_engine', 'google' )

Paramètres :

  • $engine (string) Engine id.

Type : Filter

Fichier : src-plus/Frontend/Map/Config/Map_Config_Builder.php:390

Signature :

apply_filters( 'immomakler_map_start_center', $center )

Type : Filter

Fichier : src-plus/Frontend/Map/Config/Map_Config_Builder.php:343

Signature :

apply_filters( 'immomakler_map_start_zoom', 15 )

Type : Filter

Fichier : src-plus/Frontend/Map/Config/Map_Config_Builder.php:336

Signature :

apply_filters( 'immomakler_map_start_zoom_single', $exact_address ? self::ZOOM_SINGLE_EXACT : self::ZOOM_SINGLE_APPROXIMATE, $exact_address )

Autres utilisations :

  • src/Google_Maps/Single_Map.php:106

    apply_filters( 'immomakler_map_start_zoom_single', 15 )

Type : Filter

Depuis la version : 5.67.0

Description (tirée du code source, en anglais) :

Filter the notice shown above the admin test map.

Fichier : src/Google_Maps/Map_Availability.php:404

Signature :

apply_filters( 'immomakler_map_test_notice', '' )

Paramètres :

  • $notice (string) Notice text, empty when there is nothing to say.

Type : Filter

Depuis la version : 5.67.0

Description (tirée du code source, en anglais) :

Filter the colour treatments a basemap can be drawn with. Each entry needs a label and a filter, the latter being a CSS filter value applied to the map’s tile pane.

Fichier : src-plus/Frontend/Map/Engine/Tile_Filters.php:101

Signature :

apply_filters( 'immomakler_map_tile_filters', $filters )

Paramètres :

  • $filters (array<string,array<string,mixed>>) Treatments keyed by id.

Type : Filter

Depuis la version : 5.67.0

Description (tirée du code source, en anglais) :

Filter the tile providers a map can be drawn from. Each entry needs at least label, url, maxZoom and attribution. Optional: subdomains, key_placeholder, notice.

Fichier : src-plus/Frontend/Map/Engine/Tile_Providers.php:135

Signature :

apply_filters( 'immomakler_map_tile_providers', $providers )

Paramètres :

  • $providers (array<string,array<string,mixed>>) Providers keyed by id.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filter the vector styles a GL map can be drawn from. Each entry needs engine (mapbox or maplibre), label, url, provider and privacy_url. Optional: notice.

Fichier : src-plus/Frontend/Map/Engine/Vector_Styles.php:238

Signature :

apply_filters( 'immomakler_map_vector_styles', $styles )

Paramètres :

  • $styles (array<string,array<string,mixed>>) Styles keyed by id.

Type : Filter

Fichier : src-plus/Search/Places_Autocomplete_Bootstrap.php:99

Signature :

apply_filters( 'immomakler_places_autocomplete_auto_enqueue', true )

Type : Filter

Fichier : src-plus/Headless/Query/Places_Config.php:52

Signature :

apply_filters( 'immomakler_places_autocomplete_debounce_ms', 140 )

Autres utilisations :

  • src-plus/Search/Places_Autocomplete_Bootstrap.php:119

    apply_filters( 'immomakler_places_autocomplete_debounce_ms', 140 )

Type : Filter

Fichier : src-plus/Headless/Query/Places_Config.php:51

Signature :

apply_filters( 'immomakler_places_autocomplete_max_results', 8 )

Autres utilisations :

  • src-plus/Search/Places_Autocomplete_Bootstrap.php:118

    apply_filters( 'immomakler_places_autocomplete_max_results', 8 )

Type : Filter

Fichier : src-plus/Headless/Query/Places_Config.php:50

Signature :

apply_filters( 'immomakler_places_autocomplete_min_length', 3 )

Autres utilisations :

  • src-plus/Search/Places_Autocomplete_Bootstrap.php:117

    apply_filters( 'immomakler_places_autocomplete_min_length', 3 )

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filters how many billed address lookups one client may trigger per hour. Applies to the radius search’s address suggestions on every transport, including the standalone Fast-API proxy. Return 0 to switch the limit off.

Fichier : src-plus/Search/Places_Autocomplete_Rate_Limit.php:84

Signature :

apply_filters( 'immomakler_places_autocomplete_rate_limit', self::DEFAULT_LIMIT )

Paramètres :

  • $limit (int) Lookups per client and hour. Default 600.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the rectangle address suggestions are biased or restricted to.

Fichier : src-plus/Geo/Autocomplete_Context.php:84

Signature :

apply_filters( 'immomakler_places_location_config', null )

Paramètres :

  • $location (mixed) Location config, or null for no bias at all.

Type : Filter

Fichier : src-plus/Search/Places_Autocomplete_Endpoints.php:142

Signature :

apply_filters( 'immomakler_places_token_ttl', Places_Token_Issuer::DEFAULT_TTL )

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the rectangle the radius search prefers its centre inside.

Fichier : src-plus/Search/Radius_Search.php:543

Signature :

apply_filters( 'immomakler_radiussearch_geocoding_bias', $bounds )

Paramètres :

  • $bounds (array|null) Rectangle as min_lat, max_lat, min_lng, max_lng, or null for none.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the controls a single-map element offers.

Fichier : src/Google_Maps/Map_Availability.php:246

Signature :

apply_filters( 'immomakler_single_map_controls', [], $builder )

Paramètres :

  • $controls (array<string,mixed>) Empty list.
  • $builder (string) Builder id.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the attribute defaults a single-map element declares.

Fichier : src/Google_Maps/Map_Availability.php:270

Signature :

apply_filters( 'immomakler_single_map_defaults', [], $builder )

Paramètres :

  • $defaults (array<string,mixed>) Empty list.
  • $builder (string) Builder id.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the overrides a single-map element’s settings amount to.

Fichier : src/Google_Maps/Map_Availability.php:292

Signature :

apply_filters( 'immomakler_single_map_overrides', [], $settings, $builder )

Paramètres :

  • $overrides (array<string,mixed>) Empty list.
  • $settings (array<string,mixed>) The element’s saved settings.
  • $builder (string) Builder id.

Type : Filter

Depuis la version : 5.71.0

Description (tirée du code source, en anglais) :

Filters the attribution printed into a map used as a link preview. Empty for services that draw their attribution into the image themselves, which Google does.

Fichier : src/Frontend/Archive/Location_Map_Image.php:508

Signature :

apply_filters( 'immomakler_static_map_attribution', '' )

Paramètres :

  • $attribution (string) Plain text attribution.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filters the static-map image URL, so a service other than Google can draw it. The seam exists because this class ships in every edition while the providers are Plus-only: src/ cannot reference src-plus/, so the Plus side hooks in rather than being called. Returning anything other than a non-empty string leaves the Google path untouched, which is why Basic keeps behaving exactly as before. Whatever comes back is downloaded and cached like any other map image, so the caller cannot tell which service produced it.

Fichier : src/Frontend/Archive/Location_Map_Image.php:451

Signature :

apply_filters( 'immomakler_static_map_url', null, [ 'lat' => $viewport['lat'], 'lng' => $viewport['lng'], 'zoom' => min( 20, $viewport['zoom'] + 1 ), 'size' => self::WIDTH . 'x' . self::HEIGHT, ] )

Paramètres :

  • $url (string|null) Override URL, or null to let Google draw it.
  • $viewport (array) Center, zoom and pixel size of the image wanted.

Autres utilisations :

  • src/Google_Maps/Static_Map.php:272

    apply_filters( 'immomakler_static_map_url', null, $viewport )