[Google Maps Library] Not able to initialize twice the same Google MAPS API Places Query

Forge Component
(17)
Published on 2 Oct (13 days ago) by Labs
17 votes
Published on 2 Oct (13 days ago) by Labs

Hi,


I am facing a problem and hope that somebody can help me out! The problem is that when i switch between pages the Google Maps API wont run the same query. 

In the Event - MapInitialized i have the logic where i fetch the places around my location, that works good and it also shows the markers. But the problem is when i go to a another page or webblock and try to go back to my Google Maps screen it wont fetch anymore the places around my location and also wont place the markers in the map.

If i do a hard refresh in the browser it seems to work properly, but navigating between screens not. Hope that somebody has a solution for me how i can tackle this problem :)


Kind regards,

Sylber 


Solution

Never mind, problem has been solved. Google Maps API was throwing a "Request Denied" error. What indicates that my request was denied, because of lack of an invalid key. 

Solution