Created
December 13, 2021 11:00
-
-
Save imranhoshain/43d8821a97900d83528fa8bccd1b9bf9 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
| this.markers = []; | |
| data.forEach(function(entry) { | |
| if (entry.location === null) return | |
| marker = new google.maps.Marker({ | |
| position: { | |
| lat: location.location.coordinates[0], | |
| lng: location.location.coordinates[1] | |
| } | |
| }); | |
| markers.push(marker); | |
| }); | |
| markerCluster = new MarkerClusterer(this.map, this.markers, { | |
| imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m' | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment