WDI-SEA / project-2-issues

0 stars 0 forks source link

I can't update my map with DB data because it is rendered inside of a script in an ejs page. #65

Closed hectorzaragoza closed 2 years ago

hectorzaragoza commented 2 years ago

This is where the issue is:

I am rendering my map on DOMContentLoaded inside of JS script tags in an ejs file. So, I can't access the database data that I'm passing from the controller to the view in the JS script.

This the code that lives inside my ejs view: image

I have tried: 1) using the data I pass to the view from the controller inside the JS script but nothing happens. 2) The data shows up if I use ejs syntax outside of the JS script. 3) I tried moving the map rendering into the controller but the client-side functionality (document, navigator) don't work.

timmshinbone commented 2 years ago

Still working on this? if so, update on what's been tried, if not add solution and close it

hectorzaragoza commented 2 years ago

I was fixing the earlier issue. I am going to tackle this now. Goro gave me some suggestions to try.

hectorzaragoza commented 2 years ago

Goro to the rescue!