Google Maps

Google API Key

Google Maps requires you add your own API key before you start using it. This is a copy from Google Maps official announcement:  As of June 22, 2016 we are making the following changes to the Google Maps APIs Standard Plan: We no longer support keyless access (any request that doesn’t include an API key). Future product […]

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 center of global maps. Pin can be placed in 3 ways: 1. With the Place PIN with Address button (which sends to Google Maps the City, Country, Area – if filled in, Address – if […]

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 functionality

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 use https for […]

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 is not loading, check the following: If you are on half map – make sure header of the page is google maps. Help –http://help.wpresidence.net/2015/12/21/why-doesnt-google-maps-load-on-half-map-taxonomy-page-with-half-map-not-loading/ Or if you use SSL – enable SSL for google maps from theme options – Google Maps settings: http://help.wpresidence.net/2015/10/29/google-maps-settings/ If it’s not any of the above, disable all plugins […]

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 –http://help.wpresidence.net/2015/10/29/how-to-see-ids-for-shortcodes-and-widgets/ The shortcode looks like this: — If Full Width Header will be used on property page, this shortcode will appear […]

Enable Map Mouse Zoom In and Zoom Out

To enable map mouse zoom in and zoom out edit the goolg_map_code_listings.js and remove the scrollwheel:false on the 2 locations on this screencapture: Also do the same thing for google_map_code.js

Zoom in Advanced Search Results page, Properties List page and Taxonomy page.

These pages: advanced search results, properties list, taxonomies pages behave differently if google maps is set as header option. On these pages the map pins and properties in list are in sync. For this feature the map will change automatically the zoom to display all the pins from list in the map view.  Because of this the […]