Skip to content

Instantly share code, notes, and snippets.

@blaurt
Created April 21, 2020 06:25
Show Gist options
  • Save blaurt/2f174598b4a6808ad97cd329dc5f97c2 to your computer and use it in GitHub Desktop.
Save blaurt/2f174598b4a6808ad97cd329dc5f97c2 to your computer and use it in GitHub Desktop.
calling convertion function and render results
[
{ lat: latitudeNY, lon: longitudeNY },
{ lat: latitudeML, lon: longitudeML }
].forEach(({ lat, lon }) => {
const { x, y } = latLonToOffsets(lat, lon, mapWidth, mapHeight);
renderPointer(x, y);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment