Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
innovator-dev committed Mar 13, 2024
1 parent 918a0e7 commit 048882b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 16 deletions.
3 changes: 3 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ const app = (() => {
*/
function render() {

// Load Advanced Marker Element, classic marker is deprecated from February 2024
const {AdvancedMarkerElement} = google.maps.importLibrary("marker");

// Initiate direction service
events.add('initiateDirectionService', () => {
if (map.loaded) {
Expand Down
6 changes: 3 additions & 3 deletions assets/js/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions assets/js/publicParking/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ const publicParking = (() => {
*/
function init() {

// Marker deprecated on February 2024
const {AdvancedMarkerElement} = google.maps.importLibrary("marker");

// Refresh data every 3 minutes
setWatcher(180000, () => {
getData();
Expand Down
2 changes: 1 addition & 1 deletion assets/js/publicParking/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions assets/js/publicTransportation/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ const publicTransportation = (() => {
*/
function init() {

// Marker deprecated on February 2024
const {AdvancedMarkerElement} = google.maps.importLibrary("marker");

// Fetch trips
populateTrips();

Expand Down
2 changes: 1 addition & 1 deletion assets/js/publicTransportation/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions assets/js/wasteCollection/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ const wasteCollection = (() => {
*/
function init() {

// Marker deprecated on February 2024
const {AdvancedMarkerElement} = google.maps.importLibrary("marker");

// Refresh data every 2 minutes
setWatcher(120000, () => {
getData();
Expand Down
4 changes: 2 additions & 2 deletions assets/js/wasteCollection/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 048882b

Please sign in to comment.