A. Ku
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
Cet utilisateur n'a aucun sujet favori.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Map with route and hotspots
Commencé par : A. Ku
dans : Toolset Professional Support
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 Relevant Documentation: |
2 | 2 | Il y a 5 années et 9 mois | ||
How to display first based on relationship
Commencé par : A. Ku
dans : Toolset Professional Support
Problem: I would like to sort the results of a View based on the owner's membership level. Solution: Use a custom field on the post to store a value that represents the owner's membership level. Sort the View by this custom field. |
2 | 2 | Il y a 5 années et 9 mois | ||
CSS/Layout questions regarding accordion
Commencé par : A. Ku
dans : Toolset Professional Support
Problem: |
2 | 11 | Il y a 6 années et 4 mois | ||
Filter by post type
Commencé par : A. Ku dans : Toolset Professional Support |
2 | 14 | Il y a 6 années et 10 mois | ||
Ommit Google Maps content
Commencé par : A. Ku dans : Toolset Professional Support |
2 | 5 | Il y a 6 années et 10 mois | ||
Google API key how to restrict?
Commencé par : A. Ku dans : Toolset Professional Support |
2 | 2 | Il y a 6 années et 10 mois | ||
View not showing custom post type but normal posts
Commencé par : A. Ku dans : Toolset Professional Support |
2 | 2 | Il y a 7 années |