Advertisement
oscarholmedo

Gmap3 panto on button click

Apr 1st, 2013
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.25 KB | None | 0 0
  1.     jQuery('.map_goto_my_location').click(function(){
  2.         jQuery('.map').gmap3({
  3.             getgeoloc:{
  4.                 callback : function(latLng){
  5.                     if (latLng){
  6.                         var map = jQuery('.map').gmap3("get");
  7.                         map.panTo(latLng);
  8.                     }
  9.                 }
  10.             }
  11.         });
  12.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement