WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / How to: Increase the circle on map when the property location is hidden

How to: Increase the circle on map when the property location is hidden

1145 views 9

In Theme Options-Property page-Map you have the option to Hide map location?

If enabled on the property page you will have a circle on the map instead of the pin with the exact location

 

To change the size of the circle you need to make changes in the theme code:

GOOGLE MAPS

The change needs to be done in js/google_js/mapfunctions.js around line 2584

look for

function wpestate_custompin(image){
“use strict”;

if( !mapfunctions_vars.hidden_map ){
image ={
path: google.maps.SymbolPath.CIRCLE,
scale: 160,
fillColor: “#0073e1”,
fillOpacity: 0.4,
strokeWeight: 0.2
}
return image;
}

Change scale value as per your wish.

 

OPENSTREET

The change needs to be done in js/google_js/mapfunctions.js around line 372

Look for wpestate_createMarker_sh_leaflet

if( !mapfunctions_vars.hidden_map ){
propertyMarker = L.circle(markerCenter, {
color: ‘#0073e1’,
fillColor: ‘#0073e1’,
fillOpacity: 0.4,
strokeWeight: 0.2,
radius: 120

});

 

Change radius value

 

Technical how to | Custom Code Required

Related Articles

  • 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
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 38Elementor Shortcodes Built-In
  • 56FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 22Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language Third Party Plugins
  • 6Other Third party Plugins
  • 19Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 36Property Pages & Layouts
  • 31Search & Filtering
  • 163Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Translations & Languages
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 8WPResidence Elementor Studio
  • 50WPResidence Translate Plugin

Join Us On

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