PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wp-google-maps-pro
/
js
/
v8
/** * @namespace WPGMZA * @module UseMyLocationButton * @requires WPGMZA.EventDispatcher */ jQuery(function($) { WPGMZA.UseMyLocationButton = function(target, options) { var self = this; this.options = {}; if(options) this.options = options; this.target = $(target); this.element = $("<button class='wpgmza-use-my-location button-secondary' type='button' title='" + WPGMZA.localized_strings.use_my_location + "'><i class='fa fa-crosshairs' aria-hidden='true'></i></button>"); this.element.on("click", function(event) { self.onClick(event); }); } WPGMZA.UseMyLocationButton.prototype = Object.create(WPGMZA.EventDispatcher.prototype); WPGMZA.UseMyLocationButton.prototype.constructor = WPGMZA.UseMyLocationButton; WPGMZA.UseMyLocationButton.prototype.onClick = function(event) { var self = this; WPGMZA.getCurrentPosition(function(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; self.target.val(lat + ", " + lng); self.target.trigger("change"); var geocoder = WPGMZA.Geocoder.createInstance(); geocoder.geocode({latLng: {lat: lat, lng: lng}}, function(results) { if(results && results.length) self.target.val(results[0]); }); }); } });
[-] pro-scripts.json
[edit]
[-] pro-map-edit-page.js
[edit]
[+]
3rd-party-integration
[-] directions-renderer.js
[edit]
[-] modern-marker-listing-marker-view.js
[edit]
[-] wp-google-maps-pro.min.js
[edit]
[-] pro-drawing-manager.js
[edit]
[-] use-my-location-button.js
[edit]
[-] category-tree-node.js
[edit]
[-] wp-google-maps-pro.min.js.map
[edit]
[-] queue.js
[edit]
[-] pro-polygon.js
[edit]
[-] pro-marker-filter.js
[edit]
[-] modern-directions-box.js
[edit]
[-] category-picker.js
[edit]
[-] marker-gallery.js
[edit]
[-] admin-map-datatable.js
[edit]
[-] wp-google-maps-pro.combined.js
[edit]
[-] categories-page.js
[edit]
[-] category-tree.js
[edit]
[+]
open-layers
[-] marker-gallery-input.js
[edit]
[-] custom-field-filter-widget.js
[edit]
[+]
google-maps
[-] custom-field-filter-controller.js
[edit]
[-] pro-map-list-page.js
[edit]
[-] modern-marker-listing.js
[edit]
[-] pro-store-locator.js
[edit]
[-] pro-map.js
[edit]
[-] pro-latlng.js
[edit]
[-] pro-info-window.js
[edit]
[-] modern-directions-result-box.js
[edit]
[-] theme-editor.js
[edit]
[-] pro-address-input.js
[edit]
[-] directions-box.js
[edit]
[-] marker-icon.js
[edit]
[-] heatmap.js
[edit]
[+]
marker-listings
[-] directions-service.js
[edit]
[+]
..
[+]
map-edit-page
[-] marker-icon-picker.js
[edit]
[-] content-editor-map-button.js
[edit]
[-] pro-marker.js
[edit]
[-] advanced-page.js
[edit]
[-] marker-library-dialog.js
[edit]
[-] legacy-json-converter.js
[edit]