I’m looking for developing an application which can plot clients activity on the map . The clients are production floors , and they are distributed all over the world . I want to plot points on the map and refresh them on runtime so it can reflect clients production status .
Would you please recommend and demo or looks doing that on google maps or any other solution .
Thanks in advance .
Google has lots of examples on their site: https://developers.google.com/maps/documentation/javascript/tutorial
You’ll need at least one web service that the various locations will be able to submit their productivity status, then store that data.
Then, you could
1) generate the page dynamically, pulling those data points into some array, and cycle through the array, adding markers (and, at the point each marker is added, you’ll probably elect to use a custom icon depending on what their productivity level is, so that you have a visual indicator)
OR
2) make another web service that can be queried, and give that response. This way, you could have the page periodically clear it’s markers, request new data, and plot them, so that you’d have a self updating dashboard
Here is a sample page that does something similar (without custom marker icons):
You’ll see that it’s calling to so_septa_data.php every 2 seconds (the
setTimeoutline)and that file is just:
Yours will likely consist of just connecting to your database, gathering the results, formatting them into JSON or XML, and echoing the results.