Toolset Maps is a WordPress plugin that allows you to add address fields to any content type or users and display any content on Google Maps.
Toolset Maps User Guides include detailed documentation for creating these special address fields, adding pointers to them and displaying them on maps.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 1,096 through 1,110 (of 1,224 total)
What is being down here is that you will need to have a different conditional for each taxonomy term and then switching the markers in each conditional.
Since has_term is a custom function you will need to add it to the views custom functions in Toolset->Settings->Frontend
Problem: I would like to customize the address custom field display on a Form. I would like to remove the map and hide the "Show / Hide coordinates" and "Use my location" links.
Solution: There is no API to turn these items off, so you would have to use custom CSS to hide them.
Solution:
The client was inserting the same map twice (using the wpv-map-render shortcode twice with the same id) onto the same page which broke its functionality.
Problem: I have a Map with a single Marker that is not centering and zooming as expected.
Solution: Use the single_zoom parameter to set a default zoom level when only one Marker is present. The Map will center on that Marker automatically. If the zoom is not working as expected, temporarily delete the problem address from the custom field, then remove the problem address from the Maps cache. Add the address to the custom field again to trigger an update. The following code is formatted for page builders like Divi or WPBakery:
Problem:
How to customize use my location button text with maps distance filter Solution:
To change the text of button "Use My Location" with maps distance filter, you should add following javascript code to your view's JS box:
jQuery(document).ready(function($){
$('.js-toolset-maps-distance-current-location').val('Use my location');
});
Problem:
How to set default distance and unit using toolset maps distance filter
Solution:
You can use attribute default_distance and default_unit with maps distance filter shortcode [wpv-control-distance] to set default default distance and unit.
For example:
[wpv-control-distance default_distance="20" default_unit="mi" compare_field="town" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit" inputs_placeholder="Within 20 miles of %%CENTER%%"]
Problem:
How to hide the map distance filter unit dropdown that displays km and mi and also how to change the option text
Solution:
To hide that select box, please try to add following line of CSS code to your view's "Search and Pagination" section's CSS box and try to resolve your issue.:
Currently there is no native feature available to change the mi option value but as a workaround you can use the following javascript code and add it to JS box and try to resolve your issue.
Problem:
When setting up a second Google API key for server side requests, what kind of API key should it be (in the Google settings), a normal API key or a "Service account key" for server-to-server requests?
Solution:
A normal API key.
The intention is that you create the main API key with URL referrer restrictions for your site (for exposed front-end requests) and the second key with no such restrictions which we will use for the unexposed server-based requests.
If your site has a fixed IP address you could add IP-based restrictions to the second key.