Skip to content

I am trying to draw circles and add popup on a map, but i keep getting errors. Cannot read properties of undefined (reading ‘lng’)

This piece of code is from my App.js I am using this as the default location of the map once the app opens const [mapCenter, setMapCenter] = useState({lat: 34.80746, lng: -40.4796}); I use this to update the location of the map, as selected from the dropdown menu, I am getting the lat and lng from data pulled…

Is Vanilla JS the same as plain Javacript in 2022?

I am using newest Bootstrap 5 and it says it doesn’t work with jQuery anymore, but with VanillaJS, which appears to be a new JS framework… The thing is, many people always used “vanilla” to refer to plain or native JS. Has this changed, and now “Vanilla JS” is the name of a frame…