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,141 through 1,155 (of 1,227 total)
The issue here is that the user wanted to hide the map coordinates from the page source code itself.
Solution:
Unfortunately this is not possible however What you can do is disable right click because you wouldn't be able to hide this information as it is needed by the map.
Problem:
Using URL referrer restrictions for the API key is preventing Maps from working properly.
Solution:
This will be fixed in Maps 1.5, which will allow you to add separate API keys for client-based requests (with URL restrictions) and server-based requests (with optional IP address restrictions).
Problem: I would like to draw a line connecting multiple Markers on a Google Map.
Solution: Add custom JavaScript to Layouts CSS & JS, or to a View's Search and Pagination JS panel:
jQuery(document).ready(function($){
function initMap() {
var mapid = 'map-2';
var map = WPViews.view_addon_maps.get_map(mapid);
var markers = WPViews.view_addon_maps.markers[mapid];
if(markers.length == 0)
return;
var tripCoordinates = [];
var latLng;
// loop over all the markers and create an array of lat lng objects
for(var marker in markers){
latLng = {
'lat':markers[marker].position.lat(),
'lng':markers[marker].position.lng()
};
tripCoordinates.push(latLng);
}
// create a new polyline using the coordinates array, and add it to the map
var tripPath = new google.maps.Polyline({
path: tripCoordinates,
geodesic: true,
strokeColor: '#FF0000',
strokeOpacity: 1.0,
strokeWeight: 2
});
tripPath.setMap(map);
}
$( document ).on('js_event_wpv_addon_maps_init_map_completed', function( event, event_settings ) {
initMap();
} );
} );