Remove Red Circle

New home Forums Pro Add-on Troubleshooting Remove Red Circle

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #57259
    joym
    Member

    Hello, this has been posted here multiple times…but the solution is never posted with the threads. Please let me know how to remove the red circle radius on the map.

    Thank you.

    #57281
    Dylan
    Moderator

    Hi there,

    Thank you for getting in touch, we do appreciate your time.

    Please confirm which version of the Pro add-on you are making use of on your site? This can be found under Plugins, by scrolling down to the WP Google Maps Pro add-on and identifying the version number listed here.

    Depending on the major version being used on your site, I will provide you with the needed code for the version installed on your side.

    I look forward to assisting you with this.

    #57283
    joym
    Member

    I am using the most recent version of your plugin.

    WP Google Maps: Version 8.0.14, WP Google Maps – Pro Add-on: Version 7.11.66

    #57297
    Dylan
    Moderator

    Hi there,

    Thank you for confirming.

    Please add the following JavaScript to your settings area:

    WPGMZA.ProStoreLocator.prototype.onFilteringComplete = function(event)
    	{
    		var params = event.filteringParams;
    		var circle = this.circle;
    		var marker = this.marker;
    		var factor = (this.distanceUnits == WPGMZA.Distance.MILES ? WPGMZA.Distance.KILOMETERS_PER_MILE : 1.0);
    		
    		WPGMZA.StoreLocator.prototype.onFilteringComplete.apply(this, arguments);
    		
    		if(marker)
    			marker.setVisible(false);
    		
    		if(circle)
    			circle.setVisible(false);
    		
    		if(params.center && marker)
    		{
    			marker.setPosition(params.center);
    			marker.setVisible(true);
    			
    			if(marker.map != this.map)
    				this.map.addMarker(marker);
    		}
    		
    		if(params.center && params.radius && circle)
    		{
    			if(circle instanceof WPGMZA.ModernStoreLocatorCircle)
    				circle.settings.radiusString = Math.round(params.radius);
    			
    			circle.setRadius(params.radius * factor);
    			circle.setCenter(params.center);
    			circle.setVisible(true);
    			
    			if(circle.map != this.map)
    				this.map.addCircle(circle);
    		}
    	}

    This can be added under Maps -> Settings -> Advanced -> Within the Custom JavaScript box.

    I hope this helps?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.