Javascript event.currentTarget - embarrassing situation

    For two days now I’ve been digging how to get the coordinates of the event (mouse click) in the context of a specific element in JavaScript, I found a little google that you can get the context of the event element in this way event.currentTargetand then unfortunately I don’t know if anyone has already solved task or am I going to the wrong “steppe”? Please advise.
    I tried to somehow get the coordinates through the property event.currentTarget.localXdoes not work ...
    And one more small question regarding implementation: how (algorithm) google users place marks on the map and how to restore them back i.e. 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 Internet speed is poor and you 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.

    Also popular now: