I've been digging for two days now how to get the coordinates of the event (mouse click) in the context of a specific element in JavaScript, found a little googling that you can get the context of the event element you can get this way event.currentTarget and then unfortunately I don’t know have you already solved such a problem or am I going to the wrong steppe? Please advise. Tried to somehow get the coordinates through the event.currentTarget.localX property event.currentTarget.localX not work ... And one more small question in terms of implementation: how (by the algorithm) googles put labels on the map and how to restore them back ie. to tie in "their" places where the user screwed them and how to collect fragments of maps?
I would just throw the basic principles of such systems :).
And the thing is that in our remote areas the speed of the Internet leaves much to be desired and we need to implement a simple version of the (vector) map of the country and put the whole thing on a local hosting ... ')
Thank you all in advance.