PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wp-google-maps-pro
/
js
/
v8
/
google-maps
/** * @namespace WPGMZA * @module GoogleDirectionsService * @requires WPGMZA.DirectionsService */ jQuery(function($) { WPGMZA.GoogleDirectionsService = function(map) { WPGMZA.DirectionsService.apply(this, arguments); if(!WPGMZA.CloudAPI.isBeingUsed) this.googleDirectionsService = new google.maps.DirectionsService(); else this.googleDirectionsService = new WPGMZA.CloudDirectionsService(); } WPGMZA.extend(WPGMZA.GoogleDirectionsService, WPGMZA.DirectionsService); WPGMZA.GoogleDirectionsService.prototype.route = function(request, callback) { var self = this; request.travelMode = request.travelMode.toUpperCase(); /* * Cast local distance to Google Unit System */ if(request.unitSystem === WPGMZA.Distance.KILOMETERS){ request.unitSystem = google.maps.UnitSystem.METRIC; } else { request.unitSystem = google.maps.UnitSystem.IMPERIAL; } this.googleDirectionsService.route(request, function(response) { var status; response.originalResponse = $.extend({}, response); switch(response.status) { case google.maps.DirectionsStatus.OK: status = WPGMZA.DirectionsService.SUCCESS; break; case google.maps.DirectionsStatus.ZERO_RESULTS: status = WPGMZA.DirectionsService.ZERO_RESULTS; break; case google.maps.DirectionsStatus.NOT_FOUND: status = WPGMZA.DirectionsService.NOT_FOUND; break; default: console.warn("Failed to get directions from Google: " + response.status); return; break; } callback(response, status); var event = new WPGMZA.Event({ type: "directionsserviceresult", response: response, status: status }); self.map.trigger(event); }); } });
[-] cloud-api.js
[edit]
[-] cloud-directions-renderer.js
[edit]
[-] google-pro-drawing-manager.js
[edit]
[-] google-pro-map.js
[edit]
[-] cloud-geocoder.js
[edit]
[-] google-pro-info-window.js
[edit]
[+]
..
[-] google-heatmap.js
[edit]
[-] google-pro-polygon.js
[edit]
[-] google-pro-marker.js
[edit]
[-] google-directions-service.js
[edit]
[-] google-directions-renderer.js
[edit]
[-] cloud-directions-service.js
[edit]
[-] cloud-autocomplete.js
[edit]