MCPcopy Create free account
hub / github.com/facebook/Rapid / mouseLoc

Method mouseLoc

modules/core/MapSystem.js:515–517  ·  view source on GitHub ↗

* mouseLoc * Gets the current [lon,lat] location of the pointer * (or center of map if there is no readily available pointer coordinate) * @return Array [lon,lat] location of pointer (or center of the map)

()

Source from the content-addressed store, hash-verified

513 * @return Array [lon,lat] location of pointer (or center of the map)
514 */
515 mouseLoc() {
516 return this.context.viewport.unproject(this.mouse());
517 }
518
519
520 /**

Callers 7

_pointerdownMethod · 0.80
_pointermoveMethod · 0.80
renderMethod · 0.80
_addDrawNodeMethod · 0.80
_addDrawNodeMethod · 0.80
enterMethod · 0.80
_pointermoveMethod · 0.80

Calls 1

mouseMethod · 0.95

Tested by

no test coverage detected