Is there a simpler method to pinpoint multiple locations on a Google map? I have numerous coordinates to mark, and the current process is quite challenging.
The current method involves using the following controller:
.controller('MapCtrl', function($scope, $ionicLoading, $compile, $state) {
function initialize() {
//variables for adding the coordinates of the locations
var Chunnakam = new google.maps.LatLng(9.741527 ,80.033931);
var Nelliady = new google.maps.LatLng( 9.828288,80.220362);
var Karaditoku_Kilinochchi = new google.maps.LatLng(9.380289,80.377);
//many more of these follow
I am currently placing the points like this:
var marker = new google.maps.Marker({
position: Chunnakam,
map: map,
title: 'Chunnakam'
});
var marker2 = new google.maps.Marker({
position: Nelliady,
map: map,
title: 'Nelliady'
});
//
var marker3 = new google.maps.Marker({
position: Karaditoku_Kilinochchi,
map: map,
title: 'Karaditoku Kilinochchi'
});
If there is a simpler way to accomplish this task, I would greatly appreciate any guidance. Thank you.