Residence Google Maps

Mandatory: 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 How to get the key […]

How to set the location of a property on the map

If the pin is not placed on the map for a property, the map will show a default location in the center of global maps, which means 0 lat and 0 long coordinates. Pin can be placed in 3 ways: With the Place PIN with Address button With the Place PIN with Address button (which […]

Center map pin

The information we add into infoboxes are “attached” tot the actual marker (pin) when we create it. This happen in mapfunctions.js file via function createMarker() To center pin in map must remove map.panBy from all highlighted places as displayed in 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

When google maps are not loading, check the following: If you are on half map – make sure header of the page is google maps. Or set just for the page you create, if it’s with the Properties List Half Map template Or if you use SSL – enable SSL for google maps from theme […]

1.15 Google Map with Property Marker shortcode

Starting 1.15 there’s a new shortcode in the list. The shortcode can be accessed from wordpress editor ‘ Or you can add through Visual Composer Read here how to find the correct property ID How to see IDs in the theme The shortcode looks like this: — If Full Width Header will be used on […]

Pin Management – Theme Options

Price Pins Choose to use full price or the small version. For full price,  the after and the before price labels will be displayed as well. This is how the pins will show with Full price set to NO This is how the pins will show with the Full Price enabled. Customize price pins colors […]

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 “What’s here”. Coordinates will show in the search bar on top. If you use global header set google maps coordinates as instructed here: GLOBAL HEADER MEDIA OPTIONS […]