Convert JS object to array for use within Google Maps API

I need help getting a Google map setup to work. It displays multiple markers and is currently working fine, with the exception of the marker data itself. The problem here is I need to convert dynamic data from PHP (wordpress) using the Wordpress wp_localize_script function. That part is done – I just don't understand how to refactor the JS object into an array for use with the Google Maps API script, which is ready to go (just need marker data). There is a working example included in the JS file of how the location data needs to be sent to the API – I just need the JS object converted to a workable array.

Haluatko ansaita rahaa?

Myönnetty käyttäjälle:

Hi greetings of the day I am a Experienced PHP Developer based out in Chennai,India. My experience revolves around development of web and mobile applications,Ecommerce websites. I believe that I am well qualified to unLisää

Hi there. I am very much interested in converting your JavaScript object into a usable array for your app that uses Google Maps.
I am an experienced website developer focused on creating modern websites using PHP, MLisää

Hey brooksdc, I'm very familiar with Google Maps API. I can help you on this project. We have excellent experience in Website Development. I believe my abilities would be perfect for your venture. I am professional weLisää

Hi, i am excited to work on this project. i will finish this work in 1 day. i am web developer and having 2 years of experience.
I have done same work on my recent project.
Please give me an opportunity. thanks.

I am professional Web Developer accompanied by 5+ years of experience in the web development.
I Acquire to have A complete knowledge about PHP, Magento 1.x, Magento 2.x, Woocommerce, CPT , Page Template , Sidebar TeLisää

I can convert the javascript object into an array for you.
It is an easy task and should only take about an hour.
Then I will make sure all your markers working properly on your google map, as in the demo you hLisää