Ir al contenido

Hooks: Mapas

Tipo: Filter

Archivo: classes/class-immomakler.php:4649

Firma:

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

Tipo: Filter

Archivo: skins/bootstrap3/functions.php:2047

Firma:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

Filters which provider answers one geo service.

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

Firma:

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

Parámetros:

  • $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.

Tipo: Action

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

do_action( 'immomakler_geo_register_providers', $this )

Parámetros:

  • $registry (Provider_Registry) The registry being built.

Tipo: Filter

Desde la versión: 5.70.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

apply_filters( 'immomakler_geo_request_allowed', true, $url )

Parámetros:

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

Tipo: Filter

Archivo: classes/class-immomakler.php:4692

Firma:

apply_filters( 'immomakler_geocode_address', true )

Otros lugares de uso:

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

    apply_filters( 'immomakler_geocode_address', true )

Tipo: Filter

Archivo: classes/class-immomakler.php:4708

Firma:

apply_filters( 'immomakler_geocode_address_if_hidden', false )

Otros lugares de uso:

  • 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 )

Tipo: Filter

Archivo: src/Google_Maps/Geocoder.php:564

Firma:

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

Tipo: Filter

Archivo: classes/class-immomakler.php:4723

Firma:

apply_filters( 'immomakler_geocode_sublocality', true )

Tipo: Filter

Archivo: classes/class-immomakler.php:4698

Firma:

apply_filters( 'immomakler_geocode_with_bundesland', false )

Otros lugares de uso:

  • 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 )

Tipo: Filter

Archivo: src/Google_Maps/Geocoder.php:306

Firma:

apply_filters( 'immomakler_geocoding_address', $address )

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

Filters whether geocoding is possible at all.

Archivo: src/Google_Maps/Geocoder.php:102

Firma:

apply_filters( 'immomakler_geocoding_available', $google )

Parámetros:

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

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_googlemaps_api_key', '' )

Otros lugares de uso:

  • 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', '' )

Tipo: Filter

Archivo: src/Google_Maps/Single_Map.php:59

Firma:

apply_filters( 'immomakler_map_address_with_bundesland', true )

Tipo: Filter

Archivo: src/Google_Maps/Single_Map.php:56

Firma:

apply_filters( 'immomakler_map_address_with_sublocality', false )

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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

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

Firma:

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

Parámetros:

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

Tipo: Filter

Desde la versión: 5.67.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

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

Parámetros:

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

Tipo: Filter

Desde la versión: 5.67.0

Descripción (del código fuente, en inglés):

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

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

Firma:

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

Parámetros:

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

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_map_cluster_markers', true )

Otros lugares de uso:

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

    apply_filters( 'immomakler_map_cluster_markers', true )

Tipo: Filter

Descripción (del código fuente, en inglés):

Filter the map’s JavaScript configuration.

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

Firma:

apply_filters( 'immomakler_map_config', $config )

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

Filters the service a map’s consent box names.

Archivo: src/Google_Maps/Map_Availability.php:92

Firma:

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

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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

Archivo: src/Google_Maps/Map_Availability.php:333

Firma:

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

Parámetros:

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

Tipo: Filter

Descripción (del código fuente, en inglés):

Filter which engine a map renders with.

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

Firma:

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

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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

Archivo: src/Google_Maps/Map_Availability.php:385

Firma:

apply_filters( 'immomakler_map_engine_configured', $google )

Parámetros:

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

Tipo: Filter

Descripción (del código fuente, en inglés):

Filter the GeoJSON marker collection a map plots.

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

Firma:

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

Parámetros:

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

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_map_fitbounds', true )

Tipo: Filter

Archivo: src/Google_Maps/Settings.php:490

Firma:

apply_filters( 'immomakler_map_force_googlemaps_embed', false )

Tipo: Filter

Descripción (del código fuente, en inglés):

Filter the registered script handles the map frame prints.

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

Firma:

apply_filters( 'immomakler_map_frame_scripts', [] )

Parámetros:

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

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_map_html', $map_html, false )

Otros lugares de uso:

  • src/Google_Maps/Single_Map.php:217

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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

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

Firma:

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

Parámetros:

  • $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.

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_map_noredirect', false )

