Google or Open Street Maps

How to disable Maps for the entire website

You can choose between Google MAPS API or Open Street API. Open Street does not need API key to work. Read more here about how to select and set up each map type. Content: Disable maps for the hero media header for all pages and posts Disable maps for the hero media header for all […]

Technical: Edit Open in Google Maps link with property latitude and longitude

In wpresidence/libs/listing_functions.php at line 324 add this code $url= get_post_meta($post_id,’property_latitude’,true).’,’.get_post_meta($post_id,’property_longitude’,true); $google_map_url = “https://www.google.com/maps/@”.$url; or $url= get_post_meta($post_id,’property_latitude’,true).’,’.get_post_meta($post_id,’property_longitude’,true); $google_map_url = “http://maps.google.com/?q=”.$url; ​It should look like this

Technical: Google Points of Interest on Single Property Map

Points of Interest work exclusively with Google Maps The code that defines the Points of Interest is in file wpresidence/js/google_js/mapfunctions.js To change the points of interest you will need to make the changes with a developer and follow google documentation: https://developers.google.com/places/supported_types Related help Help article about how to remove Google Places from the map.

How to change the Maps Preloader

Google maps preloader is created with css: .new_prelader{ position: absolute; left: 50%; top: 63%; z-index: 1001; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; -moz-border-radius: 50%; -webkit-border-radius: 50%; border: 10px solid transparent; border-top-color: #0073e1; -webkit-animation: PreloaderSpin 2s linear infinite; animation: PreloaderSpin 2s linear infinite; } .new_prelader:before { content: “”; position: absolute; top: […]

Google Map Street View

Street view images come automatically from the Google server based on the lat and long values of the property and IF the checkbox for Street View is enabled. The options work only if for map type is set Google map. How to check property lat and long values in admin Navigate to admin > Properties […]

Map type: Open Street or Google Maps

WP Residence provides two types of maps. You can choose between Open Street Map and Google Map. Content Open street map Google map How to disable Maps for the entire website Open Street Map For the Open Street Map option you don’t need API key. For tiles server (map images) you can use MapBox API […]

Map with Property Marker Shortcode

Content How to add Map with Property Marker widget with Elementor Builder How to add Map with Property Marker shortcode with WPBakery Page Builder How to add Map with Property Marker shortcode block in Gutenberg editor Add widget with Elementor Builder Add shortcode from the classic editor with WPBakery Page Builder Add through Visual Composer   […]

Google Maps – How to add Google API Key

Google Maps requires you add your own API key before you start using it. To create an API KEY, starting June 2018, you must have your billing account set too. The use of Google Maps API is free and paid services are free within $200/month limit. More here https://cloud.google.com/maps-platform/pricing/sheet/ https://mapsplatform.googleblog.com/2018/05/introducing-google-maps-platform.html?utm_source=em-anncmt&utm_medium=em&utm_campaign=fy18-q2-global-adhoc-email-cs-maps_none_maps_spicestandardplannobilling&utm_content=global%7Cen%7Chybr%7C%7C%7C%7C%7C%7C In order for your API […]

How to set the location of a property on the map

The property pin can be placed in 4 ways: 1. With Google Places Enabled – automatically based on property location Step 1.  Enable Autocomplete in Front End Submission Form from Theme Options>Membership>Property Submission Page Step 2. Choose what system do you want to use for geolocation: google places or open street Note: If you choose […]

Technical How To: Center map pin

The information we add into infoboxes is “attached” tot the actual marker (pin) when we create it. This happens in mapfunctions.js file via function createMarker() To center pin in the map must remove map.panBy from all highlighted places as displayed in the below screenshot, but this will apply for all locations of the map/infobox. Explanations when you […]

My Location / Geolocation button

Geolocation and SSL Google API changed the rules in June 2016. Staring this date the geolocation from Google will work only over https sites. For that reason starting version 1.16 WP Residence uses as source for geolocation info over http the with http://ipinfo.io/ API, and for https sites Google Maps Geolocation API. For clients who […]

How to remove Google Maps header from mobile devices only

Go into header_media.php and you have there in 2 places get_template_part(‘templates/google_maps_base’); replace that with if ( !wp_is_mobile() ) { get_template_part(‘templates/google_maps_base’); } Please note that some css adjustments may be required after this change For half map go in templates\half_map_core.php  and make the same change in one place.

Google Maps is not loading – what settings to check

The most common reasons for what Google map is not loading are: Wrong Google API key setup. Check this help article for how to create API Key for Google maps and how to set it on theme. Wrong header setup on half map pages. Google map is required as header for these pages. In WpResidence […]

Theme options – Map – Pin Management

Content Price pin Single Pin Custom Pin Price Pins In order to enable price pins, navigate to Theme Options > Map > Pin Management and set YES to  Use price Pins? option. Also from here, you can choose if wish to show full-price pins.  If not we will show prices without before and after label […]

How to find latitude and longitude. How to set Google Maps coordinates.

To find out Latitude and Longitude for Google Maps, starting point go to Google Maps, find your location, click right on the location on the map and click on  Coordinates. It will be automatically copied to the clipboard.. Global Header Add the default location coordinates on Theme Options > Map > Map Settings to Starting Point Latitude […]

Technical How To: Generate Pins Hourly

Hi In events.php around line 56 you have if( !function_exists(‘setup_wpestate_cron_generate_pins_daily’) ): function setup_wpestate_cron_generate_pins_daily() { if ( ! wp_next_scheduled( ‘prefix_wpestate_cron_generate_pins_daily’ ) ) { wp_schedule_event( time(), ‘daily’, ‘prefix_wpestate_cron_generate_pins_daily’); } } endif; Change to daily to hourly wp_schedule_event( time(), ‘hourly’); Then make sure reset cron has happened and it’s showing hourly on server too. Another way to do […]

Google Maps: Why pins don’t show / not working on the map?

Please check if you have one of these situations: Cache for Google maps is on If you set YES to Use Cache for Google maps ? option from Theme options  > Map > Map Settings you need to wait 3 hours to see the pin. Read from file is enabled You enabled read from file […]

Theme options – Map – How read from file works

Read from file for Google Maps pins is a feature that helps improve site speed for more than 200 properties on the map. Video: How it applies: These are general guidelines for how Read from file works: If Read from Map is enabled – and you have a page with header as google page (and this page is a default […]

Message Google Maps Settings: the file does NOT exist or is NOT writable

Situation 1: If you use a multi-language plugin, you must make sure pins.txt name is re-named according to below instructions. 2. Go via FTP to wpcontent/themes/wpresidence/pins.txt 3. Rename pins.txt to pins-en.txt for English 4. Create new pins.txt files for each language you have. Like pins-de.txt (German) where de is replaced with language code, and so […]

Custom Colors for Google Maps. SNAZZY MAPS.

DO not use Snazzy + Open Street Maps as open street doesn’t support this function. Step 1: Go to https://snazzymaps.com/ https://snazzymaps.com/ and create/find a custom map you like. Copy the code. Step2:  Navigate to Theme Options > Map > Map Settings and paste the code on Style for Google Map field.

Theme Options – Map – Map Settings

To manage the map settings navigate to Theme Options > Map > Map Settings and locate the panel below on which you have the following options: Map system WP Residence provides two types of maps. You can choose between Open Street Map and Google Map. Help article about map type setup Enable/disable read from file option Read from […]