I have an application which schedules jobs to engineers. The application uses the Google Maps JavaScript API to display markers showing job locations and the number of jobs at that location – see figure 1. What I’d like to be able to do is draw a box around a collection of markers and display the sum of all jobs.
How would I draw a box around the markers and then get a list of the selected markers? All of the jobs are held in an array with a ‘marker’ property used by Google Maps.
Figure 1: