Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clearLocations() {
- infoWindow.close();
- for (var i = 0; i < markers.length; i++) {
- markers[i].setMap(null);
- }
- markers.length = 0;
- markers[i].setMap(null);
- map = new google.maps.Map(document.getElementById("map"), {
- center: new google.maps.LatLng(35.1611, -114.4775),
- zoom: 6,
- mapTypeId: 'roadmap',
- mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}
- });
Add Comment
Please, Sign In to add comment