Javascript snippet for Google Maps API

Job ID: 33938310

Budget: $10 – $30 CAD

I need a snippet of code to for Google Maps API that can receive data from a Laravel Livewire component (very similar to controller) processing coordinates from a local database.

Currently, I have the following code to process a initial set of locations, however, when I change the set of coordinates, the map doesnt repopulate. I just get a blank page.

The task:

Review my code, adjust to and fix it to accomodate updating of data set (locations).

Message me and I will provide my current code for your review.
Related categories: PHP JavaScript Laravel Google Maps API