I have an issue with a google maps click event trying to create a marker, and I’m not sure if it’s something that I’ve not done or whether it’s a bug.
I have a click event for my google map that registers the location of the click in a variable.
This then creates a marker with the position of that variable, which is the stored click location.
The variable is storing the location alright, as it’s printing to console (Which I’ve added to bug test)
It’s giving me an error when trying to place the marker, though.
The code I’m using is:
map.add_component(marker)
and it’s giving me the error:
AttributeError: ‘<native JS>’ object has no attribute ‘add_component’ at [Location in Code]
any ideas? Or am I missing something blazingly obvious?