Otros lugares de uso:

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

    apply_filters( 'immomakler_map_noredirect', false )

Tipo: Filter

Desde la versión: 5.69.0

Descripción (del código fuente, en inglés):

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.

Archivo: src/Google_Maps/Position_Accuracy.php:59

Firma:

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

Parámetros:

  • $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.

Tipo: Filter

Descripción (del código fuente, en inglés):

Filter the properties plotted on a map.

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

Firma:

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

Parámetros:

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

Tipo: Action

Descripción (del código fuente, en inglés):

Register additional map engines.

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

Firma:

do_action( 'immomakler_map_register_engines', $this )

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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

Archivo: src/Google_Maps/Map_Availability.php:205

Firma:

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

Parámetros:

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

immomakler_map_single_use_geocoordinates_only

Sección titulada «immomakler_map_single_use_geocoordinates_only»

Tipo: Filter

Archivo: src/Google_Maps/Single_Map.php:83

Firma:

apply_filters( 'immomakler_map_single_use_geocoordinates_only', false, $post_id )

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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.

Archivo: src/Google_Maps/Map_Availability.php:53

Firma:

apply_filters( 'immomakler_map_site_engine', 'google' )

Parámetros:

  • $engine (string) Engine id.

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_map_start_center', $center )

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_map_start_zoom', 15 )

Tipo: Filter

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

Firma:

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

Otros lugares de uso:

  • src/Google_Maps/Single_Map.php:106

    apply_filters( 'immomakler_map_start_zoom_single', 15 )

Tipo: Filter

Desde la versión: 5.67.0

Descripción (del código fuente, en inglés):

Filter the notice shown above the admin test map.

Archivo: src/Google_Maps/Map_Availability.php:404

Firma:

apply_filters( 'immomakler_map_test_notice', '' )

Parámetros:

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

Tipo: Filter

Desde la versión: 5.67.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

apply_filters( 'immomakler_map_tile_filters', $filters )

Parámetros:

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

Tipo: Filter

Desde la versión: 5.67.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

apply_filters( 'immomakler_map_tile_providers', $providers )

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

apply_filters( 'immomakler_map_vector_styles', $styles )

Parámetros:

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

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_places_autocomplete_auto_enqueue', true )

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_places_autocomplete_debounce_ms', 140 )

Otros lugares de uso:

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

    apply_filters( 'immomakler_places_autocomplete_debounce_ms', 140 )

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_places_autocomplete_max_results', 8 )

Otros lugares de uso:

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

    apply_filters( 'immomakler_places_autocomplete_max_results', 8 )

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_places_autocomplete_min_length', 3 )

Otros lugares de uso:

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

    apply_filters( 'immomakler_places_autocomplete_min_length', 3 )

Tipo: Filter

Desde la versión: 5.70.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

apply_filters( 'immomakler_places_autocomplete_rate_limit', self::DEFAULT_LIMIT )

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

Filters the rectangle address suggestions are biased or restricted to.

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

Firma:

apply_filters( 'immomakler_places_location_config', null )

Parámetros:

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

Tipo: Filter

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

Firma:

apply_filters( 'immomakler_places_token_ttl', Places_Token_Issuer::DEFAULT_TTL )

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

Filters the rectangle the radius search prefers its centre inside.

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

Firma:

apply_filters( 'immomakler_radiussearch_geocoding_bias', $bounds )

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

Filters the controls a single-map element offers.

Archivo: src/Google_Maps/Map_Availability.php:246

Firma:

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

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

Filters the attribute defaults a single-map element declares.

Archivo: src/Google_Maps/Map_Availability.php:270

Firma:

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

Parámetros:

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

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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

Archivo: src/Google_Maps/Map_Availability.php:292

Firma:

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

Parámetros:

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

Tipo: Filter

Desde la versión: 5.71.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

apply_filters( 'immomakler_static_map_attribution', '' )

Parámetros:

  • $attribution (string) Plain text attribution.

Tipo: Filter

Desde la versión: 5.68.0

Descripción (del código fuente, en inglés):

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.

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

Firma:

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, ] )

Parámetros:

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

Otros lugares de uso:

  • src/Google_Maps/Static_Map.php:272

    apply_filters( 'immomakler_static_map_url', null, $viewport )