Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- centerMap(x,y){
- this.mapI.setView([x,y],3,{
- "animate": true,
- "pan": {
- "duration": 1
- }
- })
- },
- findUser(userI){
- this.x = userI.x;
- this.y = userI.y;
- this.mapI.setView([this.x, this.y], 3,{
- "animate": true,
- "pan": {
- "duration": 1
- }
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement