Map Settings

Get Started

These settings allow you to customize the integration of location-based services in your BuddyPress site. You can set a default language and region (country code) for geocoding and other API provider services, ensuring accurate and localized responses. A default location can be specified as a fallback for maps or location searches. You can also define the zoom level (with 15 being neighborhood view) and select the map type (such as ROADMAP). The width and height of maps in the directory can be customized for a better fit within your site’s layout. Additionally, you can choose a maps provider (e.g., Google Maps), which requires an API key for access, ensuring that all map features work correctly.

Site admin can navigate to the WB Plugins > Check-ins Pro > map settings to access these options.

Default Language

This setting allows you to define the default language used by the API providers. When interacting with location-based services (like Google Maps), this setting ensures that responses (like place names, directions, etc.) are delivered in the specified language.

If set to “en,” all location data will be returned in English.

Default Region

Here, you enter the default country code (e.g., “IN” for India), which is used by API providers when geocoding addresses or using other location-based services. This controls the default geographic region for services like address lookup or map-based features.

If set to “IN,” the map or geolocation services will assume you’re dealing with locations in India.

Default Location

This field specifies a default location (like a city or address), which is used as a fallback for location-based services when a more specific address isn’t provided.

If set to “Indira Nagar, Lucknow, Uttar Pradesh, India,” this location will be used as a reference for the default region in the services provided by API providers.

Zoom Level

This sets the zoom level for maps in the groups and members directory, with a range between 1 (world view) and 20 (very close view). A zoom level of around 15 typically corresponds to a neighborhood-level view.

If set to “15,” users will see the map zoomed into a neighborhood level by default.

Map Type

This option lets you choose the type of map to display. The available map types can vary but usually include options like:
ROADMAP(a 2D view of streets and places, the default).

Directory Map Width

This defines the width of the map displayed in the directory, either in pixels or percentage of the container.

If set to “100%,” the map will take up the full width of its container.

Directory Map Height

This defines the height of the map, either in pixels or em units (relative to the font size).

If set to “400px,” the map will be 400 pixels tall.

Select Maps Provider

This setting allows you to choose which map provider to use for your BuddyPress site.

You might select Google Map as your provider.

API Key

Due to changes in how Google Maps operates, you need to enter an API key to use their services with BuddyPress Check-ins. The API key authenticates your app and enables access to Google Maps features.

Last updated: October 11, 2024