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,126 through 1,140 (of 1,227 total)
Problem:
A map displays markers for posts, many of which have other posts with the same address. How to differentiate them?
Solution:
We added the spiderify library to Maps to solve the problem of displaying markers with the same address, which is described in the linked documentation.
Problem: I would like to display a Map that includes several "hotspots" as Markers, and also draw a route on the map.
Solution: You can create a custom Map View that includes Markers that represent each "hotspot". To draw a custom walking route on a Map, you can use the Google Maps Polyline API. Here's the example from the Google Maps API documentation, edited to use a map created in Toolset:
var mapid = 'map-1';
var map = WPViews.view_addon_maps.get_map(mapid);
var flightPlanCoordinates = [
{lat: 37.772, lng: -122.214},
{lat: 21.291, lng: -157.821},
{lat: -18.142, lng: 178.431},
{lat: -27.467, lng: 153.027}
];
var flightPath = new google.maps.Polyline({
path: flightPlanCoordinates,
geodesic: true,
strokeColor: '#FF0000',
strokeOpacity: 1.0,
strokeWeight: 2
});
flightPath.setMap(map);
Replace map-1 with the ID of your map created in Views. Wrap this code in a 'js_event_wpv_addon_maps_init_map_completed' event handler so it is fired when the map is ready. I provided a more complete example implementation in another ticket: https://toolset.com/forums/topic/add-lines-connecting-markers-in-a-google-map/#post-916035
This ticket creates the polyline using on the marker locations, but your line will be unrelated to the markers.
Problem: I would like to apply custom styles to the distance filter elements.
Solution: Use custom CSS to apply any custom styles you want to the distance filter elements. Add the CSS to the Search and Pagination editor's JS panel.
Problem:
Custom marker reverts to default marker on hover
Solution:
There were attribute 'marker_icon_hover' added to maps shortcode that leads to display the marker hover icon. I simply deleted that attribute.