2.2.0 • Published 5 years ago

@jaortiz117/icon-map v2.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Icon-Map

GitHub issuesGitHub issues

Simple library for displaying an image within an image. Used in the 6th Gen MoonBuggy GUI from my other repositories. It started as a way to show visual location data from a server not connected to the internet. It received Latitude and Longitude input from a GPS device and sent it over a closed network.

For now I'm just making the library more general to use. This way I can use it for the following years of the competition.

Install

$ npm install @jaortiz117/icon-map

Usage

const iconMap = require("@jaortiz117/icon-map");
//Note: DOM elements must have defined dimensions
//instantiate the map
var map = new iconMap.Map(document.getElementById("parentID"), document.getElementById("iconID"));

var newYPosition = 10;
var newXPosition = 10;

//reposition icon within parent
map.refresh({
  y: newYPosition,
  x: newXPosition
});
2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago