MCPcopy Create free account
hub / github.com/CoderOpen/waimai / coordinateToPoint

Function coordinateToPoint

front/components/u-charts/u-charts.js:3569–3574  ·  view source on GitHub ↗
(latitude, longitude,bounds,scale,xoffset,yoffset)

Source from the content-addressed store, hash-verified

3567}
3568
3569function coordinateToPoint(latitude, longitude,bounds,scale,xoffset,yoffset) {
3570 return {
3571 x: (longitude - bounds.xMin) * scale+xoffset,
3572 y: (bounds.yMax - latitude) * scale+yoffset
3573 };
3574}
3575
3576function pointToCoordinate(pointY, pointX,bounds,scale,xoffset,yoffset) {
3577 return {

Callers 1

drawMapDataPointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected