WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code / Technical how to: property Page Map – show only property pin

Technical how to: property Page Map – show only property pin

2728 views 0

Starting theme version 1.15 – you can use the single property map shortcode – https://help.wpresidence.net/article/1-15-google-map-with-property-marker-shortcode/

In property page is displayed only the property pin in property page map.

—-

For those that have lower theme version than 1.18 and wish to add this functionality must follow below steps:

If you want to show only the property pin the the property page map

open the file js/google_ma_code_listings.js and around line 112 you have

google.maps.event.trigger(gmarkers[found_id], 'click');

replace that with

for (var i = 0; i < gmarkers.length; i++) {

if(i===found_id){
google.maps.event.trigger(gmarkers[found_id], ‘click’);
}else{
gmarkers[i].setVisible(false);
}
}

Technical how to | Custom Code

Related Articles

  • How to Add Custom Fields to the Login, Register and Forgot Password Forms
  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
MLSImportWordPress IDX Plugin for MLS ListingsImport MLS listings into your WordPress website, customize your property pages, and keep your inventory updated.Start free 30-day trial →

Help Categories

  • 111 Installation & Changelog
  • 19Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 14Footer
  • 38Header
  • 2IDX & MLSImport
  • 23Maps & Location Settings
  • 50Multilingual Websites – WPEstate Translate (Included)
  • 21Pages & Page Templates
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 38Property Single Page
  • 32Search & Filtering
  • 170Technical how to | Custom Code
  • 9Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Theme Translation & Localization
  • 28Third Party Plugins Compatible
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 9WPResidence Elementor Studio
  • 39WPResidence Elementor Widgets
  • 79WPResidence FAQ

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API