Created
September 12, 2017 18:08
-
-
Save nicobytes/ee5eabf0876a3dd348f7c72f50afa367 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private generateMarkers(latitude:number, longitude: number, limit: number){ | |
| let markers: any[] = []; | |
| for(let i =0;i<limit;i++){ | |
| markers.push({ | |
| title: 'hola ' + i, | |
| position: { | |
| lat: latitude + Math.random() * (1 - (-1)) + (-1), | |
| lng: longitude + Math.random() * (1 - (-1)) + (-1) | |
| } | |
| }); | |
| } | |
| return markers; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment