Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. centerMap(x,y){
  2.                 this.mapI.setView([x,y],3,{
  3. "animate": true,
  4. "pan": {
  5. "duration": 1
  6. }
  7. })
  8.             },
  9. findUser(userI){
  10. this.x = userI.x;
  11. this.y = userI.y;
  12. this.mapI.setView([this.x, this.y], 3,{
  13. "animate": true,
  14. "pan": {
  15. "duration": 1
  16. }
  17. });
  18. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement