Guest User

Untitled

a guest
Jun 9th, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. jQuery(document).ready(function($){
  2.  
  3. jQuery( document ).on('js_event_wpv_addon_maps_init_map_completed', function( event, event_settings ) {
  4. var mapid = 'map-9';
  5. var map = WPViews.view_addon_maps.get_map(mapid);
  6.  
  7. google.maps.event.addListenerOnce(map, 'bounds_changed', function() {
  8. mylat = 52.516417;
  9. mylong = 13.402762;
  10.  
  11. map.setCenter(new google.maps.LatLng(mylat,mylong));
  12. map.setZoom(10);
  13. });
  14.  
  15.  
  16. });
  17.  
  18. });
Advertisement
Add Comment
Please, Sign In to add comment