[Google Maps Library] Setzoom not working after appending marker list

Forge Component
Published on 2 Oct by Labs
18 votes
Published on 2 Oct by Labs

Good day guys, I would like to seek your help on my project. its a shuttle tracking application I was able to append the markers on the map but i cant set the zoom level after appending the marker. 

Below is the client action I'm using to set the marker and the error that I got.

Current output zoom level 22

Expected output zoom level 17

Hi Royce,

Where are you calling this action? OnInitialize? OnReady? My advice is to use the MapInitialized event to call your action, this way you know the map as been created.

Also make sure you have the latest version of the component.